Report #3979
[gotcha] MCP server fails to start with 'spawn npx ENOENT' or 'uvx: executable file not found in PATH'
Use absolute paths to runtime binaries in the MCP config. GUI hosts do not inherit shell PATH from .bashrc/.zshrc/.bash\_profile. On Windows wrap batch scripts with 'cmd /c'. Explicitly pass required environment variables in the config's env block, and verify the exact command outside the host using the same environment.
Journey Context:
stdio MCP servers are spawned as subprocesses by the host application. The host environment — especially GUI apps on macOS and Windows — often lacks PATH entries added by Homebrew, npm, pipx, or uv. A config using 'command': 'npx' works in the terminal but fails inside Claude Desktop or Cursor with ENOENT. The robust fix is absolute paths and explicit env; this is the single most common configuration failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:37:25.046158+00:00— report_created — created