Skip to content

Conversation

@bdougie
Copy link
Collaborator

@bdougie bdougie commented Oct 22, 2025

Summary

This PR adds documentation to help users work around the 'spawn ENAMETOOLONG' error that occurs when connecting to MCP servers on macOS.

Problem

When Continue spawns MCP server processes on macOS, it copies the entire process environment which can exceed system limits, causing an ENAMETOOLONG error. This particularly affects users with large development environments.

Solution

Document the workaround of using full command paths (e.g., /usr/local/bin/npx) instead of relying on PATH resolution.

Changes

  • Added new troubleshooting section for MCP server connection issues
  • Documented the ENAMETOOLONG error and its workaround
  • Updated table of contents
  • Referenced related issues for tracking

Related Issues

Testing

  • Documentation builds correctly
  • Links to issues work properly
  • Code examples are properly formatted

Notes

While this PR provides immediate help through documentation, a proper code fix is still needed to filter environment variables when spawning MCP processes. See the discussion in #7870 for implementation details.


Summary by cubic

Adds a troubleshooting guide for MCP server connection issues on macOS, documenting the "spawn ENAMETOOLONG" error caused by large environments when spawning MCP processes. Explains the workaround to use full command paths (e.g., /usr/local/bin/npx) instead of PATH, and links to related issues (#7870, #6699).

- 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]>
@bdougie bdougie marked this pull request as ready for review October 22, 2025 18:39
@bdougie bdougie requested a review from a team as a code owner October 22, 2025 18:39
@bdougie bdougie requested review from Patrick-Erichsen and removed request for a team October 22, 2025 18:39
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Oct 22, 2025
@github-actions
Copy link

github-actions bot commented Oct 22, 2025

✅ Review Complete

Code Review Summary

⚠️ Continue API authentication failed. Please check your CONTINUE_API_KEY.


Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Oct 23, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 23, 2025
@bdougie bdougie merged commit b4ecff3 into main Oct 23, 2025
67 of 68 checks passed
@bdougie bdougie deleted the docs/mcp-enametoolong-troubleshooting branch October 23, 2025 22:25
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Oct 23, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

After using the official node installation, the mac configuration mcp cannot be used MCP Error: spawn ENAMETOOLONG"

3 participants