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.
Extensions add methods, _meta fields, resultType values or new behaviours without touching the core. Both parties must announce them in order to use them, and they do so with the extensions field of their capabilities.
_meta["io.modelcontextprotocol/clientCapabilities"].extensions of every request.capabilities.extensions of the server/discover result.{ "capabilities": { "roots": {}, "extensions": {
"io.modelcontextprotocol/ui": { "mimeTypes": ["text/html;profile=mcp-app"] },
"io.modelcontextprotocol/tasks": {} } } }
Format {vendor-prefix}/{name}. They follow the _meta key rules with a mandatory prefix. Official ones use io.modelcontextprotocol/; third-party ones, their own reversed domain (com.example/my-extension).
Current official identifiers: io.modelcontextprotocol/tasks, io.modelcontextprotocol/ui (MCP Apps), io.modelcontextprotocol/skills, io.modelcontextprotocol/oauth-client-credentials, io.modelcontextprotocol/enterprise-managed-authorization.
The value of each entry is an object whose schema is defined by the extension; {} means "supported, no settings". Extensions preferably evolve through flags inside that object; a breaking change requires a new identifier (…/my-extension-v2).
If one party supports an extension and the other does not, the one that supports it MUST either fall back to core behaviour or reject the request with an appropriate error. Extensions SHOULD document their fallback. Examples from the spec: a tool with UI must keep returning useful text to clients without ui; a server that requires an authentication extension may reject clients that do not declare it.
Derived rule: a server MUST NOT return resultType: "task" to a client that did not declare io.modelcontextprotocol/tasks.
experimentalexperimental is a free-form bucket for non-standard features without a formal process; extensions has prefixed identifiers, ext-* repositories, Extensions Track SEPs and a per-client support matrix.
server/discover; unknown (non-official) ones deserve manual review.1. Where does a modern client announce the extensions it supports?
There is no initialize; capabilities, including extensions, travel in _meta in every request.
2. What must a party that supports an extension do if the other does not declare it?
This is the graceful degradation rule; the extension must document which of the two options applies.
3. How is a breaking change introduced in an extension?
Extensions evolve through flags in settings; a breaking change requires a new identifier.