feat: add client capability schema #902
Open
+511
−0
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
Adds a JSON Schema for MCP client capabilities, providing a formal structure for documenting what features each client supports.
Closes #718
Acknowledgments
This schema builds on the work done by @jancurn in mcp-client-capabilities, which established the core capability structure and has catalogued 40+ clients. This PR extends that foundation with additional fields for transports, platforms, authentication, and metadata.
Changes
docs/schemas/client-registry.json- JSON Schema definitionWhat's Included
This PR focuses solely on the schema definition. Intentionally not included:
Schema Overview
The schema tracks BOTH what clients declare to servers (sampling, elicitation, roots) AND which server capabilities clients can consume (tools, resources, prompts). This is intentionally broader than the MCP spec's
ClientCapabilitiesinterface.Minimal entry:
{ "my-client": { "title": "My Client", "url": "https://example.com", "protocolVersion": "2025-11-25" } }Full entry:
{ "my-advanced-client": { "title": "My Advanced Client", "url": "https://example.com", "protocolVersion": "2025-11-25", "category": "cli", "platforms": ["windows", "macos", "linux"], "transports": { "stdio": {}, "streamableHttp": {} }, "authentication": { "oauth": { "pkce": true, "dynamicRegistration": true, "clientIdMetadataDocument": true, "grantTypes": ["authorization_code", "refresh_token"] }, "header": {} }, "tools": { "listChanged": true }, "resources": { "listChanged": true, "subscribe": true }, "prompts": { "listChanged": true }, "sampling": { "context": {}, "tools": {} }, "elicitation": { "form": {}, "url": {} }, "roots": { "listChanged": true }, "completions": {}, "logging": {}, "tasks": { "list": {}, "cancel": {}, "requests": { "sampling": { "createMessage": {} } } }, "metadata": { "vendor": "Some Vendor", "openSource": true, "lastVerified": "2026-01-17" } } }Features
{}(supported), or{ "status": "full|partial|unsupported|untested", "notes": "..." }Related
🦉 Generated with Claude Code and reviewed by me