[BUG] Multiple unnecessary login pages appear after connection is lost
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [x] Other: Claude Desktop + mcp-remote + custom MCP
- Claude CLI version: 0.12.112
- Operating System: Mac Sequoia 15.1.1
- Terminal: Terminal
Bug Description
First I connect to my MCP server using mcp-remote, successfully send requests and receive responses.
However, if my Mac goes to sleep or I don’t use Claude Desktop for a while, I see the following error in the logs:
Error: SSE stream disconnected: TypeError: terminated
After that, the client attempts to establish a new connection, and multiple authentication pages are automatically opened in the browser.
In the logs I can see that the token was already saved in a file and successfully read, and the token file itself is present.
If I simply close the authentication pages, Claude Desktop continues to work and handle requests as expected.
Steps to Reproduce
- Connect to an MCP server using
mcp-remote - Cause a disconnection (e.g. put the Mac to sleep)
- Open Claude Desktop
Expected Behavior
After establishing a new connection, login pages should not be opened if a token is already saved.
Actual Behavior
Multiple unnecessary authentication pages open in the browser even though a valid token already exists.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗