Shell Exec

io.github.domdomegg由 GitHub 账号 domdomegg 发布v1.2.0更新于 Oct 24, 2026

Execute bash commands with background job support.

已验证STDIO仅桌面文件与存储开发者工具

概览

AI 生成的概览

本地 MCP 服务器,让助手在你的机器上执行 bash 命令,并支持后台运行长时间任务。

可以做什么
  • 执行任意 bash 命令,可设置超时或以后台模式运行
  • 查询先前启动的后台任务状态
  • 运行构建工具并获取其输出
  • 通过 find、grep、mv、rm、mkdir、stat 等命令进行文件操作
  • 用 df、ps、env 等命令查看系统状态
适用场景
适合让助手在本机构建项目、管理文件、查看系统状态,或启动并监控开发服务器等长时间运行的进程。
运行要求
以本地 stdio 进程运行,通过 npx 启动 npm 包 shell-exec-mcp,需要 Node.js 与 npm。必须设置环境变量 MCP_TRANSPORT。未声明任何认证。仅支持桌面客户端。
安装前请注意
它会以你的用户权限执行任意 bash 命令,包括 rm 等破坏性操作,也能读取可能含密钥的环境变量。后台任务在调用返回后仍会继续运行。仅在信任助手及其将执行的命令时安装。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Shell Exec,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

ToolDescription
executeRun a bash command (with optional timeout and background mode)
get_job_statusCheck status of a background job

Contributing

Pull requests are welcomed on GitHub! To get started:

  1. Install Git and Node.js
  2. Clone the repository
  3. Install dependencies with npm install
  4. Run npm run test to run tests
  5. Build with npm run build

Releases

Versions follow the semantic versioning spec.

To release:

  1. Use npm version <major | minor | patch> to bump the version
  2. Run git push --follow-tags to push with tags
  3. Wait for GitHub Actions to publish to the NPM registry.

来源:README.md,提交 4f23013

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.2.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。