Repository navigation
Add a first-party Sentry plugin behind the sentryPlugin flag (851-4395) - #1480
Merged
Merged
Conversation
…nts for bots (851-4395) Sentry is now a bundled first-party plugin and replaces io.sentry/mcp in the catalog. Existing installs of the remote entry keep working as they are. Sign-in is Sentry OAuth with the build's installed client (CODEVISOR_SENTRY_OAUTH_CLIENT_JSON, or the dev secrets file), returning through the existing Cloud callback. A Sentry sign-in reaches every organization the person belongs to, so one account covers all of them. After the token exchange Codevisor now sends codevisor/account/check with the new token, and a plugin can return routeKeys; Sentry returns its organization ids and names the account by email. Cloud routes one inbox by several keys (inbox_route is keyed by inbox, route and key; the route endpoint takes keys and still accepts key). Tools are 56 of Sentry's own MCP tools, snapshotted from getsentry/sentry-mcp (refresh with bun run tools:snapshot) and forwarded to mcp.sentry.dev with the person's token as Sentry-Bearer. Left out: the admin tools that change alert rules, monitors, teams and project settings, get_alert_options, the tools about Sentry's MCP server itself, and the deprecated aliases. A skill teaches the find, read the stack trace, fix, resolve-in-next-release loop. Events: issue.created, issue.regressed, issue.escalating and issue.assigned are polled every 30 seconds for every organization, reading issue details only when something changed. Organizations that install the Codevisor integration also get them through /hooks/push/sentry within seconds, plus comment.created and alert.fired. Cloud checks Sentry-Hook-Signature with SENTRY_WEBHOOK_SECRET, records which organization each installation belongs to, and relays only ids (and an alert's name and status); each machine reads the issue with its own token. Both paths use the same event ids, so Codevisor delivers each once. Adds the Sentry docs page, the deploy secret sync, and getsentry/sentry-mcp as a reference repo. CODEVISOR_SENTRY_URL and CODEVISOR_SENTRY_MCP_URL point the plugin at another Sentry, which the tophat used for a fake one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The first-party Sentry plugin now shows in Browse Plugins only for people who turn on Sentry Plugin in Settings › Developer › Experimental Features. Sentry's own MCP server (io.sentry/mcp) is back in the catalog for everyone else. A first-party plugin can name the catalog entry it replaces (`replaces` in its Codevisor metadata). While the replacement is offered, the replaced entry is hidden from browsing and describing, so people with the flag on see one Sentry. Installed copies of either keep working. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Part of 851-4395.
Adds a first-party Sentry plugin (
plugins/sentry), behind thesentryPluginfeature flag (Settings › Developer › Experimental Features).CODEVISOR_SENTRY_OAUTH_CLIENT_JSON), returning through the existing Cloud callback. One account covers every org the person belongs to. After an OAuth sign-in, Codevisor now sendscodevisor/account/checkwith the new token, and a plugin can returnrouteKeys, so Cloud can route one inbox by several keys (newinbox_routekey, migration 0013).Sentry-Bearer. Admin tools that change alerts, monitors, teams and project settings are left out.issue.created,issue.regressed,issue.escalatingandissue.assignedare polled every 30 s for everyone. Orgs that install the Codevisor integration also get them, pluscomment.createdandalert.fired, within seconds through/hooks/push/sentry. Cloud checks the signature withSENTRY_WEBHOOK_SECRET, records each installation's org, and relays only ids plus an alert's name and status.io.sentry/mcpstays for everyone without the flag. A first-party plugin can now name the entry itreplaces, which is hidden while the replacement is offered./docs/plugins/sentry.Tophat: against a fake Sentry on the dev app, sign-in, tools, and a bot waking on a new issue by polling (~7 s) and by a signed webhook through local Cloud (~0.5 s) all worked. Sign-in against live sentry.io wasn't completed: a dev instance can't relay the callback to another machine. The flag change itself is covered by route tests and wasn't re-tophatted in the app.
🤖 Generated with Claude Code