
dfinke/mcp-powershell-exec
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCPの特長 PowerShellスクリプトを実行するためのサーバー
概要
MCP PowerShell Exec Server は、PowerShell スクリプトを文字列として受け入れ、それらを実行し、出力を返します。 PowerShellでAIのアシスタントを理解し、作業できるようにします。 - 文字列入力でPowerShellスクリプトを受け入れる - MCP Server環境でスクリプトを安全に実行 - リアルタイムで実行結果を返す リポジトリをクローンし、サーバーを設定します。 ビデオを見て、MCP PowerShell Exec Server の動作を確認します。 VSCodeインサイダーでGitHub CopilotでこのMCPサーバーを使用するには、次の手順に従ってください。 1. - VSCodeインサイダーの最新バージョンをダウンロードしてインストールします 1. - VSCodeインサイダーを開く - エクステンション市場に移動 - 「GitHub Copilot」を検索してインストールします 3. - .vscode/mcp.json を開きます。 実際のパスを server.py ファイルに置き換えます.
概要(AI 翻訳)
概要
MCP PowerShell Exec Server は、PowerShell スクリプトを文字列として受け入れ、それらを実行し、出力を返します。 PowerShellでAIのアシスタントを理解し、作業できるようにします。
##特徴
- 文字列入力でPowerShellスクリプトを受け入れる
- MCP Server 環境でスクリプトを安全に実行
- リアルタイムで実行結果を返す
インストール
リポジトリをクローンし、サーバーを設定します。
アクション
ビデオを見て、MCP PowerShell Exec Server の動作を確認します。
使用法
##VSCodeインサイダーのGitHub Copilotとの統合
VSCodeインサイダーでGitHub CopilotでこのMCPサーバーを使用するには、次の手順に従ってください。
1。 VSCodeインサイダーをインストール
- VSCodeインサイダーの最新バージョンをダウンロードしてインストールします
- GitHub Copilot Extensionをインストール
- VSCodeインサイダーを開く
- エクステンション市場に行く
- 「GitHub Copilot」を検索してインストールする
3。 ** MCP Server の設定**
- .vscode/mcp.json を開きます。
server.py]ファイルにパスを実際のパスに置き換えます。
- 有効な代理店モード
- VSCodeインサイダーでCopilotチャットを開く
- 「コピロット編集」をクリック
- 「エージェントモード」を選択します
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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 のガイドから始めましょう →