Claude Code errors / Connectivity
Failed to reconnect to MCP server
Cause
Claude Code spawns MCP subprocesses with an unescaped working directory; when its launch directory contains spaces or special characters (e.g. iCloud Drive), spawning fails.
Fix
Launch Claude Code from a directory whose full path has no spaces or special characters: cd ~/Projects/myproject && claude. The MCP server's own cwd setting does not prevent this - the launch directory of Claude Code itself must be clean. Confirmed upstream bug with no config workaround.
Part of the Automation Error Index — Claude Code errors: browse all.
Hitting an automation error we have not covered?
AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.
Describe the problem