-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Describe the bug
When tying to add an mcp that uses nvx, and the nvx is accessible through .nvm, the path will not be recognozed
# where npx
~/.nvm/versions/node/v22.14.0/bin/npxVersions
- Copilot for Xcode: 0.34.117
- Xcode: 16.0
- macOS: 15.4.1
Steps to reproduce
-
Have your
npxcommand accessible through node version manager -
Import an nvx server such as brave-search
{ "servers": { "brave-search": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-brave-search"], "env": { "BRAVE_API_KEY": "API_KEY" } } } } -
Save and reload
Screenshots
Logs
...
[2025-05-13T11:43:47.158Z] [info] [GitHubCopilot] [70572] window/logMessage: {
"message" : "[CopilotMCP] Error initializing MCP server brave-search: Error: spawn npx ENOENT\n at Process.ChildProcess._handle.onexit (node:internal\/child_process:285:19)\n at onErrorNT (node:internal\/child_process:483:16)\n at processTicksAndRejections (node:internal\/process\/task_queues:82:21) {\n errno: -2,\n code: 'ENOENT',\n syscall: 'spawn npx',\n path: 'npx',\n spawnargs: [ '-y', '@modelcontextprotocol\/server-brave-search' ]\n}",
"type" : 1
}
...
Additional context
- Issue doesn't occur for
uvxservers such as fetch
# where uvx
/opt/homebrew/bin/uvxMetadata
Metadata
Assignees
Labels
No labels