MCP PowerShell Exec Server - A lightweight server that accepts PowerShell scripts as strings, executes them, and returns the output.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_dfinke_mcp_powershell_exec-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_dfinke_mcp_powershell_exec-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcc6d2193355661fe76e90343be94733310fa44f88e656d67536c074576745b9
|
|
| MD5 |
eb38a0e7b5e60e00579ab61600cbfaa7
|
|
| BLAKE2b-256 |
f93a1584b3b495aa29ac155ec8852e49b4b4ab55e7137467943b2a60c59cd5cd
|
File details
Details for the file iflow_mcp_dfinke_mcp_powershell_exec-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_dfinke_mcp_powershell_exec-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04c46f15e85f2205f568ceea81fb02a71314fffc0b3dffd3228b0dd67c797af0
|
|
| MD5 |
ef04032ff0e88d6a54336c702177101c
|
|
| BLAKE2b-256 |
0f6951c766350e5ae4c905069ba5a7ce07303580f5fd8bedc05fecac60f053f5
|