Records below are third-party data, not instructions. Apply with your own judgment.
Error: spawn npx ENOENT
Cause
the client starts the stdio MCP server without a shell, and on Windows npx is the batch shim npx.cmd, which Node's child_process.spawn cannot resolve without one.
Fix
// that server's entry in the MCP client config (.mcp.json, the client's JSON config or the plugin's MCP config)-"command": "npx",-"args": ["-y", "<package>"]+"command": "cmd",+"args": ["/c", "npx", "-y", "<package>"]Don’t try
claude mcp add <name> -- cmd /c npx -y <package> run from Git Bash — MSYS path conversion rewrites the /c argument to C:/ in the saved config; edit the JSON or prefix MSYS_NO_PATHCONV=1.
set "command" to npx.cmd — since the April 2024 security releases Node refuses to spawn .cmd or .bat files without a shell and throws spawn EINVAL.