This directory contains conformance test implementations for the TypeScript MCP SDK.
Tests the SDK's client implementation against a conformance test server.
# Run all client tests
pnpm run test:conformance:client:all
# Run specific suite
pnpm run test:conformance:client -- --suite auth
# Run single scenario
pnpm run test:conformance:client -- --scenario auth/basic-cimdTests the SDK's server implementation by running a conformance server.
# Run all active server tests
pnpm run test:conformance:server
# Run all server tests (including pending)
pnpm run test:conformance:server:allLink the local conformance package:
cd ~/code/mcp/typescript-sdk
pnpm link ~/code/mcp/conformanceThen run tests as above.
Start the server manually:
npx tsx src/conformance/everything-server.tsIn another terminal, run specific tests:
npx @modelcontextprotocol/conformance server \
--url http://localhost:3000/mcp \
--scenario server-initializeeverything-client.ts- Client that handles all client conformance scenarioseverything-server.ts- Server that implements all server conformance featureshelpers/- Shared utilities for conformance tests
Scripts are in scripts/ at the repo root.