You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
After using the official node installation, the mac configuration mcp cannot be used #7870
area:mcpRelates to Model Context Protocol (MCP)ide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:macHappening specifically on Macreleased
After configuring the MCP file, it can be started from the shell, and the service can also be used from a remote URL.
Only the npx method fails to start, and the error message appears:
Failed to connect to "Memory MCP server"
Error: spawn ENAMETOOLONG
I run npx normally in the local command line:
>npx -v
10.9.3
To reproduce
No response
Log output
Opening the VSCode console, I see the following error:
console.ts:137 [Extension Host] Failed to fetch MCP prompt content for write_custom_semgrep_rule from server Semgrep MCP: McpError: MCP error 0: Missing required arguments: {'code', 'language'}
at Client2._onresponse (/Users/666/.vscode/extensions/continue.continue-1.3.11/out/extension.js:259662:26)
at _transport.onmessage (/Users/666/.vscode/extensions/continue.continue-1.3.11/out/extension.js:259542:18)
at StreamableHTTPClientTransport.send (/Users/666/.vscode/extensions/continue.continue-1.3.11/out/extension.js:267370:79)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
I've investigated this issue and found the root cause. When Continue spawns MCP servers, it copies the entire process environment () to the child process. On macOS systems with large environments, this can exceed system limits and cause the error.
Root Cause
The issue is in in the method, which copies all environment variables when spawning MCP server processes.
Failed to connect to "Fetch MCP"
Error: MCP error -32000: Connection closed
Process output:
STDERR:
error: unexpected argument '-y' found
Usage: uvx [OPTIONS] [COMMAND]
For more information, try '--help'.
area:mcpRelates to Model Context Protocol (MCP)ide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:macHappening specifically on Macreleased
Activity
bdougie commentedon Oct 22, 2025
Issue Analysis: ENAMETOOLONG Error on macOS
I've investigated this issue and found the root cause. When Continue spawns MCP servers, it copies the entire process environment () to the child process. On macOS systems with large environments, this can exceed system limits and cause the error.
Root Cause
The issue is in in the method, which copies all environment variables when spawning MCP server processes.
Proposed Solution
Filter environment variables to only include:
This would significantly reduce the environment size passed to child processes.
For Contributors
If you'd like to work on this issue:
This affects multiple users on macOS (#6699 has the same issue), so a fix would be very helpful!
bdougie commentedon Oct 22, 2025
Update: Workaround Available
A user in #6699 found a workaround - use the full path to the command instead of relying on PATH resolution:
To find the full path to npx on your system, run:
which npxThis avoids the PATH environment variable issues that contribute to the ENAMETOOLONG error.
docs: Add MCP ENAMETOOLONG error troubleshooting guide
docs: Add troubleshooting guide for MCP ENAMETOOLONG error on macOS (#…
sestinj commentedon Oct 29, 2025
🎉 This issue has been resolved in version 1.31.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
sestinj commentedon Oct 29, 2025
🎉 This issue has been resolved in version 1.4.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
sestinj commentedon Oct 29, 2025
🎉 This issue has been resolved in version 1.28.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
idoall commentedon Nov 6, 2025
@sestinj
A new error has occurred:
sestinj commentedon Nov 20, 2025
🎉 This issue has been resolved in version 1.6.0 🎉
The release is available on:
Your semantic-release bot 📦🚀