Skip to content

feat(tools): Allow eventId on get_issue_breadcrumbs - #1224

Merged
dcramer merged 5 commits into
mainfrom
feat/issue-breadcrumbs-event-id
Aug 3, 2026
Merged

dcramer merged 5 commits into
mainfrom
feat/issue-breadcrumbs-event-id

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Let get_issue_breadcrumbs take an optional eventId so callers can inspect breadcrumbs for more than the newest event in an issue. Omitted values still resolve to latest.

Event selection

The tool and helper now call getEventForIssue with eventId (default latest), matching the existing stacktrace tool pattern. Generated tool/skill definitions were regenerated.

Fixes #1222

Requested by David Cramer.

--

View Junior Session Sentry

Keep latest as the default while letting callers fetch breadcrumbs for a
specific event within an issue.

Co-Authored-By: David Cramer <david@sentry.io>
@dcramer
dcramer marked this pull request as ready for review August 3, 2026 16:23
Comment thread packages/mcp-core/src/tools/catalog/get-issue-breadcrumbs.ts Outdated
Require a non-empty eventId so whitespace-only values fail validation
instead of requesting /events//.
Comment thread packages/mcp-core/src/tools/catalog/get-issue-breadcrumbs.ts Outdated
Remove the get_issue_breadcrumbs hints block that restated the default
and eventId behavior already covered by the description and schema.
Comment thread packages/mcp-core/src/internal/tool-helpers/breadcrumbs.ts
sentry-junior Bot and others added 2 commits August 3, 2026 17:50
Prevent path traversal through unencoded eventId (and related segments)
when looking up issue events after project-constraint checks.
Tighten ParamEventId to 32-char hex and add ParamEventIdOrLatest so
issue-scoped tools accept either a real event id or latest by default.

Co-Authored-By: David Cramer <david@sentry.io>
@dcramer
dcramer merged commit 9a4d77c into main Aug 3, 2026
21 checks passed
@dcramer
dcramer deleted the feat/issue-breadcrumbs-event-id branch August 3, 2026 18:35

This branch was previously deployed

1 inactive deployment
Actions — dd745c96 Deployed Aug 3, 2026 by sentry-junior[bot] via eval #1070
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.

get_issue_breadcrumbs should take event ID

1 participant