[Bug] /mcp dialog does not refresh server status after OAuth authentication

Resolved 💬 2 comments Opened Apr 4, 2026 by itboat Closed May 14, 2026

Bug description

After completing OAuth authentication for a claude.ai MCP server (e.g., Notion, Fellow.ai), the /mcp dialog still shows the server as "⚠ needs authentication" even though the server is actually connected.

Running claude mcp list from a separate terminal confirms the server is ✓ Connected, but the /mcp dialog UI does not update to reflect the new status.

Steps to reproduce

  1. Open Claude Code session
  2. Run /mcp — see servers listed as "⚠ needs authentication"
  3. Select a server (e.g., "claude.ai Notion") → browser opens for OAuth
  4. Complete OAuth flow in browser → return to Claude Code
  5. The /mcp dialog still shows "⚠ needs authentication" for that server
  6. Running claude mcp list in another terminal shows ✓ Connected

Expected behavior

After OAuth completes, the /mcp dialog should refresh and show the server as ✓ connected.

Actual behavior

The /mcp dialog continues to display "⚠ needs authentication" for servers that have successfully completed OAuth. The dialog does not poll or re-check server health after the OAuth callback returns.

Environment

  • Claude Code version: 2.1.92
  • Platform: macOS (darwin 25.3.0)
  • Terminal: iTerm2 + tmux

Related

This is separate from the Enter key bug (#42707) but often occurs together — user authenticates via /mcp, status doesn't update, and they can't dismiss the dialog with Enter either.

🤖 Generated with Claude Code

View original on GitHub ↗

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