Skip to content

Reapply "feat(seer): Attribute autofix referrer to MCP for MCP requests (#117521)"#117735

Merged
chromy merged 3 commits into
masterfrom
chromy/2026-06-15-reland-mcp-autofix-referrer
Jun 17, 2026
Merged

Reapply "feat(seer): Attribute autofix referrer to MCP for MCP requests (#117521)"#117735
chromy merged 3 commits into
masterfrom
chromy/2026-06-15-reland-mcp-autofix-referrer

Conversation

@chromy

@chromy chromy commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

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

@chromy chromy requested review from a team as code owners June 15, 2026 20:37
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label 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
@chromy chromy force-pushed the chromy/2026-06-15-reland-mcp-autofix-referrer branch from 3d3f3d6 to a15326a Compare June 16, 2026 12:45
@chromy chromy enabled auto-merge (squash) June 17, 2026 14:16
@chromy chromy merged commit 2faee57 into master Jun 17, 2026
85 checks passed
@chromy chromy deleted the chromy/2026-06-15-reland-mcp-autofix-referrer branch June 17, 2026 14:34
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants