Repository navigation
feat(mcp): Show Seer investigations in get_issue_details - #2476
Draft
sentry-junior[bot] wants to merge 5 commits into
Draft
sentry-junior[bot] wants to merge 5 commits into
sentry-junior[bot] wants to merge 5 commits into
Conversation
Sentry's related issues endpoint added an investigations type (getsentry/sentry#132090). It fills a separate top-level investigations list with the Seer investigations whose evidence named the issue. find_related_issues asks for it by default and returns each investigation's title, link, hypothesis, and reason. get_issue_details asks for it too and lists the investigations' titles and links. update_issue's resolve side quest asks only for the types that find issues, since it doesn't read investigations. 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. |
…lated-issues-investigations
find_related_issues is for deciding whether to resolve or ignore an issue, and investigations don't help with that. It now asks only for the issue relation types and drops its investigations output. get_issue_details still asks for investigations and shows them. Co-Authored-By: Christina Long <60594860+Christinarlong@users.noreply.github.com>
get_issue_details now returns each linked investigation's reason, so an agent can see why Seer tied the investigation to this issue without opening it.
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.
Stacked on #2475. The base is that PR's branch, so this diff shows only the investigations change. Retarget it to
mainonce #2475 merges.getsentry/sentry#132090 added an
investigationstype to/organizations/{org}/issues/{id}/related/. It returns the Seer investigations whose evidence named the issue. They come back in a separate top-levelinvestigationslist, not indata. Each entry hasinvestigation {id, title},hypothesisStatement, and a nullablereason(RelatedInvestigationinsrc/sentry/issues/related/types.py;src/sentry/issues/related/investigations.py). When the org can't view investigation links, the type isnot_applicable.ISSUE_RELATION_TYPESholds the five types that filldata.RELATED_ISSUE_TYPESaddsinvestigations, and it's the list the client accepts andmeta.typesparses. Relation enums andRELATION_LABELSuse the narrower list, because an issue's relations can never includeinvestigations.RelatedIssuesResponseSchemaparsesinvestigationsand defaults it to[], so a response from a Sentry version without the field still parses.get_issue_details(experimental mode) addsinvestigationsto the types it asks for (still everything exceptsame_title). ItsrelatedIssueslists each linked investigation's title, link, and Seer's reason for linking this issue, which helps when an agent is working out how to fix the issue.find_related_issuesandupdate_issue's resolve side quest ask only for the five issue types. They're for deciding whether to resolve or ignore an issue, and investigations don't help with that.find_related_issues'typesinput no longer acceptsinvestigations./seer/investigations/{id}/, through a newgetInvestigationUrlhelper. No MCP tool takes an investigation ID, so the link is the useful handle.Deploy order: the endpoint validates
typeagainst its choices and returns 400 for an unknown one. Until getsentry/sentry#132090 is deployed,get_issue_detailsquietly leaves related issues out. Merge this only after #132090 is deployed.via @Christinarlong.
--
View Session [Sentry]