Sentry OpenCode Debugging
Triage a production error from Sentry using the hosted MCP
(https://mcp.sentry.dev/mcp via OAuth) and The Debugger's five-step protocol.
Portal setup: docs/portals/sentry.md.
Steps
-
Verify access — ask
What organizations do I have access to in Sentry?- If auth fails, re-run
opencode mcp auth sentryand retry once
- If auth fails, re-run
-
Search by impact —
search_issuesfiltered by time range, sorted by impact- Prefer issues affecting the most users first
- Example: issues from the last week affecting more than 10 users
-
Read details —
get_issue_detailsfor the full stack trace, events, release tag- Correlate the
releasetag withgit logfor that tag - State the exact error, file, and line before moving on
- Correlate the
-
Targeted fix — apply the five-step protocol (reproduce → hypothesize → test → fix at root cause)
-
Systemic? escalate to Seer — check the escalation criteria in
docs/portals/sentry.md("Seer escalation criteria"); if met, runbegin_seer_issue_fixand record the plan link in the PR description -
Regression test — write a test that fails on unfixed code and passes on fixed code;
document the root cause in the PR description
Notes
- Scoped to issue/PR reads and comment writes (
issues: writecovers issue comments in GHA); sibling templates still useread-all(migrate them separately if the Society adopts least-privilege frontmatter) - Does not modify the
src/portals/runtime — MCP tools only - If the hosted endpoint is unreachable, fall back to the legacy npx stdio config in
docs/portals/sentry.md - Flags security-relevant errors (auth failures, injection attempts) for The Auditor