fix(plugins): attribute all MCP configs via X-Sentry-Utm-Source - #318
Open
sentry-junior[bot] wants to merge 5 commits into
Open
fix(plugins): attribute all MCP configs via X-Sentry-Utm-Source#318sentry-junior[bot] wants to merge 5 commits into
sentry-junior[bot] wants to merge 5 commits into
Conversation
Drop ?utm_source=plugin from the Claude plugin MCP URL so OAuth resource discovery stays query-free, and send attribution through X-Sentry-Utm-Source instead. Document the dual tagging paths. Co-Authored-By: David Cramer <david@sentry.io> Co-Authored-By: Evan Purkhiser <evan.purkhiser@sentry.io>
Move Cursor/Codex/Grok off ?utm_source=plugin onto the same bare URL + header form as Claude, now that every harness supports custom MCP headers. Keep docs noting legacy query-param fallback. Co-Authored-By: Evan Purkhiser <evan.purkhiser@sentry.io> Co-Authored-By: Evan Purkhiser <evan.purkhiser@sentry.io> Co-Authored-By: David Cramer <david@sentry.io>
evanpurkhiser
approved these changes
Aug 5, 2026
evanpurkhiser
marked this pull request as ready for review
August 5, 2026 16:08
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 12ba9bf. Configure here.
Bugbot caught the backwards-compat paragraph repeated twice under the MCP Server section.
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.

Summary
Move all four plugin MCP configs off
?utm_source=pluginonto barehttps://mcp.sentry.dev/mcp+X-Sentry-Utm-Source: plugin.This keeps OAuth resource indicators query-free while preserving
app.utm_source:pluginattribution (once the companion MCP server change is deployed).Harness header support (verified)
plugin.jsonmcpServersheadersonhttp/sse/wsheaders/headersHelper); plugin manifest schemamcp.jsonheaderson remote HTTP/SSEheaders.mcp.json(frommcp.json)headersmapped to transporthttp_headershttp_headers/env_http_headersin config.toml); plugin JSON parser tests in openai/codexplugin_config_tests.rsaccept"headers":{"X-Plugin":"demo"}; agent-plugins mcp.schema.json definesheaders.mcp.json(frommcp.json)headerson HTTP MCPheaders = { ... }/grok mcp add --header); remote MCP tools also documentheaders/extra_headersChanges
Shared config used by Cursor/Codex/Grok builds:
{ "mcpServers": { "sentry": { "type": "http", "url": "https://mcp.sentry.dev/mcp", "headers": { "X-Sentry-Utm-Source": "plugin" } } } }mcp.json+.mcp.json(kept identical)src/plugins/claude/plugin.json(inline, same shape)AGENTS.md/TELEMETRY.mdupdated for header-first attribution; legacy query-param noted as server fallback onlyBuild wiring unchanged:
mcp.json→mcp.jsonmcp.json→.mcp.jsonplugin.jsononlyCompanion
MCP server header support: getsentry/sentry-mcp#1230
Deploy order
#1230plugin-*developon merge; release to ship to consumers)Checks
X-Sentry-Utm-Source: plugin?utm_source=pluginremaining in plugin MCP configsNotes / risks
#1230is deployed, header-only traffic connects but won’t setapp.utm_source:plugin(still getsapp.client.familyfrom UA)?utm_source=for older configs