Skip to content

Commit b4ecff3

Browse files
bdougieContinue
andauthored
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]>
1 parent aff2f31 commit b4ecff3

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

docs/troubleshooting.mdx

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ description: "Comprehensive guide to resolving common issues with Continue, incl
77
2. [Try the latest pre-release](#download-the-latest-pre-release)
88
3. [Download an older version](#download-an-older-version)
99
4. [Resolve keyboard shortcut issues](#keyboard-shortcuts-not-resolving)
10-
5. [Check FAQs for common issues](/faqs)
10+
5. [MCP Server connection issues](#mcp-server-connection-issues)
11+
6. [Check FAQs for common issues](/faqs)
1112

1213
## Check the logs
1314

@@ -79,6 +80,30 @@ If your keyboard shortcuts are not resolving, you may have other commands that a
7980
- [VSCode keyboard shortcuts docs](https://code.visualstudio.com/docs/getstarted/keybindings)
8081
- [IntelliJ keyboard shortcut docs](https://www.jetbrains.com/help/idea/configuring-keyboard-and-mouse-shortcuts.html)
8182

83+
## MCP Server connection issues
84+
85+
### "spawn ENAMETOOLONG" error on macOS
86+
87+
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).
106+
82107

83108
## Still having trouble?
84109

0 commit comments

Comments
 (0)