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.
Twelve labs that build, step by step, the pieces of the platform. Each one has an objective, a deliverable and an acceptance criterion based on the spec. Any language; the examples assume TypeScript or Python because of the availability of Tier 1 SDKs and of the conformance suite.
| # | Lab | Deliverable | Acceptance |
|---|---|---|---|
| 1 | Parser and validator JSON-RPC + MCP rules | Library that validates messages against the 2026-07-28 and 2025-11-25 schema.json, with rules for id, _meta, resultType and rejection of batches. |
Passes the suite's wire-schema tests; tests with messages from the appendices. |
| 2 | Dual-era stdio client | Launches a process, probes with server/discover, falls back to initialize, demultiplexes stdout, cancels and shuts down in an orderly way. |
Works against a legacy test server and a modern one from the Inspector. |
| 3 | Modern Streamable HTTP server | POST endpoint with header validation (-32020), server/discover, tools/list with ttlMs, SSE with keep-alive, close = cancellation. |
Suite server --spec-version 2026-07-28 green; Inspector in modern. |
| 4 | Dual-era HTTP client | Modern request, inspection of the 400, fallback to initialize, fallback to HTTP+SSE; legacy session and resumption. |
Full compatibility matrix with the test servers. |
| 5 | Tools-only proxy | Aggregates tools/list from N servers with prefixing, its own ttlMs, validation of arguments and results. |
Catalogue hashes and change detection; tools/call forwarded with translated ids. |
| 6 | MRTR in the proxy | Passing input_required to the host, echo of requestState, round limit; translation to/from legacy server requests. |
The Inspector's mrtr-showcase scenarios in both directions. |
| 7 | Subscriptions | subscriptions/listen with fan-out, translated subscriptionId, reconnection with backoff; translation to resources/subscribe. |
Notifications reach each host according to its filter; audit of list_changed. |
| 8 | Full authorisation | North side as resource server (PRM, validation, challenges); south side as client (discovery with SSRF mitigations, CIMD, PKCE, resource, iss, step-up, token broker). |
Suite client --suite auth; negative tests (mismatched iss, no PKCE, token for another audience). |
| 9 | Tasks extension | Transparent and materialising; binding of taskId to sub; translation of legacy tasks/result. |
The Inspector's tasks-legacy and tasks-modern configs. |
| 10 | Observability | OTel spans per side with the conventions; traceparent in _meta; governance metrics; append-only audit. |
End-to-end trace visible in an OTel backend. |
| 11 | Conformance and Inspector in CI | Pipeline with the suite in both versions and on both sides, YAML of expected failures, Inspector CLI with --strict and --stored-auth-only. |
Deployment blocked on new failures. |
| 12 | Example interceptor | Validator (policy block) and mutator (PII redaction) with the interface of the SEP-1763 draft, audit mode. | The same interceptor runnable in-process and as a sidecar. |
CHANGELOG of design decisions that deviate from a SHOULD, with the justification.1. Which lab validates the era compatibility matrix over HTTP?
The dual-era HTTP client with fallback to initialize and to HTTP+SSE.