
Shell Exec
io.github.domdomegg由 GitHub 账号 domdomegg 发布v1.2.0更新于 Oct 24, 2026
Execute bash commands with background job support.
概览
本地 MCP 服务器,让助手在你的机器上执行 bash 命令,并支持后台运行长时间任务。
- 可以做什么
- 执行任意 bash 命令,可设置超时或以后台模式运行
- 查询先前启动的后台任务状态
- 运行构建工具并获取其输出
- 通过 find、grep、mv、rm、mkdir、stat 等命令进行文件操作
- 用 df、ps、env 等命令查看系统状态
- 适用场景
- 适合让助手在本机构建项目、管理文件、查看系统状态,或启动并监控开发服务器等长时间运行的进程。
- 运行要求
- 以本地 stdio 进程运行,通过 npx 启动 npm 包 shell-exec-mcp,需要 Node.js 与 npm。必须设置环境变量 MCP_TRANSPORT。未声明任何认证。仅支持桌面客户端。
安装
在 SourceWeft 中
- 打开 控制台中的 Shell Exec,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
shell-exec-mcp
MCP server for executing bash commands with background job support.
Use Cases
Run build commands: Execute npm run build, make, or other build tools and get the output.
File operations: Use find, grep, mv, rm, mkdir -p, stat etc. for file management.
Long-running tasks: Start servers or watch processes in background mode, check on them later.
System info: Run df -h, ps aux, env etc. to inspect the system state.
Setup
Follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).
Tools
Contributing
Pull requests are welcomed on GitHub! To get started:
- Install Git and Node.js
- Clone the repository
- Install dependencies with
npm install - Run
npm run testto run tests - Build with
npm run build
Releases
Versions follow the semantic versioning spec.
To release:
- Use
npm version <major | minor | patch>to bump the version - Run
git push --follow-tagsto push with tags - Wait for GitHub Actions to publish to the NPM registry.
来源:README.md,提交 4f23013
工具
0版本历史
1- v1.2.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。