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.
modelcontextprotocol/conformance is the official suite that checks whether clients and servers follow the specification. It captures the interactions, runs checks over them and, in addition, validates every message on the wire against the schema.json of the negotiated version. Since SEP-2484 it is also the condition for a SEP to become Final, and since SEP-1730 it defines the SDK tiers.
The suite acts as a client and sends test requests:
npx @modelcontextprotocol/conformance server --url http://localhost:3000/mcp # all active scenarios
npx @modelcontextprotocol/conformance server --url http://localhost:3000/mcp --scenario server-initialize
npx @modelcontextprotocol/conformance list
Scenarios: server-initialize, tools-list, tools-call-*, resources-*, prompts-*. Suites: active (default), all, draft, pending.
The suite starts a test server per scenario and runs your client, appending the URL to the command:
npx @modelcontextprotocol/conformance client --command "tsx my-client.ts" --scenario initialize
npx @modelcontextprotocol/conformance client --command "tsx my-client.ts" --suite auth
Scenarios: initialize, tools-call, auth/* (dynamic registration, authorization metadata, etc.). Suites: all, core, extensions, backcompat, auth, metadata, draft, sep-835. Options: --spec-version, --timeout (30 s by default), --expected-failures, --verbose.
Dated revisions up to 2025-11-25 use the stateful handshake; 2026-07-28 (and the draft alias) the stateless lifecycle with _meta. --spec-version filters by applicability; --requirements <revision> runs exactly what that revision requires.
Client: results/<scenario>-<timestamp>/ with checks.json, stdout.txt, stderr.txt. Server: results/server-<scenario>-<timestamp>/checks.json. Schema checks on the messages on the wire: wire-schema-valid (your implementation sent something non-conformant) and wire-schema-harness-error (the suite sent it: a bug in the suite). The tier-check separates required scenarios from "unscored" ones.
A reference YAML lists known failures per scenario or per check (<scenario>:<check-id>). Listed ones exit with 0; new failures with 1; and listed checks that now pass also with 1, to force stale entries to be cleaned up.
GitHub Action modelcontextprotocol/conformance@v0.1.11; sdk subcommand (clones and builds an official SDK at a ref and tests it); tier-check subcommand (evaluates an SDK against SEP-1730).
server against the gateway's north-facing side in both versions (--spec-version 2025-11-25 and 2026-07-28) and client with the south-facing side as the command, also in both. That is your definition of "conformant".1. What does the suite validate in addition to the scenarios?
The wire-schema-valid checks.
2. If a check listed in the expected-failures YAML now passes, the exit code is…
To force stale entries to be removed.
3. How does the suite run a client?
The client --command mode.