Skip to content

Mcp Stdio

worable edited this page Oct 20, 2026 · 1 revision

MCP stdio bridge

@stackpanel/mcp 仅负责把 stdin/stdout 的换行 JSON-RPC 转发至平台 POST /mcp;领域逻辑始终在服务端。

STACKPANEL_API_URL=https://panel.example.com \
STACKPANEL_API_TOKEN=sp_xxx \
npx @stackpanel/mcp

客户端配置:

{
  "mcpServers": {
    "stackpanel": {
      "command": "npx",
      "args": ["-y", "@stackpanel/mcp"],
      "env": { "STACKPANEL_API_URL": "https://panel.example.com", "STACKPANEL_API_TOKEN": "sp_xxx" }
    }
  }
}

为每个客户端单独创建最小权限 Token;不要在共享配置、日志或插件设置中保存管理员 Token。

Clone this wiki locally