故障排除
从 doctor 开始。它会运行你原本需要在 AI 客户端中通过反复尝试才能完成的所有检查,并指出任何失败项应如何修改。
bash
npx -y @octri/mcp doctor --project-id YOUR_PROJECT_IDtext
PASS Project YOUR_PROJECT_ID
PASS Octri API https://api.octri.dev/api/v1 answered
PASS Operation tools 281 offered, 161 ask the user before each call (needs a client with MCP elicitation)
PASS Base URL https://api.acme.com/v1
PASS Credentials bearer auth: OCTRI_API_TOKEN set
PASS Test call listUsers: 200
INFO Usage reporting On. Set OCTRI_TELEMETRY=0 to turn it off.
Ready. Add the server to your client and ask it about your API.添加 --no-call 可跳过测试调用。若有任何失败,doctor 会以非零状态码退出,因此也适用于 CI。品牌定制包使用相同的命令:acme-payments-mcp doctor。
如果 doctor 检查通过,但客户端中没有显示工具,问题出在客户端配置,而不是服务器。