Gateway reference
Every request to *.mcp.co.tz/mcp passes the same eight steps, measured at under 1 ms of overhead with 1,000 open streams.
- Resolve the slug to a published server (cached in memory, refreshed on change).
- Status: suspended or unpublished servers answer
404 server_not_found. - Rate limit per caller, per server and globally (see Rate limits).
- Inspect the JSON-RPC method, tool name and client name. Nothing else is read.
- Headers: keep the declared auth header and MCP headers, strip cookies and other credentials.
- Proxy to the upstream over a dialer that refuses private and internal addresses.
- Stream SSE responses through without buffering. No first byte in 120 s returns
504. - Record metadata for analytics, health and the request log.
Responses carry X-MCP-Co-Tz-Request-Id and X-MCP-Co-Tz-Trace-Id. Quote the request ID when asking a publisher or us for help.
Last updated on