MCP OAuth dialog stuck: 'Hit Enter to continue' doesn't accept Enter key

Status Fixed / completed
Maintainer reply ✓ Yes — claude[bot]
Activity 6 comments · opened Apr 9, 2026 · closed May 9, 2026
💡 Likely answer: A maintainer (claude[bot], contributor) responded on this thread — see the highlighted reply below.

Description

When authenticating a remote MCP server (e.g. claude.ai Notion) via the /mcp dialog, the OAuth flow completes successfully in the browser, but the CLI modal showing "Hit Enter to continue" does not respond to the Enter key. The only option is to press Esc, which cancels the flow and discards the auth token.

Steps to reproduce

  1. Open Claude Code CLI
  2. Run /mcp and select a remote MCP server that requires OAuth (e.g. claude.ai Notion)
  3. The browser opens and the OAuth flow completes successfully (Notion shows "Return to your AI tool to continue")
  4. Return to the CLI — the modal says "Hit Enter to continue"
  5. Press Enter — nothing happens
  6. Only Esc works, which cancels the authentication

Expected behavior

Pressing Enter in the "Hit Enter to continue" modal should dismiss the dialog and complete the authentication, making the server's tools available.

Actual behavior

Enter key input is not recognized in the modal. The user is forced to Esc out, which discards the OAuth token. The MCP server remains unauthenticated.

Environment

  • Claude Code CLI (macOS, Darwin 25.3.0)
  • Shell: zsh
  • Remote MCP server: claude.ai Notion (claudeai-proxy at https://mcp.notion.com/mcp)

Screenshot

The browser shows auth complete ("Return to your AI tool to continue") while the CLI is stuck on the Enter prompt:

!Screenshot showing the stuck dialog

(CLI modal doesn't accept Enter; browser confirms auth is complete)

🤖 Generated with Claude Code

View original on GitHub ↗

6 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/42707
  2. https://github.com/anthropics/claude-code/issues/45268
  3. https://github.com/anthropics/claude-code/issues/45220

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

nyadav810 · 4 months ago

Also running into this issue

carcer · 4 months ago

Hitting this issue

tyler-gametime · 4 months ago

I tried some different key-binds to work around this, I was able to get "tab+enter" to work. Sample size was 1, so your milage may vary.

claude[bot] contributor · 3 months ago

This issue was fixed as of version 2.1.116.

github-actions[bot] · 2 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.