[FEATURE] Batch MCP reauthentication (`/mcp reauthenticate-all`)

Resolved 💬 1 comment Opened Jun 4, 2026 by shalmalisohoni Closed Jul 10, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

When multiple OAuth-based MCP servers disconnect (which happens frequently — see #60572, #26281), the only way to reauthenticate is via /mcp → select one server → "reauthenticate" → repeat for each server. With 4+ OAuth servers (Slack, Figma, Jira, etc.), this is tedious and breaks flow.

There's no way to:

  1. Reauthenticate all disconnected servers in one action
  2. Trigger MCP reauthentication from a CLI command or hook (for proactive session-start auth)

Related existing issues:

  • #60572 — OAuth MCP connectors random mid-session disconnects (duplicate/closed)
  • #26281 — MCP OAuth tokens without expires_in silently expire (open bug)

Proposed Solution

Option A (minimal): Add a "Reauthenticate all disconnected" option to the /mcp menu that sequentially opens browser tabs for each server needing re-auth.

Option B (ideal): Add a CLI subcommand like claude mcp reauthenticate [--all | <server-name>] that can be scripted in a SessionStart hook, so users never encounter stale MCP auth mid-task.

Environment

  • Claude Code CLI (terminal)
  • macOS
  • Multiple OAuth HTTP MCP servers (enterprise-managed + project-level)

Alternative Solutions

_No response_

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

Example scenario:

  1. I start a Claude Code session, begin working, and 10 minutes in discover that Jira MCP is disconnected when I try to query an issue.
  2. I /mcp, reauthenticate Jira, go back to work, then discover Figma is also down.
  3. Then Slack.
  4. Each one is a context switch.

With batch reauthentication (especially as a CLI command), a SessionStart hook could proactively verify and renew all MCP auth before the user hits a wall.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗