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
docs: Add troubleshooting guide for MCP ENAMETOOLONG error on macOS (#8389)
docs: Add MCP ENAMETOOLONG error troubleshooting guide
- Add troubleshooting section for 'spawn ENAMETOOLONG' error on macOS
- Include workaround using full command paths instead of PATH resolution
- Reference related GitHub issues #7870 and #6699
- Update table of contents to include new section
Generated with Continue (https://continue.dev)
Co-authored-by: Continue <[email protected]>
If you're seeing an error like `Failed to connect to "<MCP Server Name>"` with `Error: spawn ENAMETOOLONG` when using MCP servers on macOS, this is due to the environment being too large when spawning the MCP process.
88
+
89
+
**Workaround:** Use the full path to the command instead of relying on PATH resolution:
90
+
91
+
```yaml
92
+
mcpServers:
93
+
- name: Memory MCP server
94
+
command: /usr/local/bin/npx # Use full path instead of just "npx"
95
+
args:
96
+
- -y
97
+
- "@modelcontextprotocol/server-memory"
98
+
```
99
+
100
+
To find the full path to a command on your system:
101
+
- For `npx`: run `which npx`
102
+
- For `docker`: run `which docker`
103
+
- For `uv`/`uvx`: run `which uv` or `which uvx`
104
+
105
+
This issue typically affects macOS users with large development environments and is being tracked in [#7870](https://github.com/continuedev/continue/issues/7870) and [#6699](https://github.com/continuedev/continue/issues/6699).
0 commit comments