[Bug] VS Code extension startup hangs when MCP servers lack OAuth tokens
Resolved 💬 3 comments Opened Apr 13, 2026 by PrimumJonathanHartley Closed Jun 25, 2026
Bug Description
VS Code extension 2.1.101 startup hangs for 30s then times out. Root cause: two managed MCP servers (Gmail, Google Calendar) fetched from api.anthropic.com/v1/mcp_servers have no OAuth tokens. They were disconnected on claude.ai but API still returns them. The CLI (2.1.5) handles this gracefully and works fine. The extension's startup() handshake never completes even though MCP servers are skipped via needs-auth cache. This blocks all use of the extension.
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.1.104
- Feedback ID: 890b74f5-0b67-46e0-81e6-10375fe95cd0
Errors
[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:484:14)\n at Socket.emit (node:events:508:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2026-04-13T14:36:47.984Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗