Skip to content

Numeric issue IDs bypass project-scoped MCP sessions #2237

Done

Description

@sentry-junior

Part of #1357. Found while reviewing #1922.

In a project-scoped sentry mcp --commands session, an issue command that takes a numeric ID can read or change an issue in another project of the same org. For example, issue view 12345 in an acme/web session reaches an issue that lives in acme/api. The command surface checks each target before the call, but a numeric ID doesn't say which project the issue belongs to, so it can't be checked there.

via @BYK.

--

View Session [Sentry]

Activity

  1. linear-code commented on Nov 13, 2026

    @linear-code
  2. sentry-junior commented on Nov 30, 2026

    @sentry-junior
    ContributorAuthor

    The CLI-side fix is on main via #2527, #2541, #2549 and #2552. Wiring the limit into mcp --commands is tracked in #2554.

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