mcp-powershell-exec
Version:
PowerShell MCP server with improved SOLID architecture. Supports both Bun and Node.js runtimes.
79 lines (59 loc) • 1.78 kB
Markdown
7 和 Windows PowerShell 5.1
- 可配置超时时间
- 安全的非交互式执行
- 通过 bunx 或 npx 零配置安装
```bash
claude mcp add powershell-integration --scope user bunx mcp-powershell-exec
claude mcp add powershell-integration --scope user npx mcp-powershell-exec
```
```bash
bun add -g mcp-powershell-exec
claude mcp add powershell-integration --scope user bun mcp-powershell-exec
npm install -g mcp-powershell-exec
claude mcp add powershell-integration --scope user node mcp-powershell-exec
```
```bash
git clone https://github.com/cuipengfei/mcp-powershell-exec.git
cd mcp-powershell-exec
bun install
claude mcp add powershell-integration --scope user bun /path/to/mcp-powershell-exec/powershell.ts
```
```json
{
"servers": {
"powershell-integration": {
"command": "node",
"args": ["/path/to/global/mcp-powershell-exec"]
}
}
}
```
```bash
bun run dev
bun run build
bun run lint
```
- 默认超时:300 秒
- 最大命令长度:10,000 字符
- PowerShell 优先级:PowerShell 7 > Windows PowerShell 5.1
- Bun 1.0+ 或 Node.js 18+
- PowerShell 7.x(推荐)或 5.1+
MIT License
[ ](README_EN.md) | 中文
使用 TypeScript 和 Bun 构建的 PowerShell MCP 服务器,让 AI 助手能够执行 PowerShell 命令并获取结果。
- 支持 Bun 和 Node.js 运行时
- 支持 PowerShell