MCP capability negotiation
What is MCP capability negotiation?
MCP capability negotiation is the initialize handshake in which a Model Context Protocol client and server agree on a protocol version and declare which optional features, such as tools, resources, sampling or roots, each side supports for the session. AdminKit's MCP endpoint check starts from this same initialize call.
By AdminKit team, Netbase JSC · Updated
Every Model Context Protocol session, the protocol Anthropic introduced as an open standard for connecting AI applications to data and tools, begins the same way. The MCP lifecycle specification requires initialization to be the first interaction between client and server, and in it the two sides establish protocol version compatibility, exchange and negotiate capabilities, and share implementation details.
How does MCP capability negotiation work?
The client opens with an initialize request carrying the protocol version it wants, its own capabilities and a clientInfo name and version. An abridged example from the specification:
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": { "roots": { "listChanged": true }, "sampling": {} },
"clientInfo": { "name": "ExampleClient", "version": "1.0.0" }
}
}
The server replies with the version it will speak, its own capabilities, such as tools, resources, prompts, logging or completions, and a serverInfo block. If it does not support the requested version it offers another, and a client that cannot use that one should disconnect. The client then sends notifications/initialized. That message is a notification in JSON-RPC 2.0 terms, a request without an id, which the receiver must not answer. Over HTTP, the client then sends the agreed version in an MCP-Protocol-Version header on every later request.
Sub-capabilities refine what was agreed: listChanged means a side will notify when its list of tools, prompts or resources changes, and subscribe lets a client follow changes to individual resources. From here on both parties must only use capabilities that were successfully negotiated. A client that never declared roots will not be asked for them, and a server that never declared tools has none to call.
Why does capability negotiation matter for security?
The initialize response is the first thing any client learns about a server, before a single tool runs. A server that answers it without asking who is connecting will usually go on to answer tools/list too, telling an anonymous caller which tools exist. A declared capability is a statement of support, not an access control: deciding who may connect is the job of authentication, which for HTTP-based servers the specification builds on OAuth for MCP.
AdminKit’s MCP endpoint check sends this initialize call to see whether a server requires authentication, and when it does not, continues to tools/list without ever calling a tool.
MCP capability negotiation belongs to AdminKit’s AI agents & MCP cluster; the full AdminKit glossary lists other related terms.
Frequently asked questions
What happens if the MCP client and server support different protocol versions?
The client sends the version it wants, normally its latest. A server that supports it answers with the same version; otherwise it answers with another version it supports, and a client that cannot use that version should disconnect.
Which capabilities can an MCP client and server declare?
The 2025-06-18 specification lists roots, sampling and elicitation for clients, and prompts, resources, tools, logging and completions for servers, plus an experimental entry on both sides. Sub-capabilities such as listChanged and subscribe refine them.
Can either side use a feature the other did not declare?
No. During the operation phase both parties must respect the negotiated protocol version and only use capabilities that were successfully negotiated.
Is capability negotiation the same as authentication?
No. Declaring a capability says what a side supports, not who is allowed to use it. Authorization for HTTP-based MCP servers is a separate mechanism built on OAuth.