MCP 服务器使用
HTTP 端点与 Streamable HTTP
支持的端点
| 方法 | 端点 | 用途 |
|---|---|---|
| GET | /mcp | MCP SSE / Streamable 连接 |
| POST | /mcp | MCP JSON-RPC 请求 |
| GET | /health | 健康检查 |
传输模式
- STDIO(推荐本地 IDE)—
npx puax-mcp-server --stdio - HTTP / Streamable HTTP —
npx 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。