Reapply "feat(seer): Attribute autofix referrer to MCP for MCP requests (#117521)"#117735
Merged
Merged
Conversation
JoshFerge
approved these changes
Jun 15, 2026
…ts (#117521)" This reland reapplies commit c079be2, which was reverted in 3a75f61. The original change moved `MCP_USER_AGENT_PREFIX` out of `sentry.issues.action_log.base` and into `sentry.utils.http`, but left a dangling import of it in `sentry/issues/endpoints/group_details.py`. That broke app startup (ImportError during Django app loading), which is why the change was reverted. Fix: update `group_details.py` to use the new `is_mcp_request` helper from `sentry.utils.http` instead of importing the moved constant. Agent transcript: https://claudescope.sentry.dev/share/RbLX9yu0qZM76DTjYq4X6sL5WoP1WR7BllVF_ejgbgQ
3d3f3d6 to
a15326a
Compare
billyvg
pushed a commit
that referenced
this pull request
Jun 17, 2026
…ts (#117521)" (#117735) Relands #117521 ("feat(seer): Attribute autofix referrer to MCP for MCP requests"), which was reverted in 3a75f61. Attributes the autofix referrer to MCP for requests originating from the official Sentry MCP server, and centralizes MCP request detection in a shared `is_mcp_request` helper in `sentry.utils.http`. Agent transcript: https://claudescope.sentry.dev/share/YnvnJme51BPsRo02v1xZr1dl1u0_fTENx2hxgIcuo5A
sehr-m
pushed a commit
that referenced
this pull request
Jun 23, 2026
…ts (#117521)" (#117735) Relands #117521 ("feat(seer): Attribute autofix referrer to MCP for MCP requests"), which was reverted in 3a75f61. Attributes the autofix referrer to MCP for requests originating from the official Sentry MCP server, and centralizes MCP request detection in a shared `is_mcp_request` helper in `sentry.utils.http`. Agent transcript: https://claudescope.sentry.dev/share/YnvnJme51BPsRo02v1xZr1dl1u0_fTENx2hxgIcuo5A
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.
Relands #117521 ("feat(seer): Attribute autofix referrer to MCP for MCP requests"), which was reverted in 3a75f61.
Attributes the autofix referrer to MCP for requests originating from the official Sentry MCP server, and centralizes MCP request detection in a shared
is_mcp_requesthelper insentry.utils.http.Agent transcript: https://claudescope.sentry.dev/share/YnvnJme51BPsRo02v1xZr1dl1u0_fTENx2hxgIcuo5A