MCP Protocol
Protocol surface that affects MCP governance and MCP client compatibility.
Supported protocol versions
AIControls supports MCP protocol version 2026-07-28 (and earlier revisions advertised by upstream servers).
Upstream tool parameter headers
For Streamable HTTP with MCP protocol version 2026-07-28 and later, an upstream tool can mark input properties with x-mcp-header. AIControls uses the upstream tool schema to generate matching Mcp-Param-* HTTP headers from the arguments sent to that tool. For example, GitHub tools can require Mcp-Param-owner and Mcp-Param-repo.
AIControls loads the paginated tool catalog on the upstream connection used to execute the call, including new and replacement connections and connections with separate user credentials. You do not need to run a separate tool-list operation or configure static parameter headers.
Catalog requests respect the upstream cache TTL. Cacheable catalogs are reused while valid; catalogs with a zero or expired TTL require another metadata request. Discovery has a 30-second total deadline, a 16 MiB limit per response, and a shared 16 MiB response-byte budget across all pages fetched during that discovery. It rejects repeated pagination cursors and catalogs exceeding 100 pages or 10,000 tools. If discovery fails or the requested tool is absent from the validated catalog, AIControls reports an error without sending the tool call. These discovery limits do not cap tool execution time or ordinary tool response bodies. Earlier upstream protocol versions retain their existing calling behavior.
Explicit tool-list requests to modern upstreams use the same per-request deadline and response-size limits. Developer scans and per-user datasource refreshes share one deadline and byte budget across the complete paginated tool catalog. Before execution, the combined validated catalog must also fit within 16 MiB when encoded as JSON, including pages reused from the upstream cache. Listing pages individually cannot bypass this catalog limit.
Parameter headers use the exact tool definition validated for the call and the same serialized arguments sent upstream. AIControls replaces any SDK-generated parameter headers with this per-call snapshot, preventing obsolete cursor-cache entries or a concurrent cache invalidation from changing the headers. Nested annotated fields follow the same protocol encoding rules as top-level fields. Unsupported annotated values produce an error before dispatch; missing or null optional values do not produce headers.
Validated tool calls are rejected if an upstream-provided absolute endpoint targets a hostname other than the configured upstream. Neither the arguments nor their parameter headers are sent to that other host. Local argument or header-preparation errors do not retire an otherwise healthy pooled session.
tools/call result discriminator (resultType)
For MCP protocol version 2026-07-28 and later, tools/call responses include a resultType field.
resultType | Meaning |
|---|---|
complete | The tool call is finished and no further client action is required. |
input_required | The server is using the multi round-trip request protocol (MRTR / SEP-2322) and the client should fulfill inputRequests and retry, or retry later when load-shedding is indicated. |
Notes:
input_requiredresults includeinputRequestsand may include an opaquerequestStatethe client must echo back when retrying.- An empty
inputRequestsobject is meaningful: it indicates load-shedding (retry later). - Requests carrying
inputResponsesorrequestStatebypass response-cache reads and writes. - Upstream results with non-empty
inputRequestsand retries with non-emptyinputResponsesare rejected until governed MRTR fulfillment is implemented. They are not relayed to a downstream client's automatic sampling, elicitation, or roots handlers. Empty-map load-shedding remains supported.
Structured tool results
The proxy preserves upstream structuredContent alongside content for HTTP and stdio MCP servers.
Numbers keep their exact upstream representation, including integers above 2^53 and decimals with more than 17 significant digits. SSE events at or near the 16 MiB per-event limit are passed through unchanged, and their numbers may be rounded.
Response policies and content scanning inspect a JSON representation containing both fields.
Redaction and tokenization apply to both representations; if a rewrite produces invalid JSON, the response is rejected rather than returning the original structured data.
Text-only noise filtering, deduplication, and compression are skipped for structured results to preserve their schema.