Skip to content

[Feature] /mcp reconnect-all: batch restart all MCP servers mid-session #56937

Description

@javiermoralestealium

Summary

When running Claude Code with many MCP servers (10+), network drops (VPN reconnects, SASE proxy resets, travel WiFi) disconnect multiple stdio servers simultaneously. Currently there's no way to reconnect them all at once — you have to run /mcp and retry each one individually.

Current behavior

  • /mcp shows status of all servers and allows individual retry
  • HTTP/SSE servers auto-reconnect with exponential backoff (up to 5 attempts)
  • Stdio servers never auto-reconnect (see MCP stdio servers never auto-reconnect after disconnect #43177)
  • After a network event, you have to manually reconnect each server one at a time

Requested behavior

A command like /mcp reconnect-all or /mcp restart that:

  1. Kills and restarts all stdio MCP server processes
  2. Re-initiates connections to all HTTP/SSE servers
  3. Reports status (success/failure count) once complete

Use case

I run 12+ MCP servers (Slack, Atlassian, Panther, OpsGenie, Okta, AWS, Glean, n8n, Snyk, etc.) for security operations. VPN reconnects happen multiple times per day (corporate SASE + AWS VPN). Each reconnect currently requires 5-12 individual /mcp retries, which breaks flow significantly.

Workaround

Currently the best workaround is exiting the session and starting fresh with --continue, which reconnects all servers on startup. But this loses any in-progress context compression state and is disruptive.

Related issues

Environment

  • Claude Code CLI on macOS
  • 12 MCP servers (mix of stdio and SSE)
  • Network: Corporate SASE (Fortra) + AWS VPN = frequent drops

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mcpduplicateThis issue or pull request already existsplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions