Skip to content

Test mcpc's MCP extension declarations on every request - #420

Merged
jancurn merged 1 commit into
mainfrom
claude/compassionate-brahmagupta-2fniax
Sep 23, 2026
Merged

jancurn merged 1 commit into
mainfrom
claude/compassionate-brahmagupta-2fniax

Conversation

@jancurn

@jancurn jancurn commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

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 covered buildClientCapabilities(), so this adds an e2e check that the declarations actually reach a server.

  • Both test servers record the client capabilities seen on the latest tools/call (GET /control/get-client-capabilities)
  • basic/extensions asserts the exact declared set in both protocol eras; on 2026-07-28 this also shows the _meta envelope rides regular requests, not just server/discover

Test-only, no user-facing change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EhPWh9m3jHeNxPJKoXCP4y

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
@jancurn
jancurn merged commit 6cdef97 into main Sep 23, 2026
7 checks passed
@jancurn
jancurn deleted the claude/compassionate-brahmagupta-2fniax branch September 23, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants