Describe the Bug
I have added two MCP servers via the npx commands, but both fail to find the tools. In the cursor window “No tools found” appears and from the logs I get the following error:
user-openapi: Client error for command A system error occurred (spawn npx ENOENT)
I saw this error for some users on windows, but not on Mac earlier, and could not find a way to workaround this.
My first assumption was a failure in my node or npx installation but via the terminal both npx and node are working as expected. Also when running the commands above manually no errors are being thrown.
Steps to Reproduce
- Add the following in the mcp.json file:
"openapi": {
"command": "npx",
"args": [
"-y",
"@ivotoby/openapi-mcp-server",
"--headers", "Authorization:Bearer token123",
"--transport", "http",
"--port", "3000"
]
},
"ios-simulator": {
"command": "npx",
"args": ["-y", "ios-simulator-mcp"]
}
- Restart cursor
3.Tools are not found and in the output window the error message spawn npx ENOENT is shown
Expected Behavior
The MCP servers should load the tools correctly
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.2.4
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Does this stop you from using Cursor
No - Cursor works, but with this issue