[BUG] claude.ai Gmail MCP auth flow broken in Claude Code CLI on Linux — Enter key does nothing after browser auth
Environment
- Claude Code CLI version: (run claude --version to fill in)
- OS: Linux (Arch, kernel 6.19)
- Shell: zsh
- Plan: (fill in)
Summary
The /mcp authentication flow for the claude.ai Gmail connector never completes in Claude Code CLI. The terminal prompts "Press Enter after authenticating in your browser" but pressing Enter has no effect — no error, no success, the Gmail tools never
become available.
Steps to Reproduce
- Add Gmail MCP: claude mcp add --transport http gmail https://gmail.mcp.claude.com/mcp
- Run /mcp in a Claude Code session
- Select "claude.ai Gmail" → authenticate
- Terminal shows: Authenticating with claude.ai Gmail… A browser window will open for authentication
- Browser opens to https://claude.ai/settings/connectors
- Gmail shows as connected ("Disconnect" button visible)
- Return to terminal, press Enter
- Nothing happens (I press esc to exit it eventually)
Key Observations
- Wrong redirect URL. The CLI opens https://claude.ai/settings/connectors — a settings page, not an OAuth endpoint. There is no OAuth token exchange triggered.
- Two separate connector systems. https://claude.ai/settings/connectors (old, used by CLI auth flow) and https://claude.ai/customize (new Customize page) appear to be separate systems. Connecting Gmail on the new Customize page does not propagate to
the old page. The CLI auth flow uses the old page.
- Gmail IS connected in the web app. The connector works correctly on claude.ai web chat — confirming the OAuth token is valid. The failure is CLI-specific.
- No OAuth page shown. Other reporters (e.g. #30166) describe seeing gmail.mcp.claude.com/google/install?metadata=.... That page never appears in the CLI flow on Linux — the browser goes straight to the connectors settings page.
Expected Behavior
After pressing Enter, the CLI should pick up the OAuth token and the Gmail tools should become available in the session.
Actual Behavior
Enter key has no effect. Gmail tools never appear. No error is shown.
Related Issues
- #30166 — OAuth hang in Claude Desktop (different surface, similar root cause)
- #25650 — Gmail tools not exposed in session after auth
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗