mcpField
P
Protocol Conformance

Protocol Conformance

Local
github.comDeveloper Tools0Updated 1w ago

About Protocol Conformance

Protocol Conformance is a CLI, TypeScript library, and MCP server for developers validating MCP server implementations. It tests protocol behavior across specified MCP revisions and can compare manifests and reports for breaking changes.

Key features

  1. 01JSON-RPC and version checks
  2. 02stdio and HTTP transport tests
  3. 03OAuth 2.1 PKCE validation
  4. 04Tool schemas and capability checks
  5. 05Smoke tests and annotation audits
  6. 06Manifest and report comparisons

Use cases

  1. 01Validate a server before release
  2. 02Run conformance checks in CI
  3. 03Compare tool manifests across versions
  4. 04Detect breaking changes between reports

MCP support

It is itself an MCP server exposing 12 read-only tools for running conformance suites, generating reports, comparing manifests, and checking for breaking changes. It also tests other MCP servers over stdio or HTTP.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"protocol-conformance": {
"command": "npx",
"args": [
"-y",
"mcp-protocol-conformance"
]
}
}
}
Run commandnpx -y mcp-protocol-conformance

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmmcp-protocol-conformance0.2.1

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Part of the StudioMeyer MCP Stack — Built in Mallorca 🌴 · ⭐ if you use it

mcp-protocol-conformance

npm version npm downloads License Last commit GitHub stars

Conformance test harness for Model Context Protocol servers. Validates JSON-RPC 2.0 wire compliance, spec-version handshake, transport behaviour, OAuth 2.1 PKCE, tool schemas, capability advertisement, smoke roundtrip, and annotation hygiene against MCP spec 2024-11-05, 2025-03-26, 2025-06-18, and the current **stable** revision **2025-11-25** (experimental `tasks`, structured tool output, JSON Schema 2020-12 default, tool `title`/`icons`).

This is a Foundation build of the StudioMeyer MCP Factory: every other Factory build runs through this harness before promotion (npm publish, marketplace submit, upstream PR).

A note from us

We have been building tools and systems for ourselves for the past two years. The fact that this repo is small and has few stars is not because it is new. It is because we only just decided to share what we have built. It is not a fresh experiment, it is a long story with a recent commit.

We love building things and sharing them. We do not love social media tactics, growth hacks, or chasing stars and followers. So this repo is small. The code is real, it gets used, issues get answered. Judge for yourself.

If it helps you, sharing, testing, and feedback help us. If it could be better, an issue is more useful. If you build something with it, tell us at [email protected]. That genuinely makes our day.

From a small studio in Palma de Mallorca.

Install

npm install --save-dev mcp-protocol-conformance

The package ships both a CLI (mcp-conformance) and a TypeScript library entry (import ... from "mcp-protocol-conformance").

CLI usage

Run against a stdio server
mcp-conformance run \
  --target stdio \
  --cmd node \
  --cmd-arg dist/server.js \
  --spec 2025-06-18 \
  --suite all \
  --format terminal
Run against an HTTP server (Streamable HTTP, 2025-03-26+)
mcp-conformance run \
  --target http \
  --url https://memory.studiomeyer.io/mcp \
  --header "Authorization:Bearer ${TOKEN}" \
  --spec 2025-06-18 \
  --suite full \
  --format json --out report.json
Run only a subset of suites
mcp-conformance run --target stdio --cmd ./server --spec 2025-06-18 \
  --suite jsonrpc,version,schema
Compare two manifests
mcp-conformance compare \
  --expected manifests/v1.json \
  --actual   manifests/v2.json
Assert no breaking changes between two reports
mcp-conformance assert-no-breaking \
  --baseline reports/main.json \
  --current  reports/pr-42.json

Exit codes: 0 clean, 1 failures, 2 invocation error.

Library usage

import {
  runFullSuite,
  generateReport,
} from "mcp-protocol-conformance";

const report = await runFullSuite(
  { kind: "stdio", cmd: "node", args: ["dist/server.js"] },
  "2025-06-18",
  { suite: "all" },
);

console.log(generateReport(report, "terminal"));
if (report.status === "fail") process.exit(1);

MCP server usage

The harness is itself an MCP server. Start it over stdio and any MCP client can call its 12 tools:

node dist/server.js

Tools (all read-only, all destructiveHint: false):

#ToolPurpose
1runJsonRpcComplianceJSON-RPC 2.0 error-code matrix + response-envelope (result/error mutual exclusivity)
2runSpecVersionAssertionVerify advertised protocolVersion
3runTransportSuiteTransport-layer ping + session-id
4runOauthPkceFlowOAuth 2.1 PKCE S256 (mock-AS or real-tenant)
5runToolSchemaValidationinputSchema (+ 2025-11-25 outputSchema / title) is valid JSON-Schema
6runCapabilityIntrospectioninitialize.capabilities matches behaviour (+ 2025-11-25 tasks)
7runRoundtripSmokeOne tools/call per advertised tool
8runAnnotationsAuditreadOnlyHint / destructiveHint hygiene
9runFullSuiteAll suites + summary
10generateReportRender JUnit / JSON / terminal
11compareManifestsDiff two tool manifests
12assertNoBreakingChangesDiff two FullReports

Compatibility matrix

2024-11-052025-03-262025-06-182025-11-25
jsonrpcyesyesyesyes
version (handshake)yesyesyesyes
transport (stdio)yesyesyesyes
transport (http)n/ayesyesyes
oauth (mock)n/ayesyesyes
oauth (real)n/ayesyesyes
schemayesyesyesyes
capabilityyesyesyesyes
smokeyesyesyesyes
annotationswarn-onlywarn-onlyyesyes
tasks (capability)n/an/an/ayes
tool title/outputn/an/an/awarn-only

yes = suite runs and produces actionable results. n/a = capability not in spec; suite skips automatically. warn-only = suite runs but the spec does not formally require the feature.

The 2026-07-28 RC (stateless core, SEP-2575/2567) is intentionally not here — it ships final on 2026-07-28; conformance for it lands in a later release against the final SDK.

Integration in Factory builds

In every Factory build's package.json:

{
  "scripts": {
    "factory:conformance": "mcp-conformance run --target stdio --cmd 'node dist/server.js' --spec 2025-06-18 --suite full"
  }
}

In CI:

- run: npm run factory:conformance

Spec references

About StudioMeyer

StudioMeyer is an AI and design studio based in Palma de Mallorca, working with clients worldwide. We build custom websites and AI infrastructure for small and medium businesses. Production stack on Claude Agent SDK, MCP and n8n, with Sentry, Langfuse and LangGraph for observability and an in-house guard layer.

License

MIT — Copyright (c) 2026 Matthias Meyer (StudioMeyer)

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.