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 分

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