MCP Error Decoder
Search exact error strings and stack traces from Claude Desktop, Cursor, and OpenAI Codex CLI. Inspect root causes and copy verified terminal fixes.
Tool call timed out after 60000ms
Long-running database queries, video processing, or web scraping tool calls abort with a timeout error.
Default client timeouts limit tool execution duration to 60 seconds before concluding the stdio process is unresponsive.
Split heavy queries into paginated chunks or implement asynchronous polling jobs where the tool returns a job ID immediately.
# Check query plan latency before running in MCP:
psql $DATABASE_URL -c "EXPLAIN ANALYZE SELECT ...;"# Check query plan latency:
psql.exe $env:DATABASE_URL -c "EXPLAIN ANALYZE SELECT ...;"# Check query plan latency:
psql $DATABASE_URL -c "EXPLAIN ANALYZE SELECT ...;"// In your MCP server tool handler:
// Return job token immediately rather than hanging for 120 seconds
return {
content: [{ type: "text", text: "Job submitted with ID: task_9821. Call check_status to poll." }]
};Architecture of Model Context Protocol Failures
MCP server issues typically stem from process isolation mismatches, stdio stream contamination, or environment inheritance limitations. Because the host AI application communicates across child-process stdio pipes or Server-Sent Events (SSE) connections, traditional browser debugging tools cannot directly capture errors.
Stdio vs. Stderr Separation
The primary rule of local MCP servers is that STDOUT belongs exclusively to the JSON-RPC wire protocol. If a server library outputs diagnostic logs, banner messages, or package notices to STDOUT, the host JSON parser crashes with an unrecoverable framing error. All server logging must route to STDERR.
GUI Subprocess Environment Isolation
Desktop GUI hosts (such as Claude Desktop or Cursor) are launched by the desktop window manager, not your shell profile (.bashrc or .zshrc). They inherit a minimal system PATH. Tools installed via nvm, pyenv, or Homebrew often require absolute binary paths in the configuration.