If you maintain an MCP server or client on top of this package, this release closes a handful of small specification gaps flagged by the official conformance suite. Server conformance rises from 125/181 to 130/182, and client conformance jumps from 27/106 to 51/124. Most fixes are invisible to well-behaved clients, but two of them change the HTTP status and JSON-RPC error code your clients receive when they opt into the 2026-07-28 protocol revision, so they deserve a close look before you upgrade from v1.2.0. The conformance harness also gained scenario-driven tool calling (configured through an MCP_CONFORMANCE_CONTEXT payload), which is what unblocked the newly passing client scenarios such as tools_call, http-custom-headers, and json-schema-2020-12-preservation.
Lifecycle methods now return 404 on modern requests
The 2026-07-28 revision removes initialize and ping from the method surface a conforming server exposes, so requests that explicitly opt into that revision can no longer reach the old lifecycle handlers. Method lookup now runs through a new implementsMethod() check: when a request declares the current protocol version in _meta, the Initialize and Ping handlers are treated as unimplemented and the server answers with HTTP 404 and a JSON-RPC -32601:
{
"jsonrpc": "2.0",
"id": 9,
"error": {
"code": -32601,
"message": "The method [initialize] was not found."
}
}
Legacy framing is untouched. Requests that do not declare a protocol version in _meta keep working initialize and ping handlers, so older clients and existing integrations boot the way they always have.
Upgrade impact: if your test harness, health checks, or client SDK still pings or re-initializes a stateless endpoint using modern framing, those calls now fail. Drop them, or switch those calls to legacy framing without a _meta protocol version.
Missing protocol version metadata now fails with -32602
A request that sends a supported MCP-Protocol-Version header (such as 2026-07-28) but omits the matching member in _meta used to be answered with the generic unsupported-version error, -32022. That was misleading: the version is supported, the metadata is simply missing. The header middleware now returns HTTP 400 with -32602 and a message that names the missing member:
POST /mcp
MCP-Protocol-Version: 2026-07-28
{"jsonrpc":"2.0","id":3,"method":"tools/list","params":{}}
{
"jsonrpc": "2.0",
"id": 3,
"error": {
"code": -32602,
"message": "Invalid params: The request [_meta] is missing the required [io.modelcontextprotocol/protocolVersion] member."
}
}
This is symmetric with the lifecycle change above: speaking the 2026-07-28 dialect now requires both the version header and the _meta declaration, and the server tells you precisely which half is missing.
Upgrade impact: clients that send the new version header should also declare it in _meta. Error handling that special-cases -32022 for this situation should learn about -32602.
resources/read errors now identify the URI
When resources/read is asked for a URI the server cannot resolve, the JSON-RPC error now carries that URI in its data payload, per SEP-2164:
"data": { "uri": "file://reports/q4.pdf" }
Until now data was null, forcing clients — and anyone reading server logs — to trace the error back through the request id to learn which URI failed. If the uri parameter itself is absent, data stays null, so partially formed requests behave as before.
Upgrade impact: purely additive. The only code that can notice is logic asserting that data is empty on read failures.
Header values are trimmed before validation
The ValidateMcpHeaders middleware now strips surrounding spaces and tabs from header values before comparing them. Some proxies, gateways, and hand-rolled clients emit padded values like MCP-Protocol-Version: " 2026-07-28 ", and that padding previously failed strict comparison. The MCP-Protocol-Version, Mcp-Method, and Mcp-Name headers all accept padded values now, and the server consequently drops the http-header-validation scenario from its conformance baseline.
Upgrade impact: none — this only turns previously rejected requests into accepted ones.
Upgrade checklist
- Stop calling
initializeandpingwith 2026-07-28 framing; they now answer HTTP 404 with-32601. Legacy framing (no_metaprotocol version) keeps both methods working. - When you send
MCP-Protocol-Version: 2026-07-28, also declare the version in_meta, or you will get400with-32602instead of-32022. - Expect
resources/readnot-found errors to includedata: {"uri": "..."}; remove any assertions that assumeddataisnull. - Header whitespace no longer breaks validation, so no client changes are needed there.
- Conformance baselines no longer skip
http-header-validationandsep-2164-resource-not-foundon the server side, ortools_call,http-custom-headers, andjson-schema-2020-12-preservationon the client side.