Procm

io.github.coder-ka由 GitHub 帳號 coder-ka 發布v0.0.43更新於 Oct 24, 2026

A Model Context Protocol (MCP) server for process management.

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理在你的電腦上啟動、監控、重新啟動與停止白名單內的行程,並讀取其輸出。

可以做什麼
  • 依指令碼、參數、工作目錄與環境變數啟動行程,可指定易讀名稱
  • 將特定指令與工作目錄組合加入白名單,之後啟動無須再次確認
  • 列出受管理的行程,並依 ID 取得單一行程的詳細資訊
  • 重新啟動或刪除行程,先送 SIGTERM,10 秒後仍未結束則送 SIGKILL
  • 讀取行程最近的 stdout 與 stderr 日誌內容
適用情境
適合讓助理在背景啟動開發伺服器、docker-compose 或測試監看程式,再讀取日誌自動排查並修正問題,省去手動複製輸出。它建立的行程會在工作階段結束時自動清理。
執行需求
以本機 stdio 行程在桌面環境執行;需安裝 npm 套件 procm-mcp,並用 node 指向其建置入口檔案。未宣告需要帳號、API 金鑰或環境變數。
安裝前請注意
此伺服器會在你的電腦上執行指令。不要讓助理在未確認的情況下呼叫 allow-start-process,否則等於放行任意指令與工作目錄;請逐筆審核白名單。啟動行程時可傳入環境變數,delete-process 逾時後會強制結束行程。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Procm,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

procm-mcp

A Model Context Protocol (MCP) server for process management.

Supported features

  • Secure and automatable process creation
  • Cleanup created processes automatically on termination (e.g. exiting claude code)
  • Common process management features supported, restarting, deleting, checking status or retreving stdout/stderr of processes

Using these features, LLMs start processes like development servers, docker-compose, or test watchers and check their outputs to fix bugs automatically.

Installation

bash
npm i -D procm-mcp

.mcp.json

json
{  "mcpServers": {    "procm-mcp": {      "command": "node",      "args": ["./node_modules/procm-mcp/build/index.js"],      "env": {}    }  }}

Secure process creation

You can permit LLMs to use start-process tool without confirmation, because procm-mcp only allow whitelisted process creations.

LLMs will ask you to use allow-start-process tool to add specific process creation to the whitelist.

Once you allow a process creation, you don't have to confirming it anymore as long as the command and the working directory are the same.

I call it "allow-x pattern", which can balances security and usability in MCP.

Warning: Do not permit LLMs to use allow-start-process without confirmation.That means "Do anything you want to".

Tools

  • allow-start-process Allow specific processes to be created
    • script (required): The script/command to allow
    • args (optional): Array of arguments
    • cwd (optional): Working directory
  • start-process Start a new process with specified script and arguments
    • script (required): The script/command to execute
    • name (optional): A friendly name for the process
    • args (optional): Array of arguments to pass to the script
    • cwd (required): Working directory for the process
    • envs (optional): Environment variables to set for the process
  • delete-process Stop and remove a process by ID.The default signal is SIGTERM, but SIGKILL(force killing) will be sent after 10 seconds unless the process exits.
    • id (required): The process ID
  • restart-process Restart an existing process by ID
    • id (required): The process ID
  • get-process-info Get detailed information about a process
    • id (required): The process ID
  • list-processes List all currently managed processes
    • No parameters required
  • get-process-stdout Retrieve stdout logs from a process
    • id (required): The process ID
    • chunkCount (optional): Number of recent log entries to retrieve (default: 10)
  • get-process-stderr Retrieve stderr logs from a process
    • id (required): The process ID
    • chunkCount (optional): Number of recent log entries to retrieve (default: 10)

License

MIT

來源:README.md,提交 15dcee3

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.0.43最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

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