
dfinke/mcp-powershell-exec
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
MCP Сервер для выполнения сценариев PowerShell
Обзор
MCP PowerShell Exec Server - это легкий сервер, который принимает сценарии PowerShell в качестве строк, выполняет их и возвращает выход. Позволяет помощникам ИИ понимать и работать с PowerShell. - Принимает сценарии PowerShell через ввод строк - безопасно выполняет сценарии в среде MCP Server - возвращает результаты выполнения в режиме реального времени Клонируйте хранилище и настройте сервер: Смотрите видео, чтобы увидеть MCP PowerShell Exec Server в действии: Чтобы использовать этот MCP-сервер с GitHub Copilot в VSCode Insiders, выполните следующие действия: 1. - Скачать и установить последнюю версию VSCode Insiders 1. - Открыть VSCode Insiders - Перейти на рынок расширений - Поиск и установка "GitHub Copilot" 3. - Открыть .vscode/mcp.json Замените путь фактическим путем к файлу server.py.
Обзор (машинный перевод)
Обзор
MCP PowerShell Exec Server - это легкий сервер, который принимает сценарии PowerShell в качестве строк, выполняет их и возвращает выход. Позволяет помощникам ИИ понимать и работать с PowerShell.
Особенности
- Принимает сценарии PowerShell через ввод строки Безопасно выполняет скрипты в среде MCP Server Результаты выполнения возврата в реальном времени
##Установка Клонируйте хранилище и настройте сервер:
##В действии
Смотрите видео, чтобы увидеть MCP PowerShell Exec Server в действии:
Использование
Интеграция с GitHub Copilot в VSCode Insiders
Чтобы использовать этот MCP-сервер с GitHub Copilot в VSCode Insiders, выполните следующие действия:
1Установить VSCode Insiders Скачать и установить последнюю версию VSCode Insiders
1.Установить расширение GitHub Copilot Открытый VSCode Insiders Перейдите на рынок расширений Поиск и установка «GitHub Copilot»
3 ** Настройка MCP Server** Открыть .vscode/mcp.json
Замените путь фактическим путем к вашему файлу.
1 ** Режим агента ** Открытый чат Copilot в VSCode Insiders Кликните на «Copilot Edits» Выберите «Режим агента»
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
MCP PowerShell Exec Server
Overview
MCP PowerShell Exec Server is a lightweight server that accepts PowerShell scripts as strings, executes them, and returns the output. Enabling AI assistants to understand and work with PowerShell.
Features
- Accepts PowerShell scripts via string input
- Executes scripts securely in an MCP Server environment
- Returns execution results in real-time
Installation
Clone the repository and set up the server:
git clone https://github.com/yourusername/mcp-powershell-exec.git
cd mcp-powershell-exec
In Action
Watch the video to see MCP PowerShell Exec Server in action:
Usage
Integration with GitHub Copilot in VSCode Insiders
To use this MCP server with GitHub Copilot in VSCode Insiders, follow these steps:
-
Install VSCode Insiders
- Download and install the latest version of VSCode Insiders
-
Install GitHub Copilot Extension
- Open VSCode Insiders
- Go to the Extensions marketplace
- Search for and install “GitHub Copilot”
-
Configure MCP Server
- Open .vscode/mcp.json
{ "servers": { "powershell-integration": { "command": "py", // Python executable "args": [ "drive:/yourpath/server.py" ], "env": {} } } }Replace the path with the actual path to your
server.pyfile. -
Enable Agent Mode
- Open Copilot chat in VSCode Insiders
- Click on “Copilot Edits”
- Choose “Agent mode”
- Click the refresh button in the chat input to load the available tools
System Requirements
- Python: Version 3.10 or higher (required for optimal performance)
- PowerShell: Version 5.1
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For issues and questions:
- Create an issue in this GitHub repository
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →