Blog · MCP
One remote MCP server, nine clients: what each one really sends
MCP changed its wire protocol on 28 July 2026. We pointed nine clients and SDKs at a server that logged every request. On 1 December, two of them spoke the new protocol. Against a server that speaks only the new one, three agents answered the user with no tools and no error.
The short version
VersionsServe 2025-03-26, 2025-06-18 and 2025-11-25, and add 2026-07-28 beside them. Do not switch over.Missing headerAccept requests withoutMCP-Protocol-Version. Gemini CLI never sent it.SpeedIn one-shotcodex exec, a slow handshake meant no tools.required = truefixed it.Sign-inKeep dynamic registration. Adding metadata documents helps Claude Code and Codex.TestingCheck a tool call. A green "Connected" is not enough.
Why we looked
In November our own MCP server accepted one protocol version, 2025-06-18, and refused any request without the header. Of 514 POST requests from Claude over three days, 155 got HTTP 400. We fixed it on 23 November by accepting three versions and treating a missing header as 2025-03-26, which is what the specification says an older request without one means.
By then there was already a newer version. It removes the initialize handshake and sessions. Every request carries its version, and servers must answer server/discover. The versioning rules let a new client fall back to an old server, but an old client cannot move up to a new-only server.
What each client did
Three servers: one that accepts only 2025-06-18 and insists on the header (our November bug), one that serves old and new versions on the same URL, and one that serves only 2026-07-28.
| Client | First message | One old version only | Old and new | 2026-07-28 only |
|---|---|---|---|---|
| Claude Code 2.1.331 | server/discover, then initialize |
Works | Works, new protocol | Works |
| FastMCP 4.2.6 (Python) | server/discover, then initialize |
Works | Works, new protocol | Works |
| Codex CLI 0.172.0 | initialize 2025-06-18 |
Works | Works | No tools |
| Gemini CLI 0.71.1 | initialize 2025-11-25 |
Disconnected | Works | Disconnected |
| Cline CLI 3.0.76 | initialize 2025-11-25 |
Works | Works | No tools |
| OpenCode 1.19.6 | initialize 2025-11-25 |
Works | Works | No tools |
| MCP Inspector CLI 2.17.0 | initialize 2025-11-25 |
Works | Works | Clear error |
| mcp-remote 0.17.2 | initialize 2025-11-25 |
Works | Works | Fails |
| TypeScript SDK 1.32.2 and 2.4.0, defaults | initialize 2025-11-25 |
Works | Works | Fails |
A fourth server, with the three 2025 versions and no 2026-07-28, worked with all nine.
Claude Code was measured with claude mcp list. Codex, Cline and OpenCode ran full sessions with a tool call, driven by a scripted model. Gemini CLI ran a session that never reached a tool call. Versions are npm or PyPI packages as installed on 1 December 2026.
Failures that do not look like failures
Gemini CLI and the missing header. It agreed a version during initialize and then sent no MCP-Protocol-Version on any request. The strict server answered 400 to the next message. In a session it carried on without the server: the model was offered 15 tools instead of 16.
New-only servers. Codex, Cline and OpenCode started the session and let the model answer without the tool. OpenCode's server list does show an error, but a misleading one: after initialize failed it tried the older SSE transport and reported SSE error: Non-200 status code (405). If you see that, check the protocol version first.
Codex and slow servers. With a local server, codex exec offered its tool at once. We then delayed every response. At 300 ms the tool was there; at 400 ms and above the model was asked without it. Our live server, about 0.9 seconds per fresh connection from here, lost its tools the same way. Our scripted model replied instantly and we only looked at one-shot runs, so treat the threshold as a guide. Adding one line fixed it both times:
[mcp_servers.cleanedweb]
url = "https://api.cleanedweb.com/mcp?profile=public"
required = true
With required = true, Codex waited for the tools, and stopped with required MCP servers failed to initialize on the new-only server.
What sign-in looks like on the wire
The 2026-07-28 specification deprecates dynamic client registration in favor of client ID metadata documents, where the client's ID is a URL describing it. We logged both setups:
| Client | Server offers registration only | Server also advertises metadata documents |
|---|---|---|
| Claude Code | Registers as Claude Code (lab) |
Uses https://claude.ai/oauth/claude-code-client-metadata |
| Codex CLI | Registers as Codex |
Uses https://chatgpt.com/oauth/codex/client.json |
| OpenCode | Registers as OpenCode |
Still registers |
| mcp-remote | Registers as MCP CLI Client |
Still registers |
All four found the authorization server through the protected-resource metadata, used PKCE with S256, and sent the resource parameter. Redirects go to localhost or 127.0.0.1; Claude Code, Codex and mcp-remote used a different port each run, so match loopback redirects without the port.
codex mcp add started a sign-in on our public URL, which needs none. The likely reason is that the same host publishes sign-in metadata for its other URLs. Writing the block above into ~/.codex/config.toml avoided it.
Claude Code was recorded up to the authorization page; its last step did not complete in our isolated setup. Gemini CLI and Cline did not start a sign-in from the commands we ran.
Connect the same server from each client
This URL needs no account and has two tools, so you can try the setup before using your own. Claude Code, Gemini CLI, Cline and OpenCode connected with it on 1 December:
# Claude Code
claude mcp add --transport http cleanedweb "https://api.cleanedweb.com/mcp?profile=public"
# Gemini CLI
gemini mcp add -s user -t http cleanedweb "https://api.cleanedweb.com/mcp?profile=public"
# Cline CLI
cline mcp add cleanedweb "https://api.cleanedweb.com/mcp?profile=public" --transport http --yes
OpenCode, in opencode.json:
{
"mcp": {
"cleanedweb": {
"type": "remote",
"url": "https://api.cleanedweb.com/mcp?profile=public",
"enabled": true
}
}
}
Codex uses the block shown earlier. We did not log the remaining three:
CursorIn~/.cursor/mcp.json, add the URL as"url"undermcpServers. A user reported on 21 September that version 3.21.16 could not connect to a new-only server.ChatGPTOn the web: Plugins, the plus button, then Add custom MCP server. OpenAI's guide lists SSE and streaming HTTP, and no protocol version.ClaudeAdd a custom connector with the URL. Anthropic's page covers which sign-in methods it uses.
Check your own server
This works on a server without sign-in or sessions. Save it as check.sh and pass your URL.
URL="${1:-https://api.cleanedweb.com/mcp?profile=public}"
post() { curl -s -o /dev/null -w '%{http_code}' "$URL" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' "$@"; }
LIST='{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
echo "no version header: $(post -d "$LIST")"
for v in 2025-03-26 2025-06-18 2025-11-25; do
echo "$v: $(post -H "MCP-Protocol-Version: $v" -d "$LIST")"
done
META='"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientInfo":{"name":"check","version":"1"},"io.modelcontextprotocol/clientCapabilities":{}'
echo "2026-07-28: $(post -H 'MCP-Protocol-Version: 2026-07-28' -H 'Mcp-Method: server/discover' \
-d '{"jsonrpc":"2.0","id":1,"method":"server/discover","params":{"_meta":{'"$META"'}}}')"
echo "GET: $(curl -s -o /dev/null -w '%{http_code}' -H 'Accept: text/event-stream' "$URL")"
On our server on 1 December it printed 200 for the first four lines, 2026-07-28: 400 and GET: 403. So we do not speak the new version yet, and the specification wants 405 for that GET. The five clients we tried against a 403 (Claude Code, Gemini CLI, OpenCode, Cline and mcp-remote) connected anyway. A server for old and new clients should print 200 five times, then 405.
1Accept a missing version header as 2025-03-26.2Accept all three 2025 versions, and answer 400 to ones you do not know. Claude Code and FastMCP fall back toinitializeon that 400.3Addserver/discoverand 2026-07-28 on the same URL.4Answer GET with 405 if you have no event stream.5Without a token, answer 401 withWWW-Authenticateand aresource_metadataURL.6Monitor tool calls per client as well as connections.
About the server in the examples
It is ours. The public URL searches our API catalog. The signed-in one also runs the APIs, which is billed. Setup for both is in the MCP guide.
Questions
Can I move my server to 2026-07-28 only?
Not if people use it from common agents. In our test only Claude Code and FastMCP connected. The other seven failed, and the specification gives older clients no way to move up.
Do I have to support 2026-07-28 now?
No client we tested required it. Claude Code and FastMCP tried it first and fell back when the server answered 400. Supporting it saves them that extra request.
Why does OpenCode report an SSE error on a Streamable HTTP server?
Its first attempt failed, so it tried the older transport, and that error is the one it shows. The cause is in the earlier POST.
Should I drop dynamic client registration?
Not yet. OpenCode and mcp-remote registered even when the server advertised metadata documents.
More posts
-
Steam turned off /appreviews
The old review URL redirects to the store. What changed, and which old parameters now fail without an error.
-
What broke in our website APIs
Our monitor blamed the website 48 times. One was a real site change, three were the site refusing us, and 19 were ours.
Need data from a website?
Browse the catalog of maintained website APIs, or ask for a site it does not cover yet. 5,000 records are free once; after that you pay per record delivered.