claude-code - 💡(How to fix) Fix Enter key unresponsive in /mcp dialog after completing OAuth auth flow [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48142Fetched 2026-04-15 06:31:58
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×1subscribed ×1

After completing the Atlassian MCP OAuth flow in the browser, the user is redirected to https://claude.ai/settings/mcp/auth_done?authed_mcp_server_id=.... At this point, the /mcp dialog in the CLI should allow the user to press Enter to confirm and finish the connection. Instead, Enter does nothing — the dialog is unresponsive.

The only way to dismiss the dialog is to press Esc, which cancels the flow and discards the successful authentication. The user then has to re-run /mcp and redo the entire auth flow, hoping Enter works on the next attempt.

Root Cause

After completing the Atlassian MCP OAuth flow in the browser, the user is redirected to https://claude.ai/settings/mcp/auth_done?authed_mcp_server_id=.... At this point, the /mcp dialog in the CLI should allow the user to press Enter to confirm and finish the connection. Instead, Enter does nothing — the dialog is unresponsive.

The only way to dismiss the dialog is to press Esc, which cancels the flow and discards the successful authentication. The user then has to re-run /mcp and redo the entire auth flow, hoping Enter works on the next attempt.

RAW_BUFFERClick to expand / collapse

Description

After completing the Atlassian MCP OAuth flow in the browser, the user is redirected to https://claude.ai/settings/mcp/auth_done?authed_mcp_server_id=.... At this point, the /mcp dialog in the CLI should allow the user to press Enter to confirm and finish the connection. Instead, Enter does nothing — the dialog is unresponsive.

The only way to dismiss the dialog is to press Esc, which cancels the flow and discards the successful authentication. The user then has to re-run /mcp and redo the entire auth flow, hoping Enter works on the next attempt.

Steps to reproduce

  1. Run /mcp in Claude Code CLI.
  2. Select a claude.ai MCP connector (e.g., Atlassian).
  3. Complete the OAuth flow in the browser.
  4. Get redirected to the auth_done callback page.
  5. Return to the terminal and try to press Enter to confirm.

Expected behavior

Enter confirms the dialog and completes the MCP connection.

Actual behavior

Enter key does nothing. The dialog is stuck. The only option is Esc, which cancels the flow.

Environment

  • Platform: Linux (WSL2)
  • OS: Linux 6.6.87.2-microsoft-standard-WSL2
  • Claude Code CLI

[AI] 🤖 Generated with Claude Code

extent analysis

TL;DR

The issue can be mitigated by investigating the handling of the Enter key press event in the /mcp dialog of the Claude Code CLI.

Guidance

  • Review the event listeners attached to the /mcp dialog to ensure that the Enter key press is properly handled and triggers the expected confirmation action.
  • Verify that there are no conflicting event listeners or keyboard shortcuts that might be preventing the Enter key from working as expected.
  • Check the Claude Code CLI documentation or source code for any specific requirements or guidelines for handling keyboard input in custom dialogs.
  • Test the /mcp dialog with different keyboard inputs to see if the issue is specific to the Enter key or if other keys are also affected.

Example

No code snippet can be provided without more information about the implementation of the /mcp dialog and the Claude Code CLI.

Notes

The root cause of the issue is unclear without more information about the implementation of the /mcp dialog and the Claude Code CLI. Further investigation is needed to determine the exact cause of the problem.

Recommendation

Apply workaround: Modify the /mcp dialog to handle the Enter key press event correctly, or provide an alternative confirmation method, such as a button click. This is because the current implementation seems to have an issue with handling the Enter key press, and providing an alternative method can help mitigate the issue until the root cause is found and fixed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Enter confirms the dialog and completes the MCP connection.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Enter key unresponsive in /mcp dialog after completing OAuth auth flow [1 comments, 2 participants]