Developer Troubleshooting EngineInstant OS Fixes

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.

Scan Config in Linter
Category:
Configuration SyntaxHigh
Raw .md

JSON-RPC error -32700: Parse error / Invalid Windows backslashes

Symptom

Config file fails to load or server crashes on startup with 'SyntaxError: Bad escaped character in JSON'.

Root Cause

Single backslashes used in Windows file paths (e.g. 'C:\Projects') violate JSON string escape rules.

Remediation & Quick Fix

Replace single backslashes with forward slashes (e.g. 'C:/Projects') or double-escaped backslashes ('C:\\Projects').

OS Diagnostic Commands:
mac
# Not applicable to macOS
windows
# Format Windows paths with forward slashes in JSON:
"args": ["C:/Projects/my-app"]
linux
# Not applicable to Linux
Verified Configuration Example:
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "C:/Projects/workspace"]
    }
  }
}
Diagnostic Guide

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.