[FEATURE] IDE embedded mode should share OAuth auth context with terminal (or clearly prompt for login)
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
When using Claude Code embedded in an IDE (tested with Windsurf), the extension silently holds a separate authentication context from the terminal — even on the same machine, with the same user account.
The result: claude.ai Connectors (MCP servers like Gmail, Todoist, Google Calendar) are not loaded in the IDE embedded mode, and /mcp returns No running MCP servers. There is no message explaining why, or what to do about it.
The user is left thinking the Connectors are broken or unsupported in the IDE — when the real issue is just a silent, separate login state.
Proposed Solution
Two acceptable paths:
- Share the auth context — the IDE embedded mode should read from the same
~/.claude.jsonused by the terminal, so that a singleclaude auth loginis sufficient across all surfaces.
- Surface the problem clearly — if keeping separate contexts is intentional, the IDE should detect the missing auth and display a clear prompt, e.g.:
> "You're not logged in. Run /switch-account to connect your Claude.ai account and enable MCP Connectors."
Alternative Solutions
Workaround (confirmed working): Run /switch-account inside the IDE embedded chat and log in via OAuth again. After that, all claude.ai Connectors appear as connected.
This confirms the feature works — it just requires an undiscoverable extra step.
Priority
Medium - Would be very helpful
Feature Category
MCP server integration
Use Case Example
- User authenticates via
claude auth loginin the terminal →claude auth statusconfirms login with Claude.ai Pro subscription - User opens Claude Code embedded in Windsurf
- User runs
/mcp→ seesNo running MCP servers - User assumes Connectors are unsupported in IDE mode and gives up
- (After discovering
/switch-account) User logs in again inside the IDE → Connectors load correctly
Additional Context
- IDE: Windsurf
- OS: macOS 15 (Darwin 25.2.0)
- Auth method: Claude.ai OAuth (Pro subscription)
- Claude Code version: 2.1.63
- Running
claude auth statusinside Windsurf's terminal returns the correct account — confirming the terminal context is authenticated. Only the embedded chat context is not.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗