Skip to content

fix(mcp): include firstRelease and lastRelease in get_issue_details - #2906

Open
adembilge wants to merge 1 commit into
getsentry:mainfrom
adembilge:cursor/get-issue-details-releases-ee61
Open

adembilge wants to merge 1 commit into
getsentry:mainfrom
adembilge:cursor/get-issue-details-releases-ee61

Conversation

@adembilge

Copy link
Copy Markdown

get_issue_details dropped firstRelease and lastRelease from Sentry's issue details response. That endpoint includes both unless collapse=release is set. A release that no longer exists is only { version }.

The tool now returns those as nullable version strings, beside firstSeen and lastSeen in the compatibility JSON. Ids, projects, and other release fields stay off the payload. IssueSchema accepts the same objects, and leaves them optional so list responses that omit them still parse.

toolDefinitions.json is regenerated. Adding these keys has the same closed-schema cost as other output fields (#2293): a client still holding an older tools/list can reject the new issue object.

Fixes #2841

Testing

  • pnpm run typecheck
  • pnpm run lint
  • pnpm --filter @sentry/mcp-core exec vitest run src/tools/catalog/get-issue-details.test.ts src/tools/catalog/get-issue-details.structured.test.ts src/tools/catalog/get-issue-details.numeric-id.test.ts src/api-client/schema.test.ts
  • pnpm run test

Map the release objects from issue details to version strings so the tool
output includes the release that introduced an issue and the latest one.

Fixes getsentry#2841

Co-Authored-By: Grok 4.7 <noreply@x.ai>
@adembilge
adembilge requested a review from a team as a code owner December 4, 2026 13:31
Copilot AI balanced review requested due to automatic review settings December 4, 2026 13:31
@vercel

vercel Bot commented Dec 4, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Dec 4, 2026 1:31pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – sentry-local December 4, 2026 13:31 Inactive
@vercel

vercel Bot commented Dec 4, 2026

Copy link
Copy Markdown

@cursoragent is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Dec 4, 2026

This branch was previously deployed

1 inactive deployment
Preview – sentry-local — bc4e4a96 Deployed Dec 4, 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.

get_issue_details drops firstRelease and lastRelease that Sentry returns

3 participants