Repository navigation
fix(mcp): Make link_issue fail early with actionable errors - #2852
Open
sentry-junior[bot] wants to merge 2 commits into
Open
sentry-junior[bot] wants to merge 2 commits into
sentry-junior[bot] wants to merge 2 commits into
Conversation
|
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. |
link_issue failures were mostly setup problems that agents could not fix by retrying, and the errors did not say what to do: - A native URL with no matching integration now names the provider and links to its integration settings page, or lists the installed integrations of that provider that do not cover the URL. - A Sentry App that is not installed now says so and links to the App's settings page. - An identifier-only Linear URL (no title slug) is rejected before the App callback runs. Sentry requires the URL Linear returns to match expectedExternalIssueUrl exactly, so these calls always ended in a 409 after Linear had already acted. An equivalent stored link still guards with its stored URL. - An App issue search with no match now says the search found nothing instead of asking for an unambiguous field value. Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
main was 0.8 KB under the 3.77 MiB budget, and the link_issue error messages add about 2.5 KB. The new budget leaves about 8.5 KB again.
sentry-junior
Bot
force-pushed
the
fix/link-issue-actionable-errors
branch
from
December 3, 2026 18:10
78ea207 to
b7b0b5c
Compare
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.
link_issuefails on about 18% of calls. Most failures are setup problems that agents can't fix by retrying, but the errors didn't say that, so agents kept retrying.Over the last 7 days of
mcp.serverspans forlink_issue, the top failure results were:Changes:
settings/sentry-apps/<slug>/.https://linear.app/<ws>/issue/ENG-123). These are now rejected before the App callback runs. The error tells the agent to use the full URL with the title slug. The backend'sexpectedExternalIssueUrlguard (IssueLinkCreator._verify_expected_url) compares thewebUrlthat Linear returns with an exact string match, and Linear always adds a title slug. So these calls always ended in a 409, after Linear's callback had already run. In the last 7 days no identifier-only Linear URL created a new link. They only succeeded when an equivalent link already existed. That path still works, because the guard then uses the stored URL.externalIssueUrldescription now says Linear URLs need the title slug.Accepting identifier-only Linear URLs end to end would need either the backend guard to compare issue identity instead of the exact URL, or the App's search to return the canonical URL. Both are outside this repo.
Not addressed here: native 409 lock contention ("This issue link is being updated", ~200 calls from 9 users, from parallel links to the same external issue), and 404s from
sentry-app-installationsfor users the backend doesn't treat as org members.via @dcramer.
--
View Session [Sentry]