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 分

    請在儲存庫或註冊中心條目中宣告授權條款。