[BUG] Remote sentry mcp is not launching auth flow
Status Fixed / completed
Maintainer reply ✓ Yes — ashwin-ant
Activity 11 comments · opened May 19, 2025 · closed Jun 18, 2025
💡 Likely answer: A maintainer (ashwin-ant, collaborator)
responded on this thread — see the highlighted reply below.
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 0.2.120 (Claude Code)
- Operating System: 15.4.1 (24E263)
- Terminal: Ghostty
Bug Description
Unable to connect to sentry's remote mcp server
Steps to Reproduce
- claude mcp add --transport sse -s user sentry https://mcp.sentry.dev/sse
- claude --mcp-debug
Expected Behavior
Browser tab is launched or url available to go through auth flow
Actual Behavior
❯ claude --mcp-debug
╭───────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview! │
│ │
│ /help for help, /status for your current setup │
│ │
│ cwd: /Users/stephensolka/dev/standd │
╰───────────────────────────────────────────────────╯
MCP server "sentry" Error: SSE error: Non-200 status code (401)
MCP server "sentry" Connection failed: SSE error: Non-200 status code (401)
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > Try "how do I log an error?" │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
1 MCP server failed to connect (see /mcp for info)
Additional Context
I was able to add this to Claude desktop app using the following config:
{
"globalShortcut": "",
"mcpServers": {
"Sentry": {
"command": "npx",
"args": ["mcp-remote@latest", "https://mcp.sentry.dev/sse"]
}
}
}
It launched a browser and I used that to complete the auth flow.
11 Comments
Having the same exacty issue on my side! Any idea how to resolve it?
@dcramer any thoughts on this? I'm not sure if this is a sentry mcp issue or a Claude code issue.
So there's two things to understand:
npx mcp-remote@latest https://mcp.sentry.dev/mcpIt appears in this case it _does not_ support OAuth, otherwise it would recognize the 401 and auth you somehow.
I'd like to add basic quickstart instructions for this, so if you have guidance on how to achieve (2) right now lmk.
(if im wrong and code is supposed to support auth then I have no idea)
@ashwin-ant are you able to answer if the Claude code remote sse mcp server calling support servers that require oauth flows? It's unclear from changelog and docs.
Some general docs on how auth against remote SSE servers work would be nice. I wonder if it'd possible to use
--envvars to pass a auth token to the server through the protocol, for example.@silverwind we still ship a stdio implementation for that, at least in sentry's context. I do think a solution to OAuth for stdio is probably needed though.
!Image
https://github.com/anthropics/claude-code/commit/d6503abfd9b919ddaca9d16e4ab562d87de2e189
🎉
Remote MCP auth is now supported, as @trashhalo pointed out!
This is still an issue for me. I've already tried:
@joeldbirch mind filing another issue? Please include your MCP config as well.
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.