Modern MCP has no negotiation handshake. Every request carries its protocol version, declared in the request metadata, and on HTTP also in the MCP-Protocol-Version header. The server accepts or rejects each request independently. If the server does not implement the requested version, it must respond with an UnsupportedProtocolVersionError listing the versions it does support, and the client should retry with a mutually supported version or surface an error.
What you need
- The protocol version your client prefers, for example 2026-07-28
- The server endpoint or launch command
- A note of which optional extensions your client needs
Step 1: Send the version on the first request
Include the protocol version in the request metadata on every request. On Streamable HTTP, also send the MCP-Protocol-Version header with the same value, or the server must reject the request.
Step 2: Call server/discover to learn the server
Call server/discover before other requests to learn the server supported versions and capabilities up front. Servers must implement server/discover, though clients are not required to call it first.
Step 3: Retry with a supported version on error
If the server answers UnsupportedProtocolVersionError, pick a version from its supported list and retry. If no version is shared, surface an error to the user instead of silently falling back to old behaviour.
Worked example: synthetic version negotiation for one server
The table below is a synthetic example. It shows the expected result of negotiating a version; no server was contacted.
| Step | Observed | Result |
|---|---|---|
| First request version | 2026-07-28 | Sent in metadata |
| server/discover | Supports 2026-07-28 | Match |
| Unsupported version | Error lists supported versions | Retry works |
| Extension needed | Declared in capabilities | Negotiated |
Expected result (UNTESTED). the version matches, discovery lists the supported version, and an unsupported version is retried cleanly. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Legacy versions from 2025-11-25 and earlier use an initialize handshake instead of per-request metadata.
- A dual-era server serves modern requests statelessly and legacy requests under legacy semantics.
- If one party supports an extension but the other does not, the supporting party must revert to core behaviour or reject the request.
- Clients should cache the era determination for the lifetime of the server process or origin.
