Skip to content

MCP OAuth fails with invalid_target: resource parameter does not match authorization server #59

@tylervovan

Description

@tylervovan

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

  1. Install the Sentry plugin in Claude Code (/plugin → marketplace → sentry)
  2. Start a new session — Claude Code initiates OAuth for the MCP server
  3. Browser opens the Sentry OAuth consent page
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions