App Finishers

Fix guide · updated 2026-11-21

MCP 400 Bad Request: "Unsupported protocol version" or "Header mismatch"

Bad Request: Unsupported protocol version

Your MCP client won't connect, and the server's reply is a 400 Bad Request that talks about the protocol version: Unsupported protocol version, or Header mismatch: missing MCP-Protocol-Version header. The client and the server don't speak a version of MCP they both understand. Since the spec revision of 28 July 2026, there are two kinds of servers: the ones that start with an initialize handshake (every version up to 2025-11-25) and the ones built for 2026-07-28, which drop the handshake. We reproduced each case below on local servers with the official TypeScript SDK (1.32.2) and Python SDK (2.3.0), the latest releases in November 2026, and read the spec and the SDKs' code. The error body tells you which case you're in.

Read the reply first

Send the first message of a 2025-style connection yourself:

curl -i https://your-server.example.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"my-script","version":"1"}}}'

"Header mismatch: missing MCP-Protocol-Version header"

Under 2026-07-28, there's no initialize any more: every request carries the protocol version in an MCP-Protocol-Version header and the method name in an Mcp-Method header, and a server that only speaks this revision must reject a request without them with 400 and a HeaderMismatch error. A client built for 2025 opens with initialize and sends neither header, so it fails on its very first request. The spec says so itself: in its compatibility table, a 2025 client and a 2026-07-28-only server "fails".

In our test, the TypeScript SDK 1.32.2 client failed against such a server with Streamable HTTP error: Error POSTing to endpoint: {"jsonrpc": "2.0", "id": 0, "error": {"code": -32020, "message": "Header mismatch: missing MCP-Protocol-Version header"}}. The Python SDK 2.3.0 client forced to the old handshake (mode="legacy") failed with MCPError: Header mismatch: missing MCP-Protocol-Version header. We saw the same reply this week from live servers in the official MCP registry. Some send a variant, Mcp-Method None != body 'tools/list' or MCP-Protocol-Version header must match params._meta protocol: same cause.

Claude Code 2.1.311 connected to both kinds of 2026-07-28-only server in our test, and to a 2025-only one: on its v2 runtime (the default since 2.1.232, or 2.1.274 when it doesn't fetch feature flags) it asks servers for the newer revision first. With MCP_PROTOCOL_NEGOTIATION=legacy (or MCP_SDK_GENERATION=v1) it keeps the old handshake, and claude mcp list then shows ✘ Failed to connect — HTTP 400: Error POSTing to endpoint: {"jsonrpc": "2.0", "id": 0, "error": {"code": -32020, "message": "Header mismatch: missing MCP-Protocol-Version header"}}. If you see that, remove the variable or update Claude Code.

The fix depends on which side you control:

"missing Mcp-Param-owner header" on a tool call

This one comes later: the connection works and the tool list loads, then a tool call fails with 400 and code -32020. Under 2026-07-28 (SEP-2243), a server can mark a tool parameter with "x-mcp-header": "owner" in its input schema. The client then has to copy that argument into a request header, Mcp-Param-owner: octo, and send the tool's name in Mcp-Name. GitHub's remote MCP server marks owner and repo this way, so a client that skips the headers gets header mismatch: missing Mcp-Param-owner header for parameter "owner" on every repo-scoped tool. That's reported for Cowork scheduled tasks in claude-code#111395, while the same calls work in an interactive session.

In our test, a Python SDK 2.3.0 server had a tool whose owner and repo carry x-mcp-header. A 2026-07-28 call with no Mcp-Name got mcp-name header does not match the request body's 'name' parameter, and one with the name but no parameter headers got Mcp-Param-repo header is missing but the request body's 'repo' argument is present, both -32020. Claude Code 2.1.311 sent every header, also in -p mode with no terminal (mcp-name: list_branches, mcp-param-owner: octo, mcp-param-repo: hello), and so did the Python SDK 2.3.0 client: both calls returned 200. Requests on the 2025 handshake aren't checked for these headers.

"Unsupported protocol version" with supported: ["2026-07-28"]

Some 2026-07-28-only servers don't stop at the headers. They read the initialize and refuse its version: {"code": -32022, "message": "Unsupported protocol version: 2025-11-25", "data": {"supported": ["2026-07-28"], "requested": "2025-11-25"}}. The TypeScript SDK 1.32.2 client shows that whole body after Streamable HTTP error: Error POSTing to endpoint:, and the Python client in legacy mode shows MCPError: Unsupported protocol version: 2025-11-25. It's the case above with a clearer message, and the same fixes apply.

If the supported list also has a 2025 version, the client only has to ask for that one. We met live servers that refuse 2025-06-18 and answer 2025-11-25: a client that negotiates should then work, and one that only knows 2025-06-18 needs an update.

"Bad Request: Unsupported protocol version: 2026-07-28 (supported versions: …)"

That's the TypeScript SDK's own server message. After initialize, it checks the MCP-Protocol-Version header of every request against the versions it knows. In our test, a 2026-07-28 request to a server built on the TypeScript SDK 1.32.2 got 400 and {"jsonrpc":"2.0","error":{"code":-32000,"message":"Bad Request: Unsupported protocol version: 2026-07-28 (supported versions: 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05, 2024-10-07)"},"id":null}.

A client that speaks both kinds handles it on its own. The code -32000 isn't one of the 2026 errors, so the client knows it's talking to an older server and starts over with initialize, as the spec tells it to. A client that only speaks 2026-07-28 can't fall back: there, the server needs an SDK that supports both, or you need a client that does.

The same message with a version that doesn't exist, like 2099-01-01, points at something else: the client, or a proxy in front of the server, sends a wrong MCP-Protocol-Version header. After initialize, the header must carry the version the server answered in its result, not the one the client asked for.

Laravel Boost: "Error: MPC -32602: Unsupported protocol version"

VS Code Copilot logged this when it started Laravel Boost (laravel/boost issue #373, December 2025; Gemini CLI too), and again in February 2026 (#518). The client asked for a newer protocol version than the server knew, and the server answered with an error instead of offering a version it supports, which is what the 2025 spec asks it to do. The maintainers fixed it in Boost 1.8.4. In #518, upgrading fixed it: composer require laravel/boost:^2.0 --with-all-dependencies --dev. Laravel's MCP package now answers an unknown version with the first version it supports instead of an error. Any server that rejects a version in initialize instead of offering its own has the same bug, and the fix is the same: update the server package.

Give your AI tool this prompt:

Our MCP connection fails with 400 Bad Request and a protocol version error ("Unsupported protocol version" or "Header mismatch: missing MCP-Protocol-Version header"). Check, in this order: (1) Send an initialize request with protocolVersion 2025-11-25 and read the error code: -32020 or -32022 with supported ["2026-07-28"] means the server only speaks MCP 2026-07-28; -32000 "Bad Request: Unsupported protocol version" comes from a TypeScript SDK server; -32602 means an older server refused a newer version instead of negotiating. (2) If we own the client: make it speak both eras (Python mcp 2.3+ does by default with mode="auto"), or ask for a version from the server's supported list. (3) If we own the server: serve both the initialize handshake and 2026-07-28 requests (the Python SDK 2.3 server does by default), answer an unknown initialize version with a version we support instead of an error, and name our supported versions in any version error. (4) After initialize, send the negotiated version in the MCP-Protocol-Version header, never a different one. Don't change anything else.

Not quite your error?

Still stuck?

Run the curl above with -v and keep the whole error body: its code and its supported list, if there is one, say which side has to move. If curl gets a 200 and your client still fails, the client sends something else: turn on its debug log and compare the protocolVersion it asks for and the MCP-Protocol-Version header it sends after initialize.