Configuration

Compatibility dates

Applies to
Gatewayruntime for API, AI, and MCP gateways
Hosting
Managed EdgeManaged DedicatedSelf-Hosted

The Zuplo MCP Gateway requires compatibilityDate >= 2026-03-01 in zuplo.jsonc.

JSONCode
// zuplo.jsonc { "version": 1, "compatibilityDate": "2026-03-01", }

The build fails if your project uses any MCP Gateway feature (the McpProxyHandler handler or an mcp-*-inbound policy) with a compatibility date older than 2026-03-01. Bump the date in zuplo.jsonc before adding those features.

New Zuplo projects default to a recent compatibility date, so this only applies to existing projects being upgraded to use the MCP Gateway.

For background on Zuplo's compatibility-date system in general, see Compatibility dates.

MCP protocol 2026-07-28

Set compatibilityDate to 2026-11-06 or later to turn on support for MCP protocol revision 2026-07-28:

JSONCode
// zuplo.jsonc { "version": 1, "compatibilityDate": "2026-11-06", }

With this date, the MCP Gateway handles requests that name 2026-07-28 in the MCP-Protocol-Version header as that revision requires:

  • Upstream readiness checks fall back to server/discover when an upstream refuses initialize.
  • The gateway answers server/discover itself for a caller that hasn't connected the upstream yet, and adds the configured server icons to its reply. The reply lists the protocol versions the upstream serves once the gateway has seen them, and 2026-07-28 plus 2025-11-25 and earlier until then.
  • A caller that hasn't connected the upstream gets an input_required result with a connect link for tools/call, prompts/get, and resources/read (or a -32021 error when the client doesn't support URL elicitation), instead of the -32042 error that 2026-07-28 clients can't act on. The list methods return an empty list, the methods 2026-07-28 removed return HTTP 404 with -32601, and other requests return -32603 with the connect link in data.connectRequired.
  • Before the gateway answers a request itself, it refuses one that a 2026-07-28 server refuses, such as a request without a required MCP-Protocol-Version, Mcp-Method, or Mcp-Name header (-32020).
  • On subscriptions/listen, the request timeout limits only the wait for response headers, so the stream can stay open. A client disconnect cancels the upstream request.

Requests on 2025-11-25 and earlier also get the changes in Gateway answers follow the MCP specification, and these project-wide changes:

  • The gateway's OAuth authorization responses include the RFC 9207 iss parameter, and its authorization server metadata advertises authorization_response_iss_parameter_supported.
  • The configured server icons are also added to an initialize reply that the upstream sends as an event stream.
  • On Managed Edge and in local development, request.signal aborts when the client disconnects. This applies to all code in the project, not only the MCP Gateway.

On an earlier compatibility date, the MCP Gateway relays 2026-07-28 traffic without handling it as that revision.

The same date also turns on 2026-07-28 support in the MCP Server handler, along with other handler changes. See 2026-11-06 for every change it includes.

Gateway answers follow the MCP specification

From compatibility date 2026-11-06, the answers the MCP Gateway builds itself follow the MCP specification in several error and edge cases. Most of them affect a caller that hasn't connected the upstream yet, on MCP protocol 2025-11-25 and earlier:

Request from a caller that hasn't connected the upstreamBefore 2026-11-06From 2026-11-06
initialize on 2025-11-25 that declares capabilities.elicitation.url-32042 URL-elicitation error-32042 URL-elicitation error
Any other request, such as tools/call-32042, or -32600 when only an administrator can connect the upstream-32603 with the connect link in data.connectRequired
ping-32042An empty result
Notification or JSON-RPC response-32042 error without an idHTTP 202 with no body
Empty body, or a body that isn't JSON-32042HTTP 400 with -32700
Message that isn't valid JSON-RPC-32042HTTP 400 with -32600
MCP-Protocol-Version that the route doesn't serve-32042HTTP 400 with -32000
JSON-RPC batch on 2025-06-18 or later-32042HTTP 400 with -32600
JSON-RPC batch on 2025-03-26 or without a version headerOne -32042 errorOne answer for each message
GET or DELETEHTTP 200 with a -32042 errorHTTP 405 with Allow: POST

A client that relied on -32042 for a tools/call reads the connect link from data.connectRequired.authUrl instead.

On a route with the mcp-token-exchange-inbound policy, the date also changes what the client gets when the upstream rejects the credential the gateway sent. When the upstream still answers 401 after the gateway refreshed its credential, or answers 403 with a WWW-Authenticate challenge, the gateway answers each request with JSON-RPC error -32603 and the message The upstream MCP server rejected the gateway's credential., with the upstream's status in data.upstreamStatus. Before 2026-11-06, the client gets the upstream's response, including its WWW-Authenticate challenge, and reads the 401 as its own gateway token failing. A route without the policy relays the upstream's response on every date.

On a 2026-07-28 request, the methods that 2026-07-28 removed, such as ping and logging/setLevel, get HTTP 404 with -32601 from the gateway instead of a connect-required answer.

Last modified on