Diagnose proxy misconfigurations that break AI coding tools (Cursor, VS Code, Windsurf)
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Diagnose proxy misconfigurations that break AI coding tools.
When your browser works fine but Cursor / VS Code / Windsurf AI features don't โ proxy-doctor tells you exactly why and how to fix it.
AI coding tools (Cursor, VS Code with Copilot, Windsurf) rely on long-lived streaming connections (SSE/HTTP2) that break when:
launchctlThe result: "browser works, AI editor doesn't" โ the most common and frustrating developer experience.
proxy-doctor inspects 5 layers of your macOS proxy configuration:
| Layer | What | How |
|---|---|---|
| 1. System Proxy | Web/HTTPS/SOCKS proxy across all network services | networksetup |
| 2. Residual Values | Disabled proxies with stale localhost addresses | Parse disabled-but-set entries |
| 3. Port Health | Whether referenced proxy ports are actually listening | socket.connect() |
| 4. Editor Config | settings.json, argv.json, recent error logs | File read + pattern match |
| 5. GUI Environment | http_proxy/https_proxy in GUI app context | launchctl getenv |
proxy-doctor ships as an MCP server that AI agents can call directly:
Add to your MCP configuration (e.g., Cursor ~/.cursor/mcp.json):
Note:
"command"must point to the Python whereproxy-doctor[mcp]is installed. Ifpython3doesn't work, use the full path (runwhich python3orpython3 -c "import sys; print(sys.executable)"to find it).
Your AI agent can then call:
diagnose_proxy(editor="cursor") โ full 5-layer diagnosis with evidencelist_fixes(editor="cursor") โ recommended fixes with executable commandssupported_editors() โ list available editorsOne-liner (paste this to your AI agent):
Install proxy-doctor (
pip install proxy-doctor[mcp]) and add it to your MCP config with commandpython -m proxy_doctor.mcp_server. Then use thediagnose_proxytool to check proxy health.
If you are an AI agent setting up proxy-doctor for your user:
Run proxy-doctor as a persistent background service with automatic health monitoring:
The daemon runs every 5 minutes, compares results with the previous check, and sends a macOS notification when status changes (e.g. healthy โ unhealthy).
Shows a green/red/orange indicator in your menu bar with one-click diagnosis.
| Editor | Config Detection | Log Scanning | Status |
|---|---|---|---|
| Cursor | yes | yes | supported |
| VS Code | yes | yes | supported |
| Windsurf | yes | yes | supported |
| Claude Desktop | planned | โ | future |
| Zed | planned | planned | future |
proxy-doctor identifies three failure patterns:
Case A โ Dead proxy port (high confidence): Your system or editor points to 127.0.0.1:port but nothing is listening. This happens when a VPN/proxy app is closed but its settings remain.
Case B โ Streaming broken (medium confidence): A proxy is running, but it buffers SSE/streaming connections that AI editors depend on. Common with browser-only proxy modes.
Case C โ Path mismatch (medium confidence): Browser and editor use different proxy paths. Browser works via a dedicated proxy route; editor inherits a stale or incompatible one.
proxy-doctor follows a read-only by default design. No system changes are made unless you explicitly opt in.
| Access | What | Why |
|---|---|---|
| Reads | System proxy settings, editor config files, launchctl env vars, local port status | Core diagnostic functionality |
| Writes | ~/.proxy-doctor/ only (cache, logs, update state) | Daemon state persistence |
| Network | pypi.org (version check only) | Auto-update feature |
| Does NOT | Modify proxy settings, change editor config, send telemetry, access credentials | By design |
proxy-doctor fix shows the recommended commands but does not execute them.
To apply fixes, use proxy-doctor fix --apply:
[y/N])yThis two-step model lets AI agents safely call list_fixes() via MCP to see what needs fixing, then present the commands to users for approval.
Found a bug? Have a suggestion? Diagnosis didn't help?
feedback.report_issue URL โ include the full JSON when filing issues.For AI agents providing feedback programmatically (zero dependencies):
If proxy-doctor helped you fix a proxy issue, consider giving it a star on GitHub โ it helps others discover the tool.
MIT
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/proxy-doctor)<a href="https://allmcps.com/mcp/proxy-doctor"><img src="https://allmcps.com/api/badge/proxy-doctor?style=directory" alt="Proxy Doctor on AllMCPs" /></a>