Repository navigation
fix(mcp): Limit sentry mcp --commands sessions to their target - #2554
Draft
sentry-junior[bot] wants to merge 1 commit into
Draft
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
The `--commands` pieces of the scope fix for #2237, split out when the rest of the stack moved off #1922 onto `main`: - The stdio runner passes `limitToTarget: true` to the CLI SDK, so the session's org and project are a limit, not only defaults. - The command-surface constraints note that an ID alone (a numeric issue ID, an event, trace or replay ID) is checked by the runner. - `command-surface-scope.test.ts` runs the commands of a project-scoped session against a mocked Sentry API and checks each kind of ID. - The architecture overview describes what the transport scope does for a `--commands` session. These need `limitToTarget` and the transport scope from the stack that starts at #2527, so they build once #1922 has that stack. Refs #2237 Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #2237. Based on #1922.
The scope fix for #2237 (#2527 → #2541 → #2549 → #2552) moved off #1922 onto
main. This PR keeps the parts that only make sense with #1922'ssentry mcp --commandssurface:packages/cli/src/lib/mcp/command-surface.ts) passeslimitToTarget: truetocreateSentrySDK(), so the session's org and project are a limit, not only defaults.constraints.tsnotes that an ID alone (a numeric issue ID, an event, trace or replay ID) names no project, so the runner checks what it finds.--commandssection ofdocs/architecture/overview.mddescribes the transport scope and thex-sentry-project-scopedeclarations.limitToTargetand the transport scope come from #2527–#2552, which #1922 doesn't have yet. Keep this a draft until they land onmainand #1922 picks them up.via @BYK.
--
View Session [Sentry]