MCP PowerShell 执行服务器是一款轻量级服务器,它允许用户输入 PowerShell 脚本字符串,执行后返回结果,让 AI 助手也能理解和操作 PowerShell。
MCP PowerShell 执行服务器能让你轻松执行 PowerShell 脚本。以下是快速开始的步骤:
git clone https://github.com/yourusername/mcp-powershell-exec.git
cd mcp-powershell-exec
克隆仓库并设置服务器:
git clone https://github.com/yourusername/mcp-powershell-exec.git
cd mcp-powershell-exec
你可以直接向服务器输入 PowerShell 脚本字符串,服务器会执行并返回结果。
要使用此 MCP 服务器与 VSCode Insiders 中的 GitHub Copilot 结合,请按照以下步骤操作:
.vscode/mcp.json{
"servers": {
"powershell-integration": {
"command": "py", // Python 可执行文件路径
"args": [
"drive:/yourpath/server.py"
],
"env": {}
}
}
}
将路径替换为您实际的 server.py 文件位置。观看视频了解 MCP PowerShell 执行服务器的实际操作: 点击观看
此项目在 MIT 许可证下开源 - 具体内容请查看 LICENSE 文件。
如需帮助或报告问题,请在该 GitHub 仓库创建问题。