Skip to content

Assistant prompts for Sentry auth on code-change tasks that only need GitHub credentials #188

Closed

Description

@sentry-junior

Summary

When asked to perform a code-change task (clone repo, implement feature, open PR), the assistant incorrectly prompted for Sentry account authorization — a credential requirement that was irrelevant to the actual task.

Observed behavior

  • User asks assistant to investigate and create a draft pull request in a GitHub repo (getsentry/sentry-mcp).
  • First assistant reply: "I need to connect your Sentry account first. I've sent you a private authorization link."
  • The task required GitHub credentials (repo clone, PR creation), not Sentry API credentials.
  • The spurious auth prompt blocked the task and required a follow-up @mention to proceed.

Root cause (hypothesis, medium confidence)

The steering or skill-selection logic associated the MCP/metrics topic in the user's message with the Sentry skill and triggered a Sentry credential check before any GitHub work was attempted. The correct flow would be to load the code-change or GitHub skill, issue github.contents.read + github.pull-requests.write credentials, and proceed.

Additional context

A thread participant speculated that the "Beta" tag on the Metrics product might be making the MCP conservative — suggesting the topic framing of the task may be influencing credential selection even when the task itself is purely code-level. This is worth investigating as a potential confounding signal in the steering prompt.

Impact

  • User is blocked by an unnecessary auth step.
  • The actual task is delayed by a full turn.
  • Creates confusion about what credentials are actually needed.

Potential fixes

  • Improve steering to distinguish "task involves Sentry product context" (describing what to build) from "task requires querying Sentry API" (needs Sentry credential).
  • Credential issuance should be deferred until a skill actually declares it as a requires_capabilities dependency, not speculatively pre-empted.

Raised by Trevor Elkins and David Cramer.

Activity

  1. added 2 commits that reference this issue on Apr 17, 2026
    5271612
    64e55fb
  2. added a commit that references this issue on Apr 17, 2026
    0520b05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions