protocol conformance commands, but inside your own Jest or Vitest suites.
Use it when you want MCP protocol regressions to fail CI directly, or when you need JUnit XML and JSON artifacts from code rather than shell scripts.
Protocol conformance is currently HTTP-only. For local stdio-only servers, use
MCP Apps Conformance,
unit tests, or run your server through an
HTTP bridge in CI.
Import
Single run
Logging on MCP 2026-07-28
Modern servers use per-request_meta log levels. The legacy
logging-set-level check is skipped on this revision.
debug. The
readiness-log-level-filtering advice calls it once more with level
(default warning). You can also pass logProbe directly to
MCPConformanceTest.
Logs on the request without a level fail modern-logs-require-log-level.
A successful supplied tool call that returns no requested logs fails with
“the supplied tool produced no logs.” A missing logProbe or an unsuccessful
probe call reports could-not-run instead. The runner never picks tools to call
on your behalf.
From the CLI, pass --log-probe-tool <name>, plus --log-probe-args <json> and
--log-probe-level <level> when needed. To give the advice its own tool
(logLevelFilteringProbe), pass --log-filter-tool <name>, plus
--log-filter-args <json> and --log-filter-level <level> when needed.
Suite
MCPConformanceSuiteConfig keeps the existing serverUrl + defaults + runs shape:
MCPConformanceConfig
Available categories and check ids
Categories:coreprotocoltoolspromptsresourcessecuritytransport
server-initializepinglogging-set-level(legacy revisions only)modern-logs-require-log-level(2026-07-28 only)completion-completecapabilities-consistenttools-listtools-input-schemas-validtools-x-mcp-header-declarations-valid(2026-07-28 only)prompts-listresources-listprotocol-invalid-method-errorlocalhost-host-rebinding-rejected: requires HTTP 403 when the run explicitly pinsprotocolVersionto2025-11-25or later; accepts any 4xx on earlier pins or when no version is pinnedlocalhost-host-valid-acceptedserver-sse-polling-sessionserver-accepts-multiple-post-streamsserver-sse-streams-functionalnotification-post-accepted(2025 revisions only)get-stream-or-405(2025 revisions only)session-id-visible-ascii(2025 revisions only)post-response-content-type
Result types
MCPConformanceTest.run() returns an MCPConformanceResult:
Each
MCPCheckResult includes a skipReason field whenever status is "skipped":
"not-applicable": the check cannot apply to this server (era-gated check on the wrong protocol version, unadvertised capability, localhost-only requirement against a remote server). These never hold a run back."could-not-run": the check applies but was never exercised (broken session, missinginputRequiredProbe, subscription stream unavailable). These make the runincomplete.
MCPConformanceSuite.run() returns an MCPConformanceSuiteResult:
Outcomes: passed, failed, incomplete
A run reports one of three outcomes, andpassed is true only for the first:
An incomplete run carries a root
incompleteReason naming the checks that did not run and what to change; non-quiet CLI runs also print it to stderr. For a suite, the exit code is the worst of all runs (failure outranks incomplete).
Readiness advice
Every run also collects areadiness channel: advisory observations about server behavior that the spec does not mandate but that indicate potential issues. Readiness items never affect outcome, passed, or exit codes; they are informational only.
Each MCPReadinessWarning has:
The CLI prints readiness items as an
Advice section on stderr after each protocol conformance or conformance-suite run. The section is suppressed by --quiet and does not appear in JSON or JUnit XML output.
Current readiness checks:
readiness-session-termination: on 2025-era runs, fires when a session-terminationDELETEreturns anything other than a 2xx or HTTP 405. On 2026-era runs, fires whenGETorDELETEtraffic from an older client is not answered with HTTP 405 (the 2026 backward-compatSHOULD).readiness-log-level-filtering: 2026-07-28 runs with alogProbeonly. Calls the tool asking for logs atlogProbe.level(defaultwarning). Fires when no logs come back, or when any log comes back below that level or with an unknown level. The spec says a serverMAYsend logs at or above the requested level, so this costs no points.
CI reporting
All three conformance domains share the same report helpers:toConformanceReport(result)renderConformanceReportJUnitXml(report)renderConformanceReportJson(report)
protocol conformance --format junit-xml and protocol conformance-suite --format junit-xml emit the same XML that the SDK helpers produce for the same result.

