Repository navigation
feat(mcp): Stop retrying the related issues lookup - #2474
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 related issues endpoint allows 15 requests per 5 seconds per user. get_issue_details and the update_issue side quest drop its results when it fails, so retrying a 429 only adds up to 3 seconds to the tool call and spends more of that limit. Send /related/ through a transport with no retries. Co-Authored-By: Christina Long <60594860+Christinarlong@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
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. |
Contributor
|
This PR has had no activity for 3 days. It closes in 2 days unless someone pushes, comments, or adds the |
Contributor
Author
|
Keeping this open as a draft; it's waiting on a decision about whether |
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
/issues/{id}/related/endpoint allows 15 GET requests per 5 seconds per user.get_issue_details(experimental for now) and theupdate_issueresolve side quest only add its results to their response, and they already drop them when the lookup fails. With the shared retry policy, a 429 is retried up to twice, which adds up to 3 seconds to the tool call and spends more of the same per-user limit. Most of that limit goes to heavy automated users, and that's who hits it.getRelatedIssuesnow goes through a second transport that uses the same policy withmaxRetries: 0. Every other endpoint keeps its retries.find_related_issuesuses the same method, so a 429 or 503 there now goes straight to the agent as a tool error instead of being retried. That seemed fine because the agent can just call it again. If we'd rather keep retries for the explicit tool, the alternative is a per-call option.via @Christinarlong.
--
View Session [Sentry]