运行命令服务器是一个 MCP 服务器,可在本地操作系统上运行命令。该服务器的代码依据官方 MCP 指南编写,相关指南可参考:MCP 快速开始。
command(字符串类型)。按照以下步骤进行安装:
git clone https://github.com/anton-107/server-run-commands.git
cd server-run-commands
npm install
npm run build
将以下内容添加到你的 claude_desktop_config.json 文件中:
{
"mcpServers": {
"run-commands": {
"command": "<本地 NODE 路径>",
"args": [
"/server-run-commands/build"
]
}
}
}