MCP 服务器使用

HTTP 端点与 Streamable HTTP

支持的端点

方法端点用途
GET/mcpMCP SSE / Streamable 连接
POST/mcpMCP JSON-RPC 请求
GET/health健康检查

传输模式

  • STDIO(推荐本地 IDE)— npx puax-mcp-server --stdio
  • HTTP / Streamable HTTPnpx puax-mcp-server --port 2333

常用 CLI

npx puax-mcp-server --stdio\nnpx puax-mcp-server --port 8080\nnpx puax-mcp-server --host 0.0.0.0\nnpx puax-mcp-server --export=cursor --output=./.cursor/rules\nnpx puax-mcp-server --list-platforms\nnpx puax-mcp-server --version\nnpx puax-mcp-server --help

说明:在仓库目录内 npx puax-mcp-server@x.y.z 若仍显示旧版,检查全局旧安装,或使用 node build/index.js --version

上一课
下一课