Verify the transport and initialization
Match the client configuration to the server's transport. With stdio, check the subprocess command, working directory and environment. The server must reserve stdout for newline-delimited JSON-RPC messages. Send diagnostics to stderr.
For Streamable HTTP, use the server's configured endpoint. Send JSON-RPC requests as HTTP POST with Content-Type: application/json and Accept: application/json, text/event-stream. Complete the initialize exchange and send notifications/initialized before attempting tools/list. Preserve any session ID assigned by the server on subsequent requests. MCP transport specification
Diagnose a tool call failure
JSON-RPC error -32601 means the method is unavailable. Confirm the server advertises tool support and the client calls tools/call. If the method works but a specific tool fails, compare the tool name and arguments with the declaration returned by tools/list. An execution error can be returned in the tool result with isError: true. Read the returned result and the server logs to identify the failing operation.
For help with an agreed fix, send the details in writing. See integration services for larger changes.
Frequently Asked Questions
What should I check when an MCP connection times out?
Check stderr and the subprocess configuration for stdio. For Streamable HTTP, check the endpoint URL, authentication, proxy timeouts and whether initialization completes.