---
title: "MCP endpoint (Streamable HTTP 2026-07-28)"
url: https://hexelstudio.com/docs/api/titan-agent/agent/mcp
---

# MCP endpoint (Streamable HTTP 2026-07-28)

**POST** `/titan/agent/mcp`

Public 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

- `Authorization: string`

  `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.

- `Titan-Device-Proof: optional string`

  Required for a titan_device_key binding: proof over POST, the received path, and the exact body.

- `Content-Type: string`

  application/json, optionally charset=utf-8.

  One of: `"application/json"`, `"application/json; charset=utf-8"`

- `Accept: string`

  Both application/json and text/event-stream, once each, in either order, no parameters.

  One of: `"application/json, text/event-stream"`

- `MCP-Protocol-Version: string`

  Exactly the one advertised revision; absent is 400 -32020, any other 400 -32022.

  One of: `"2026-07-28"`

- `Mcp-Method: string`

  Must equal the body method exactly.

  One of: `"tools/list"`, `"tools/call"`, `"server/discover"`

- `Mcp-Name: optional string`

  Required on tools/call (plain or =?base64?...?=) and equal to params.name; forbidden on other methods.

## Body parameters

- `id: string or integer`

- `jsonrpc: string`

  One of: `"2.0"`

- `method: string`

  Any other method is 404 with JSON-RPC -32601.

  One of: `"tools/list"`, `"tools/call"`, `"server/discover"`

- `params: object`

  - `_meta: object`

    Per-request metadata. io.modelcontextprotocol/logLevel and other reserved io.modelcontextprotocol/ keys are rejected; other prefixed keys are inert.

    - `com.hexelstudio.titan/idempotencyKey: optional string`

      tools/call only: the idempotency key of a side-effecting revision (native Idempotency-Key rules).

    - `io.modelcontextprotocol/clientCapabilities: object`

      Only elicitation (form mode) is read; every other declared capability is inert.

    - `io.modelcontextprotocol/clientInfo: optional object`

      Self-reported; display only.

    - `io.modelcontextprotocol/protocolVersion: string`

      One of: `"2026-07-28"`

  - `arguments: optional object`

    tools/call only; absent means {}.

  - `inputResponses: optional object`

    tools/call retry only, with requestState: exactly {"titan_approval": {"action": accept|decline|cancel}}, no content.

  - `name: optional string`

    tools/call only: the tool name (capability id with . as __).

  - `requestState: optional string`

    tools/call retry only: the opaque continuation token, echoed.

## Returns

`200` A JSON-RPC result (tools/list, server/discover, or tools/call, including tool errors). (`McpResultResponse`)

- `id: string or integer`

- `jsonrpc: string`

  One of: `"2.0"`

- `result: object`

  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.

  - `resultType: string`

    One of: `"complete"`, `"input_required"`

## Errors

- `400` JSON-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-*).
- `401` Authentication failed; the cause is not distinguished.
- `403` An Origin header is present (no browser origin is valid).
- `404` A method other than tools/list, tools/call, server/discover (-32601), an unknown, hidden, inactive, or cross-tenant tool (-32602), or a query string.
- `406` Accept is not exactly application/json and text/event-stream.
- `413` Header or body bounds exceeded.
- `415` Content-Type is not application/json.
- `429` The per-runtime-principal rate or concurrency bound.
- `503` Required local state or the store is unavailable before safe acceptance.

## Example

```bash
curl --request POST \
  --url 'https://api.hexelstudio.com/v1/titan/agent/mcp' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: CONTENT_TYPE' \
  --header 'Accept: ACCEPT' \
  --header 'MCP-Protocol-Version: MCP_PROTOCOL_VERSION' \
  --header 'Mcp-Method: MCP_METHOD' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "string",
  "jsonrpc": "2.0",
  "method": "tools/list",
  "params": {
    "_meta": {
      "com.hexelstudio.titan/idempotencyKey": "string",
      "io.modelcontextprotocol/clientCapabilities": {},
      "io.modelcontextprotocol/clientInfo": {},
      "io.modelcontextprotocol/protocolVersion": "2026-07-28"
    },
    "arguments": {},
    "inputResponses": {},
    "name": "string",
    "requestState": "string"
  }
}'
```

### Response (200)

```json
{
  "id": "string",
  "jsonrpc": "2.0",
  "result": {
    "resultType": "complete"
  }
}
```

### Response (400)

```json
{
  "error": {
    "code": 0,
    "data": "string",
    "message": "string"
  },
  "id": "string",
  "jsonrpc": "2.0"
}
```

### Response (401)

```json
{
  "error": {
    "code": 0,
    "data": "string",
    "message": "string"
  },
  "id": "string",
  "jsonrpc": "2.0"
}
```

### Response (403)

```json
{
  "error": {
    "code": 0,
    "data": "string",
    "message": "string"
  },
  "id": "string",
  "jsonrpc": "2.0"
}
```

### Response (404)

```json
{
  "error": {
    "code": 0,
    "data": "string",
    "message": "string"
  },
  "id": "string",
  "jsonrpc": "2.0"
}
```

### Response (406)

```json
{
  "error": {
    "code": 0,
    "data": "string",
    "message": "string"
  },
  "id": "string",
  "jsonrpc": "2.0"
}
```

### Response (413)

```json
{
  "error": {
    "code": 0,
    "data": "string",
    "message": "string"
  },
  "id": "string",
  "jsonrpc": "2.0"
}
```

### Response (415)

```json
{
  "error": {
    "code": 0,
    "data": "string",
    "message": "string"
  },
  "id": "string",
  "jsonrpc": "2.0"
}
```

### Response (429)

```json
{
  "error": {
    "code": 0,
    "data": "string",
    "message": "string"
  },
  "id": "string",
  "jsonrpc": "2.0"
}
```

### Response (503)

```json
{
  "error": {
    "code": 0,
    "data": "string",
    "message": "string"
  },
  "id": "string",
  "jsonrpc": "2.0"
}
```
