Test mcpc's MCP extension declarations on every request - #420
Merged
Merged
Conversation
The client matrix (modelcontextprotocol.io/extensions/client-matrix) has
clients declare extension support in the `extensions` field of the client
capabilities sent in every request's `_meta`. Unit tests covered what
buildClientCapabilities() returns, but nothing checked the wire.
Both e2e test servers now record the client capabilities in effect for the
latest tools/call (GET /control/get-client-capabilities), and
basic/extensions asserts, in both protocol eras, that mcpc declares exactly
the two auth extensions with `{}` settings, and not MCP Apps, skills
(server-declared only) or tasks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EhPWh9m3jHeNxPJKoXCP4y
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.
Checked mcpc against the extension client matrix: it already declares the right extensions (the two auth extensions as
{}; not skills, which only servers declare, and not MCP Apps or tasks). Until now only unit tests coveredbuildClientCapabilities(), so this adds an e2e check that the declarations actually reach a server.tools/call(GET /control/get-client-capabilities)basic/extensionsasserts the exact declared set in both protocol eras; on 2026-07-28 this also shows the_metaenvelope rides regular requests, not justserver/discoverTest-only, no user-facing change.
🤖 Generated with Claude Code
https://claude.ai/code/session_01EhPWh9m3jHeNxPJKoXCP4y