MCP proxy fails with "No available ports found" error on macOS
Resolved 💬 3 comments Opened Oct 28, 2025 by vipinkailas Closed Jan 12, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Details:
- OS: macOS (Darwin 25.0.0)
- Node.js: v24.10.0
- Claude Code: 0.0.117 (latest)
- Error: MCP proxy cannot find available ports despite minimal port usage
- Commands affected: claude mcp list, claude doctor, any MCP-related
commands
Error message:
Error: No available ports found after 50 random attempts and sequential
fallback
at getAvailablePort (file:///opt/homebrew/lib/node_modules/@apple/claude-c
ode/packages/proxy/dist/server.bundle.js:32306:9)
What Should Happen?
Claude should list available MCPs
Error Messages/Logs
Steps to Reproduce
Run Claude mcp list from terminal
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.20
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗