part…
Building governance for MCP?
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
MCP is a capability-based protocol: each party declares what it supports and the other MUST respect what was declared. In 2026-07-28 the client's declaration travels in every request; the server's is obtained with server/discover.
They go in _meta["io.modelcontextprotocol/clientCapabilities"] of every request (a mandatory field, even if it is {}):
{
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {
"elicitation": { "form": {}, "url": {} },
"sampling": { "tools": {} },
"roots": {},
"experimental": {},
"extensions": { "io.modelcontextprotocol/tasks": {} }
}
}
}
| Capability | Subfields | Meaning |
|---|---|---|
elicitation |
form, url |
The client accepts elicitation/create in those modes. An empty {} is equivalent to form only (compatibility). |
sampling (Deprecated) |
tools, context |
Accepts sampling/createMessage; tools enables tool use; context enables the deprecated includeContext values. |
roots (Deprecated) |
— | Accepts roots/list. |
experimental |
free-form | Non-standard features. |
extensions |
map id → settings | Supported extensions. |
Key rule: the server MUST NOT rely on undeclared capabilities. If it needs a missing one to process the request, it MUST return MissingRequiredClientCapabilityError:
{
"jsonrpc": "2.0",
"id": 7,
"error": {
"code": -32021,
"message": "Missing required client capability",
"data": { "requiredCapabilities": ["elicitation"] }
}
}
In HTTP, with status 400 Bad Request.
This is why MRTR requires that a server MUST NOT include in inputRequests requests of a type the client did not declare.
They are obtained with server/discover:
{
"resultType": "complete",
"supportedVersions": ["2026-07-28", "2025-11-25"],
"capabilities": {
"tools": { "listChanged": true },
"resources": { "subscribe": true, "listChanged": true },
"prompts": { "listChanged": true },
"completions": {},
"logging": {},
"experimental": {},
"extensions": { "io.modelcontextprotocol/tasks": {}, "io.modelcontextprotocol/ui": {} }
},
"instructions": "…",
"ttlMs": 3600000,
"cacheScope": "public",
"_meta": { "io.modelcontextprotocol/serverInfo": { "name": "ExampleServer", "version": "1.0.0" } }
}
| Capability | Subfields | Meaning |
|---|---|---|
tools |
listChanged |
Exposes tools; will emit notifications/tools/list_changed to whoever requests it via listen. |
resources |
subscribe, listChanged |
Exposes resources; subscribe = accepts resourceSubscriptions in listen. |
prompts |
listChanged |
Exposes prompts. |
completions |
— | Supports completion/complete. |
logging (Deprecated) |
— | Will emit notifications/message if the request carries logLevel. |
experimental, extensions |
— | Same as on the client. |
Every implemented server feature MUST be advertised in its capabilities; a client should not call tools/list on a server that does not declare tools (it will receive -32601).
listChanged and subscribeDeclaring them sends nothing by itself. In the modern era, notifications only flow over a subscriptions/listen stream in which the client has set toolsListChanged, promptsListChanged, resourcesListChanged or resourceSubscriptions. The server that declared listChanged SHOULD send the notification to those clients when the list changes.
elicitation towards that server and the server will not be able to request it.server/discover respecting its ttlMs; it is the source of truth for the capability inventory.-32021 received: it indicates a request that your capability policy blocked or a server that demands something you do not want to give.1. What must a server do if it needs a capability the client did not declare?
The spec requires -32021 with data.requiredCapabilities, and HTTP 400.
2. What does an elicitation capability equal to {} mean?
For compatibility, the empty object is equivalent to declaring form only.
3. Where does a modern server advertise its capabilities?
There is no initialize; server/discover returns capabilities, supportedVersions, instructions and serverInfo.