shell执行mcp
MCP服务器,用于在后台作业支持下执行bash命令。
用例
运行构建命令:执行 npm run build, make,或其他构建工具并获取输出。
文件 操作:使用 find, grep, mv, rm, mkdir -p, stat 用于文件管理。
长时间运行的任务:在后台模式下启动服务器或监视进程,稍后检查。
系统信息:运行 df -h, ps aux, env 以检查系统状态。
设置
claude mcp add shell-exec-mcp -- npx -y shell-exec-mcp或者使用HTTP传输:
# Start the server
MCP_TRANSPORT=http PORT=3000 npx -y shell-exec-mcp
# Add to Claude
claude mcp add --transport http shell-exec-mcp http://localhost:3000/mcp工具
| 工具 | 说明 |
|---|---|
execute | 运行bash命令(可选超时和后台模式) |
get_job_status | 检查后台作业的状态 |
贡献
GitHub上欢迎拉取请求!开始:
- 安装Git和Node.js
- 克隆仓库
- 安装依赖项
npm install - 跑
npm run test运行测试 - 建立
npm run build
发布
版本遵循 语义版本规范.
要发布:
- 使用
npm version升级版本 - 跑
git push --follow-tags使用标签推送 - 等待GitHub Actions发布到NPM注册表。
