MCP endpoint (Streamable HTTP 2026-07-28)
/titan/agent/mcpPublic Titan area path of POST /mcp (served as api.hexelstudio.com/v1/titan/agent/mcp, /v1 stripped at the edge); a device proof signs this path. MCP Streamable HTTP, protocol revision 2026-07-28 only (https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http). Stateless: no initialize, no protocol session (Mcp-Session-Id and Last-Event-ID are inert and never issued), no GET stream; Accept-Language and Sec-Fetch-Mode (added by WHATWG fetch) are inert too. Every request authenticates like the native API (runtime token; mTLS peer or a device proof over POST, the received path, and the exact body). Version, intent headers, and body are checked before authentication. tools/list and server/discover return the caller's catalog projection (the native GET /capabilities projection and digest); tools/call runs the native invoke sequence. A pending approval is an InputRequiredResult with one empty form elicitation when the client declares form elicitation, else a tool error carrying the approval status; an unfinished execution is an InputRequiredResult with requestState only. requestState is single-use, expiring, and bound to tenant, actor, runtime session, tool, and arguments. Application outcomes (policy deny, kill, idempotency, argument validation) are tool errors (isError) carrying the native error object. Body at most 96 KiB. The answer is always one application/json object.
Headers
Bearer <token>. Runtime identity token from the identity exchange. Through the public edge, device-bound callers (titand) and workloads of the deployment's attached customer Kubernetes clusters are served. A device-bound caller's requests also carry a Titan-Device-Proof over the path below /v1 (or below the cell prefix), i.e. the /titan/agent/... path; an attached cluster's carry none.
Required for a titan_device_key binding: proof over POST, the received path, and the exact body.
application/json, optionally charset=utf-8.
One of: "application/json", "application/json; charset=utf-8"
Both application/json and text/event-stream, once each, in either order, no parameters.
One of: "application/json, text/event-stream"
Exactly the one advertised revision; absent is 400 -32020, any other 400 -32022.
One of: "2026-07-28"
Must equal the body method exactly.
One of: "tools/list", "tools/call", "server/discover"
Required on tools/call (plain or =?base64?...?=) and equal to params.name; forbidden on other methods.
Body parameters
Returns
200A JSON-RPC result (tools/list, server/discover, or tools/call, including tool errors).McpResultResponse
One of: "2.0"
tools/list: tools, ttlMs, cacheScope private. server/discover: supportedVersions, capabilities, ttlMs, cacheScope. tools/call complete: content, structuredContent (the native result, status, approval, or error body), isError. tools/call input_required: requestState and, for a pending approval with declared form elicitation, inputRequests.
Errors
- 400JSON-RPC parse, invalid request or params, -32020 header mismatch (missing or contradicting MCP-Protocol-Version, Mcp-Method, Mcp-Name, or _meta version), -32022 unsupported revision, an invalid or spent requestState, or a header outside the allowlist (Idempotency-Key, caller authority headers, Mcp-Param-*).
- 401Authentication failed; the cause is not distinguished.
- 403An Origin header is present (no browser origin is valid).
- 404A method other than tools/list, tools/call, server/discover (-32601), an unknown, hidden, inactive, or cross-tenant tool (-32602), or a query string.
- 406Accept is not exactly application/json and text/event-stream.
- 413Header or body bounds exceeded.
- 415Content-Type is not application/json.
- 429The per-runtime-principal rate or concurrency bound.
- 503Required local state or the store is unavailable before safe acceptance.