MCP Docs
Troubleshooting and Best Practices
Admin
2026/4/2
3 阅读
Troubleshooting and Best Practices
Common status codes
401: expired cookie, wrong OpenAPI private key, or expired timestamp403: insufficient role permissions404: target resource ID does not exist500: server failure or inconsistent database state
Recommended troubleshooting order
- Verify that the MCP endpoint points to the correct environment.
- Verify that
MCP_SESSION_COOKIEis still valid. - Verify that the OpenAPI user ID matches the private key.
- Verify that all referenced IDs exist.
Production guidance
- Create a dedicated API user for MCP access.
- Isolate keys by environment such as development, staging, and production.
- Keep audit logs for important tool calls.
- Add idempotency and rollback planning for write operations.
