Repository navigation
feat(mcp): Support same-title and same-supergroup related issue types - #2475
Merged
Merged
Conversation
Sentry's related issues endpoint now supports same_title (error issues in the same project with the same title over the last 14 days) and same_supergroup (issues whose Seer root cause describes the same failure, in any project). find_related_issues can request them and asks for them by default, and reports the searched title and the supergroup's summary for each. get_issue_details and update_issue's resolve side quest keep asking for only similar_stacktrace, same_trace, and contributing: they run on every call, and the new types add an issue search and a Seer request each. Co-Authored-By: Christina Long <60594860+Christinarlong@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📊 MCP Server Token Cost ReportSummary
Per-Tool Breakdown
Note: This measures the static overhead of tool definitions sent to LLM clients with every request. Lower is better. MCP Apps viewsEach
The budget applies to raw bytes, and the view's generator fails over it. |
Sentry's related issues endpoint added an investigations type, which fills a separate top-level investigations list with the Seer investigations that linked the issue. find_related_issues now asks for it and returns each investigation's title, link, hypothesis, and reason. get_issue_details lists the investigations' titles and links. get_issue_details now asks for every type except same_title, whose 14-day issue search would add to every call. update_issue's resolve side quest asks for every type that finds issues, including same_title and same_supergroup, but not investigations, which it doesn't read. Output schemas accept the new relation types everywhere. Co-Authored-By: Christina Long <60594860+Christinarlong@users.noreply.github.com>
Investigations get their own pull request. This keeps same_title and same_supergroup: get_issue_details asks for every type except same_title, whose 14-day issue search would add to every call, and update_issue's resolve side quest asks for every type. Co-Authored-By: Christina Long <60594860+Christinarlong@users.noreply.github.com>
…ame-title-supergroup Co-Authored-By: Christina Long <60594860+Christinarlong@users.noreply.github.com>
dcramer
approved these changes
Nov 26, 2026
github-actions Bot
pushed a commit
to Fields-Education/sentry-mcp
that referenced
this pull request
Nov 28, 2026
…tal mode (getsentry#2504) Removes the experimental gate on the related issues lookup in `get_issue_details`. Every session now gets the inline `relatedIssues` list and, when that list isn't empty, the `find_related_issues` suggestion. Until now only experimental sessions got either. `get_sentry_resource` uses the same handler for issue and event resources, so it changes too. The lookup still fails soft: a 429 or other failed `/related/` call leaves `relatedIssues` out, and the tool call still succeeds. **Before merging:** land getsentry/sentry#131404 (aligns the `/related/` rate limit with group details) and getsentry#2474 (stops retrying 429s). **Ordering with open PRs:** getsentry#2475 and getsentry#2476 change which relation types this lookup asks for. They touch the same file, so whichever merges second needs a rebase. <!-- junior-request-attribution:start --> via @Christinarlong. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0CGPBK9ND7%3A1795567437.650439 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CGPBK9ND7%3A1795567437.650439) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CGPBK9ND7%3A1795567437.650439/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Christina Long <60594860+Christinarlong@users.noreply.github.com>
This branch was successfully 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.
Sentry's
/organizations/{org}/issues/{id}/related/endpoint now supports two more relation types (RelationTypeinsrc/sentry/issues/related/types.py):same_title: error issues in the same project whose events in the last 14 days share this issue's event title. Grouping splits one cause reached from several places into several issues, and stack trace similarity misses those by design.same_supergroup: the other issues in this issue's Seer supergroup, meaning issues in any project the user can read whose root cause describes the same failure. It'snot_applicableunless the org has supergroups enabled.Both are in
RELATED_ISSUE_TYPES, so every response and output schema accepts them.What each caller asks for:
find_related_issuesasks for all types by default. EachrelationTypesentry reports the titlesame_titlesearched and the supergroup's Seer summary (meta.supergroup.title). The supergroup ID is parsed but left out of the output, because no tool takes it.get_issue_details(experimental mode) asks for every type exceptsame_title, because that type's issue search would run on every call.update_issue's resolve side quest asks for every type.RELATION_LABELShas labels for the new ones.The project-scope filter already drops cross-project
same_supergroupissues in a project-scoped session.Deploy order: the endpoint validates
typeagainst its choices and returns 400 for an unknown one. If the Sentry changes that addedsame_titleandsame_supergrouparen't deployed when this merges,find_related_issuesfails by default.get_issue_detailsand theupdate_issueside quest quietly leave related issues out, since they treat client errors as expected.The new
investigationstype goes in a separate PR stacked on this one.via @Christinarlong.
--
View Session [Sentry]