mcp-powershell-exec

MCP PowerShell Exec Serverは、PowerShellスクリプトを文字列として受け取り、実行し、その出力を返す軽量サーバーです。このツールは、AIアシスタントがPowerShellを理解し、操作できるようにするために設計されています。Pythonで実装されており、セキュアな環境でスクリプトを実行することが可能です。リアルタイムで実行結果を返すため、開発者は迅速にフィードバックを得ることができます。

GitHubスター

45

ユーザー評価

未評価

フォーク

8

イシュー

1

閲覧数

2

お気に入り

0

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:

  1. Install VSCode Insiders

  2. Install GitHub Copilot Extension

    • Open VSCode Insiders
    • Go to the Extensions marketplace
    • Search for and install "GitHub Copilot"
  3. 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.py file.

  4. 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
作者情報
Doug Finke

16-time Microsoft MVP Generative AI Engineer, Author. Researching the optimal, implementing the practical.

New York City

1,349

フォロワー

253

リポジトリ

225

Gist

4

貢献数

トップ貢献者

スレッド