Unhandled MCP Connection Closed Error in Claude Code CLI

Resolved 💬 4 comments Opened Jul 6, 2025 by danielcor Closed Jan 5, 2026

Bug Description
node:internal/process/promises:288
triggerUncaughtException(err, true / fromPromise /);
^

XF [McpError]: MCP error -32000: Connection closed
at an1._onclose (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1338:14912)
at _transport.onclose (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1338:14231)
at W.C.client.transport.onclose (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1961:7634)
at l9.onCloseHandler (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1350:8286)
at l9.emit (node:events:517:28)
at l9.emit (node:domain:489:12)
at l9.emitClose (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:71:69553)
at Socket.sqA (file:///home/danie/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:71:80025)
at Socket.emit (node:events:517:28)
at Socket.emit (node:domain:489:12) {
code: -32000,
data: undefined
}

Node.js v18.19.0

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.43
  • Feedback ID: cc8727df-4153-44d3-9dbb-414f413ab76c

Errors

[]

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗