[No QA] Add Sentry MCP server for Claude Code integration#86231
Conversation
grgia
left a comment
There was a problem hiding this comment.
LGTM given it's only accessible to those with sentry access
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
| | `mcp__sentry__search_issue_events` | Get individual events for a known issue ID | | ||
| | `mcp__sentry__get_issue_tag_values` | Inspect tag distributions (e.g. device, version) on an issue | | ||
| | `mcp__sentry__get_sentry_resource` | Fetch a specific Sentry resource by URL/ID | | ||
|
|
There was a problem hiding this comment.
mcp__sentry__get_sentry_resource is listed in this table but is absent from the allowedTools list in .claude/settings.json. Was that intentional?
| "mcp__sentry__search_issue_events", | ||
| "mcp__sentry__search_issues", | ||
| "mcp__sentry__whoami" | ||
| ] |
There was a problem hiding this comment.
Several tools are pre-approved here but don't appear in the SKILL.md reference table: find_organizations, find_projects, find_teams, get_doc, search_docs, get_event_attachment, get_trace_details, whoami. Were these intentionally left out of the docs?
|
🚧 @grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.3.49-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.3.49-2 🚀
|
Explanation of Change
Adds the Sentry MCP server to the project's Claude Code configuration. This gives engineers using Claude Code direct access to Sentry — they can search issues, inspect events and traces, and run AI-assisted analysis (Seer) without leaving the editor.
Three files changed:
.mcp.json— registers the Sentry MCP server via its OAuth remote HTTP endpoint (https://mcp.sentry.dev/mcp). No API token setup required; Claude Code will prompt for a one-time browser OAuth login on first use..claude/settings.json— adds allmcp__sentry__*tool permissions to the allow list so Claude Code can call them without prompting.CLAUDE.md— documents the Sentry MCP setup, how OAuth works, and example use cases for engineers onboarding.This is a dev-tooling-only change. It has no effect on the application runtime, tests, or CI.
Fixed Issues
$ #86314
PROPOSAL:
Tests
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari