sentry-mcp icon indicating copy to clipboard operation
sentry-mcp copied to clipboard

feat(issue): Link external issues

Open dcramer opened this issue 6 months ago • 0 comments

Add URL-based external issue linking to update_issue so agents can link an existing external ticket without knowing Sentry integration ids or provider form fields.

Minimal Link API

update_issue now links existing external issues with a single new input:

update_issue({
  organizationSlug: "my-org",
  issueId: "PROJECT-123",
  externalIssueUrl: "https://github.com/getsentry/sentry/issues/123",
})

The same field is used for Jira, GitHub, GitLab, Bitbucket, Azure DevOps, Linear, and Shortcut URLs. There is no provider field, integration id, installation UUID, or raw provider form payload in the public tool API.

Integration Resolution

Native issue integrations resolve through Sentry's group integration endpoints and validate parsed URL fields against Sentry link config. Sentry App links resolve installed app UUIDs internally for Linear and Shortcut URLs.

Verification

Covered with API client tests, resolver tests, update tool tests, generated definitions, and an end-to-end local stdio check linking a Sentry issue to a temporary GitHub issue.

Fixes #228

dcramer avatar May 29 '26 16:05 dcramer