[Bug] /mcp dialog does not refresh server status after OAuth authentication
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
- Open Claude Code session
- Run
/mcp— see servers listed as "⚠ needs authentication" - Select a server (e.g., "claude.ai Notion") → browser opens for OAuth
- Complete OAuth flow in browser → return to Claude Code
- The
/mcpdialog still shows "⚠ needs authentication" for that server - Running
claude mcp listin 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
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗