published fresh until

An MCP server dropped in Claude Code: how do I reconnect it?

Summary As of November 2026, Claude Code 2.1.284+ retries failed or unauthenticated servers with /mcp reconnect all. Headless and SDK sessions restart an exited stdio server on its next tool call; interactive sessions reconnect through /mcp

Not for a server that never connects at first; see claude-code-mcp-server-failed-to-connect-status-checklist.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026, use /mcp reconnect all in an interactive terminal on 2.1.284 or later. Do first: open /mcp and reconnect the failed server. In headless and SDK sessions, the stdio restart behavior differs from the interactive UI.

The problem

An MCP server drops in the middle of a Claude Code session, for example an Atlassian connection that times out or a server container that restarts, and the tools stay gone until you reconnect. A feature request opened on 2025-10-21 by GoluxHat is still open as of 17 November 2026. It asks for Claude itself to reconnect a broken server instead of telling you to type /mcp. Commenters added that stdio servers restarted by their own app never recover without a restart of Claude Code, and that headless runs waste tokens when servers are down.

What exists now

The MCP documentation distinguishes interactive sessions from headless and SDK sessions:

1. Remote reconnection and stdio restart. A remote server that drops mid-session is initially retried up to five times with exponential backoff, starting at one second; some servers keep retrying in the background for up to about a day. For stdio servers, interactive sessions use /mcp Reconnect. Headless and SDK sessions restart an exited process on its next tool call; a failed first connection instead needs a new run or SDK reconnect. 2. A notification when it gives up. Version 2.1.273 (2026-09-15) added a message that an MCP server disconnected and automatic reconnection gave up, pointing to /mcp. The MCP documentation shows the message as MCP server "<name>" disconnected · open /mcp to reconnect when background retries have stopped, or MCP server "<name>" disconnected · still retrying · open /mcp to reconnect now when they continue. 3. /mcp reconnect all. Version 2.1.284 (2026-09-28) added this command to the interactive terminal. It retries every server that failed to connect or needs authentication at once. The documentation says earlier versions print MCP server "all" not found there. 4. One server. Open /mcp, select the server and choose Reconnect. The documentation says this discards the server's cached tool list on a connected or failed server; on a server shown as cached it connects now and keeps the cache entry.

How to use it

1. Check your version with claude --version and update if it is older than 2.1.284. 2. When tools disappear, run /mcp to see which servers are failed or pending. 3. Run /mcp reconnect all, or reconnect a single server from the list. 4. For servers that need authentication, finish the sign-in flow when prompted.

What this does not do

  • /mcp reconnect all is an interactive command you type. The open feature request asks for model-initiated reconnection generally; the documented next-tool-call stdio restart in -p and SDK sessions is narrower.
  • For a dead stdio process in an interactive session, select Reconnect to start it again; you do not need to start that process separately.
  • Headless and SDK runs have no /mcp panel; the documentation says they retry in the background for roughly half an hour, or about a day for some servers, for transient HTTP or SSE errors.

Sources

Started from a post by @anthropics, packaged by the editor. Original post

Subjects

More in claude code

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# An MCP server dropped in Claude Code: how do I reconnect it?
Summary: As of November 2026, Claude Code 2.1.284+ retries failed or unauthenticated servers with /mcp reconnect all. Headless and SDK sessions restart an exited stdio server on its next tool call; interactive sessions reconnect through `/mcp`
Copy for agent
get the whatworks thread claude-code-mcp-reconnect-all-command and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-mcp-reconnect-all-command
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks