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.
A governance platform will eventually need metadata and perhaps methods that the core does not have (identifier of the policy applied, reason for a block, data classification). The spec offers three routes with different costs; choose the minimal one that works.
| Route | When | Cost |
|---|---|---|
_meta with your own prefix |
You only need to attach metadata to requests, results or definitions. | Minimal: reverse-DNS prefix (com.axium.gov/…), no negotiation. A receiver that does not understand it ignores it. |
| Tools / resources of the gateway itself | You need invocable operations (e.g. "request permission elevation"). | Medium: they are standard primitives, visible to the model and the user. |
| Extension | You need new methods, resultType values, or behaviour that both parties must agree on. |
High: prefixed identifier, settings object, RFC 2119 documentation, fallback, and if it aspires to be official, SEP + reference implementation + group. |
{prefix}/{name} with your own prefix (never io.modelcontextprotocol/, *.mcp/ or similar)._meta keys with the same prefix; respect the grammar (labels, /, alphanumeric name with -, _, .).extensions in capabilities; define the schema of the settings object and version it with flags; a new identifier for breaking changes.resultType values, they are only valid when the extension has been negotiated._meta mandatory, errors outside -32768..-32000 or standard codes).{ "capabilities": { "extensions": { "com.axium.gov/policy": { "version": 1, "explain": true } } } }
{ "jsonrpc": "2.0", "id": 9, "result": { "resultType": "complete", "content": [{ "type": "text", "text": "…" }],
"_meta": { "com.axium.gov/policy-id": "pol-2026-10-25-07", "com.axium.gov/redactions": 2 } } }
_meta: it covers 90% of traceability needs without negotiation.1. Which prefix can an extension from the company example.com use?
Your own reversed domain; the other two are reserved.
2. When is _meta enough instead of an extension?
_meta with your own prefix requires no negotiation.