Description
Setting up the Sentry MCP in Claude Code fails during OAuth with:
Authentication Error
invalid_target: The resource parameter does not match this authorization server
This issue was written with Claude Code. The error is not caused by user misconfiguration — it occurs on a fresh install with no prior Sentry credentials cached.
Steps to reproduce
- Install the Sentry plugin in Claude Code (
/plugin → marketplace → sentry)
- Start a new session — Claude Code initiates OAuth for the MCP server
- Browser opens the Sentry OAuth consent page
- Auth fails immediately with the above error before any user interaction
Expected behavior
OAuth completes successfully and Claude Code receives a token to authenticate against https://mcp.sentry.dev/mcp.
Details
- MCP URL:
https://mcp.sentry.dev/mcp
- Plugin version: 1.0.0
- Client: Claude Code (claude-sonnet-4-6)
- Platform: Linux
Notes
The invalid_target error is from RFC 8707 (OAuth 2.0 Resource Indicators). Claude Code sends a resource parameter in the authorization request pointing to the MCP server URL. Sentry's authorization server appears to be rejecting this parameter, suggesting it may not support or has misconfigured Resource Indicators support.
Description
Setting up the Sentry MCP in Claude Code fails during OAuth with:
Steps to reproduce
/plugin→ marketplace → sentry)Expected behavior
OAuth completes successfully and Claude Code receives a token to authenticate against
https://mcp.sentry.dev/mcp.Details
https://mcp.sentry.dev/mcpNotes
The
invalid_targeterror is from RFC 8707 (OAuth 2.0 Resource Indicators). Claude Code sends aresourceparameter in the authorization request pointing to the MCP server URL. Sentry's authorization server appears to be rejecting this parameter, suggesting it may not support or has misconfigured Resource Indicators support.