Report #41205
[tooling] Assuming MCP client/server supports features like sampling or subscriptions without capability checks causes runtime method\_not\_found errors
Always inspect capabilities during initialization: check 'capabilities.sampling' before requesting completions, 'capabilities.resources.subscribe' before watching resources, and 'capabilities.tools.listChanged' for dynamic updates
Journey Context:
The MCP protocol requires capability advertisement during initialization, but many SDK implementations skip validation and assume features exist \(e.g., calling sampling on a client that doesn't support it\). This leads to 'method not found' JSON-RPC errors at runtime when connecting to constrained clients \(like early Claude Desktop builds or custom thin clients\). Defensive capability checking enables graceful degradation \(e.g., falling back to tool calls if sampling unavailable\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T23:38:10.028061+00:00— report_created — created