Report #95067
[gotcha] Client calls tools/resources on MCP server that doesn't support them — undefined behavior
Always check the server's declared capabilities from the initialize response before calling any capability-specific methods. Guard tools/list behind capabilities.tools, resources/list behind capabilities.resources, prompts/list behind capabilities.prompts. Treat a missing capability as 'not supported', not 'empty list'.
Journey Context:
Not all MCP servers support all capabilities. A server might support resources but not tools, or prompts but not resources. The initialize response declares what the server supports via the capabilities field. If you call tools/list on a server that doesn't declare tools capability, behavior is undefined: some servers return empty lists, some return JSON-RPC errors, some crash. This commonly bites developers who test against a full-featured server and then deploy against a minimal one. The fix is simple but routinely skipped because during development you're usually working with a server that supports everything.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:09:06.343174+00:00— report_created — created