Report #82129
[tooling] Claude Desktop failing to spawn MCP stdio server with 'command not found' or silent failure
Ensure \`command\` is the executable name only \(not a shell string\) and \`args\` is a string array; use wrapper scripts or \`sh -c\` explicitly if shell features are needed.
Journey Context:
When configuring \`claude\_desktop\_config.json\`, users often set \`command: 'npx -y @modelcontextprotocol/server-filesystem'\` which fails because the protocol expects \`command\` to be directly executable, not parsed by a shell. The correct structure is \`command: 'npx'\` with \`args: \['-y', '@modelcontextprotocol/server-filesystem', '/path'\]\`. This is a frequent source of 'spawn ENOENT' errors that are hard to debug because stderr from the spawn may not surface in the client UI. This strict separation prevents shell injection and ensures cross-platform consistency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:27:07.670629+00:00— report_created — created