Skip to content

feat(tools): expose selected package versions for exact events - #1293

Open
mr-danya wants to merge 3 commits into
getsentry:mainfrom
mr-danya:trusst/sentry-mcp-pr-handoff
Open

mr-danya wants to merge 3 commits into
getsentry:mainfrom
mr-danya:trusst/sentry-mcp-pr-handoff

Conversation

@mr-danya

@mr-danya mr-danya commented Sep 8, 2026

Copy link
Copy Markdown

Summary

Adds optional packageNames selection to exact-event reads through get_sentry_resource and get_issue_details, so dependency compatibility diagnosis can use versions recorded with the event. Returns up to 10 selected packages in structuredContent when Sentry supplies JSON, and in Markdown fallback responses, with distinct states for unavailable metadata and unlisted packages and bounded version lengths. Calls without a selection retain their existing output, with no additional API requests.

Fixes #1292.

Before / After

Before: event packages → discarded during parsing → versions unavailable
After:  event packages → exact-name selection → structured or Markdown response

Retain event package metadata and support bounded exact-name selection
through the existing resource and issue readers. Include selected versions
with supplied Markdown and local formatting without extra API requests.

Fixes getsentry#1292

Co-Authored-By: GPT-6 (Codex) <noreply@openai.com>
@mr-danya
mr-danya marked this pull request as ready for review September 8, 2026 01:46
mr-danya and others added 2 commits September 10, 2026 12:03
Merge upstream/main and retain package selection in the new structured
issue responses as well as Markdown fallback. Share selection logic and
cover both response formats through the tool and MCP boundaries.

Co-Authored-By: GPT-6 (Codex) <noreply@openai.com>
Preserve package-selection test imports alongside upstream tool failure
telemetry tests and the latest issue-details replay limits.

Co-Authored-By: GPT-6 (Codex) <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose installed package versions in exact-event MCP responses

1 participant