Add MCP conformance testing framework integration#196
Merged
Conversation
Introduce `npm run test:conformance`, which drives the `@modelcontextprotocol/conformance` framework against mcpc to validate adherence to the MCP specification. Scenarios are mapped to mcpc CLI commands by a small Node adapter at `test/conformance/client.mjs` (currently covering `initialize`; more scenarios can be added over time). Also add a separate `Conformance` GitHub Actions workflow that runs the suite on demand (`workflow_dispatch`) and uploads the framework's `results/` directory as a build artifact.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds integration with the
@modelcontextprotocol/conformanceframework to verify that mcpc adheres to the MCP specification. It includes a conformance test adapter, GitHub Actions workflow, and npm scripts to run conformance tests.Key Changes
New conformance adapter (
test/conformance/client.mjs): A Node.js script that translates MCP conformance scenarios into mcpc CLI commands. Currently supports theinitializeandtools-callscenarios, with a framework for adding more as coverage grows.GitHub Actions workflow (
.github/workflows/conformance.yml): An on-demand workflow that runs the conformance suite against mcpc. Includes options to specify individual scenarios and enable verbose output. Results are uploaded as artifacts.npm script (
test:conformance): Convenience script to run conformance tests locally vianpm run test:conformance.Build configuration updates: Added
results/directory to.gitignore(where conformance test output is written) and updatedCHANGELOG.mdto document the new feature.Implementation Details
expected-failures.ymluntil coverage expands)workflow_dispatchto keep it out of the default CI pipeline while the conformance framework is still evolvinghttps://claude.ai/code/session_01T9e2qmMdhHMVQLVcpxyN2E