MCP PowerShell 执行服务器是一款轻量级服务器,它接受以字符串形式的 PowerShell 脚本,执行这些脚本,并返回执行结果。这使得AI助手能够理解和使用PowerShell。
克隆仓库并设置服务器:
git clone https://github.com/yourusername/mcp-powershell-exec.git
cd mcp-powershell-exec
观看视频了解MCP PowerShell执行服务器的实际操作:
<a href="https://youtu.be/XmYaCJ0bNsE"><img src="https://img.youtube.com/vi/XmYaCJ0bNsE/0.jpg" width="600"/></a>
要将此MCP服务器与VSCode Insiders中的GitHub Copilot一起使用,请按照以下步骤操作:
安装VSCode Insiders
安装GitHub Copilot扩展
配置MCP服务器
{
"servers": {
"powershell-integration": {
"command": "py", // Python可执行文件
"args": [
"drive:/yourpath/server.py"
],
"env": {}
}
}
}
将路径替换为您实际的server.py文件路径。
启用代理模式
本项目采用MIT许可证——详情见LICENSE文件。
对于问题和疑问: