Skip to content

feat(mcp): Support same-title and same-supergroup related issue types - #2475

Merged
Christinarlong merged 5 commits into
mainfrom
feat/related-issues-same-title-supergroup
Nov 26, 2026
Merged

Christinarlong merged 5 commits into
mainfrom
feat/related-issues-same-title-supergroup

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Sentry's /organizations/{org}/issues/{id}/related/ endpoint now supports two more relation types (RelationType in src/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's not_applicable unless 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_issues asks for all types by default. Each relationTypes entry reports the title same_title searched 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 except same_title, because that type's issue search would run on every call.
  • update_issue's resolve side quest asks for every type. RELATION_LABELS has labels for the new ones.

The project-scope filter already drops cross-project same_supergroup issues in a project-scoped session.

Deploy order: the endpoint validates type against its choices and returns 400 for an unknown one. If the Sentry changes that added same_title and same_supergroup aren't deployed when this merges, find_related_issues fails by default. get_issue_details and the update_issue side quest quietly leave related issues out, since they treat client errors as expected.

The new investigations type goes in a separate PR stacked on this one.

via @Christinarlong.

--

View Session [Sentry]

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>
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Nov 25, 2026 11:03pm UTC
sentry-local Ready Ready Preview Nov 25, 2026 11:03pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

📊 MCP Server Token Cost Report

Summary

  • Total Tokens: 67759 tokens
  • Tool Count: 76 tools
  • Average: 892 tokens/tool

Per-Tool Breakdown

Tool Tokens % of Total
get_issue_details 3966 5.9%
get_alert_rule 2245 3.3%
find_releases 1805 2.7%
get_issue_activity 1759 2.6%
update_alert_rule 1653 2.4%
get_replay_details 1602 2.4%
create_alert_rule 1506 2.2%
get_monitor_details 1501 2.2%
update_metric_monitor 1479 2.2%
create_metric_monitor 1458 2.2%
get_event_stacktrace 1381 2%
update_issue 1380 2%
render_sentry_chart 1362 2%
get_snapshot 1308 1.9%
get_profile 1291 1.9%
get_agent_conversation_details 1278 1.9%
find_monitors 1261 1.9%
search_logs 1248 1.8%
search_traces 1246 1.8%
get_alert_options 1236 1.8%
search_profiles 1228 1.8%
search_metrics 1216 1.8%
search_errors 1214 1.8%
get_profile_details 1200 1.8%
find_related_issues 1171 1.7%
get_uptime_monitor_details 1163 1.7%
create_monitor 1135 1.7%
onboarding_status_update 1109 1.6%
search_issue_events 1103 1.6%
search_replays 1095 1.6%
render_issue_chart 1061 1.6%
get_release_details 1056 1.6%
get_dashboard_details 1052 1.6%
search_issues 977 1.4%
search_docs 973 1.4%
find_alert_rules 908 1.3%
update_uptime_monitor 873 1.3%
create_uptime_monitor 871 1.3%
search_agent_conversations 830 1.2%
find_dropped_events 819 1.2%
get_metric_monitor_details 797 1.2%
create_project 793 1.2%
update_dsn 765 1.1%
get_issue_user_reports 630 0.9%
get_latest_base_snapshot 623 0.9%
find_dashboards 553 0.8%
link_issue 545 0.8%
find_uptime_monitors 537 0.8%
get_issue_breadcrumbs 492 0.7%
unlink_issue 476 0.7%
find_metric_monitors 471 0.7%
get_issue_tag_values 469 0.7%
update_project 441 0.7%
get_sentry_resource 429 0.6%
submit_feedback_to_sentry_team 426 0.6%
add_issue_note 404 0.6%
delete_monitor_environment 363 0.5%
find_teams 351 0.5%
find_projects 346 0.5%
delete_alert_rule 345 0.5%
delete_uptime_monitor 333 0.5%
delete_metric_monitor 331 0.5%
create_dsn 326 0.5%
add_team_to_project 324 0.5%
remove_team_from_project 320 0.5%
find_dsns 319 0.5%
find_organizations 311 0.5%
get_snapshot_image 302 0.4%
analyze_issue_with_seer 300 0.4%
get_event_attachment 299 0.4%
get_trace_details 282 0.4%
create_team 266 0.4%
get_span_details 263 0.4%
whoami 261 0.4%
get_sentry_mcp_info 142 0.2%
get_doc 102 0.2%

Note: This measures the static overhead of tool definitions sent to LLM clients with every request. Lower is better.

MCP Apps views

Each ui:// view as a host receives it from resources/read.

View MIME type Raw Gzip Brotli Budget % of budget
ui://sentry/chart/v5.html text/html;profile=mcp-app 19,234 B 7,915 B 7,020 B 24,576 B 78.3%

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>
@vercel
vercel Bot temporarily deployed to Preview – sentry-local November 23, 2026 18:51 Inactive
@sentry-junior sentry-junior Bot changed the title feat(mcp): Return same-title and same-supergroup related issues feat(mcp): Support same-title, same-supergroup, and investigations related types Nov 23, 2026
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>
@vercel
vercel Bot temporarily deployed to Preview – sentry-local November 23, 2026 19:00 Inactive
@sentry-junior sentry-junior Bot changed the title feat(mcp): Support same-title, same-supergroup, and investigations related types feat(mcp): Support same-title and same-supergroup related issue types Nov 23, 2026
@sentry-junior
sentry-junior Bot added this pull request to stack #2477 November 23, 2026 19:04
…ame-title-supergroup

Co-Authored-By: Christina Long <60594860+Christinarlong@users.noreply.github.com>
@Christinarlong
Christinarlong merged commit 2f5996c into main Nov 26, 2026
36 checks passed
@Christinarlong
Christinarlong deleted the feat/related-issues-same-title-supergroup branch November 26, 2026 01:04
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

3 active deployments
Actions — 30ea84d9 Deployed Nov 25, 2026 by sentry-junior[bot] via eval #2067
Preview – sentry-local — 30ea84d9 Deployed Nov 25, 2026 by vercel[bot]
Preview – cli — 30ea84d9 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants