server-run-commands

server-run-commands

MCP 服务器用于在本地操作系统上运行命令

概述

MCP 服务器允许你在本地操作系统上运行命令并将结果返回给 LLM。

功能

  • run-command 工具:在本地系统上执行命令,返回退出码和标准输出

安装步骤

git clone https://github.com/anton-107/server-run-commands.git
cd server-run-commands
npm install
npm run build

配置 Claude Desktop

将以下配置添加到 claude_desktop_config.json 文件中:

{
  "mcpServers": {
    "run-commands": {
      "command": "<本地 NODE 的路径>",
      "args": [
        "<GIT 克隆文件夹的路径>/server-run-commands/build"
      ]
    }
  }
}

资源