[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

  1. claude mcp add --transport sse -s user sentry https://mcp.sentry.dev/sse
  2. 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.

View original on GitHub ↗

11 Comments

piotryordanov · 1 year ago

Having the same exacty issue on my side! Any idea how to resolve it?

trashhalo · 1 year ago

@dcramer any thoughts on this? I'm not sure if this is a sentry mcp issue or a Claude code issue.

dcramer · 1 year ago

So there's two things to understand:

  1. if it supports native oauth (im not sure if it does, i still havent setup claude code), you can use 'https://mcp.sentry.dev/mcp' for the current spec (or /sse for legacy)
  2. if it doesnt, the whole 'stdio' interface needs wrapped in npx mcp-remote@latest https://mcp.sentry.dev/mcp

It 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)

trashhalo · 1 year ago

@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.

silverwind · 1 year ago

Some general docs on how auth against remote SSE servers work would be nice. I wonder if it'd possible to use --env vars to pass a auth token to the server through the protocol, for example.

dcramer · 1 year ago

@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

ashwin-ant collaborator · 1 year ago

Remote MCP auth is now supported, as @trashhalo pointed out!

joeldbirch · 1 year ago

This is still an issue for me. I've already tried:

  1. ✅ Added with SSE transport (-t sse)
  2. ✅ Added with HTTP transport (-t http)
  3. ✅ Added to user scope (-s user)
  4. ✅ Removed and re-added multiple times
ashwin-ant collaborator · 1 year ago

@joeldbirch mind filing another issue? Please include your MCP config as well.

github-actions[bot] · 1 year 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.