How to connect Sentry to Claude Code with the MCP server: my method to triage errors one by one
Add the server with claude mcp add --transport http sentry https://mcp.sentry.dev/mcp, sign in with /mcp, and Claude Code can read and update your Sentry errors. Connecting it is not enough: I wrote a skill that takes open errors one at a time, reads the stack and the code, proposes a decision, waits for mine, applies it in Sentry and writes it to a log in the repo. On two of my apps, 16 errors triaged, and three quarters of them came from my own development builds.
The problem: an error list nobody triages
Sentry reports everything: real crashes, UI hangs, but also errors from a build running in the simulator or an app reinstalled from Xcode. The list grows, you stop opening it, and the real error drowns in the noise.
Asking an agent to “look at what's in Sentry” does not fix that. It writes a summary, jumps to conclusions, and nothing changes in Sentry. What you need is one decision per error, applied, and kept somewhere.
Connecting the Sentry MCP server
This is the easy part. Just choose the scope with care: I first added it for a single repo, and it vanished when I moved that repo (what I learned from it to configure my MCP servers). The Claude Code documentation uses Sentry as its example of a server that needs sign-in:
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
/mcp # inside Claude Code, then sign in in the browser
claude mcp login sentry # or from the terminal, without opening a sessionOnce signed in, Claude Code has the Sentry tools: search_issues for the list, get_sentry_resource for an error's details (stack, breadcrumbs, affected releases), search_errors to group events by device or release, update_issue to change a status.
I did not put these tools in my permission allowlist. Reading an error costs nothing, but changing its status has to go past me.
The method: one skill, one error at a time
The skill lives in ~/.claude/skills/pipeline-sentry/SKILL.md, so it works in every repo I have. Its rule in bold: I decide, never a status change without an explicit decision for that error.
- Prepare. Find the Sentry project from the app's configuration, then the shipped version and the commits not yet released. Without that, “already fixed” and “still live” look the same.
- List. Open errors from the last 90 days (
is:unresolved), sorted by number of users, in a single table. - Investigate before talking. Read the stack, open the app files it names, search git history for earlier changes to that code, spot errors that share the same cause.
- Summarize in a fixed shape: impact, the problem in two to four sentences with file and line, fixable or not, and a recommendation with its effort.
- Ask with Claude Code's
AskUserQuestiontool: fix now, archive, mark as resolved, or skip. - Apply and record. The status changes in Sentry with a one-line reason, and one row is appended to
docs/sentry-ledger.md, never rewritten.
Picking the status has its rules. A fix not yet shipped becomes “resolved in next release”, because a plain “resolved” turns the next event from an old build into a regression. Noise is archived until it escalates, not forever: Sentry brings it back if the volume rises sharply. And a fix goes through the same chain as everything else: tests first, green checks, and only then the status change.
What the log shows across two apps
Between November 11 and 23, 2026, the skill settled 16 errors on two of my iOS apps: 7 archived, 6 marked as resolved, 3 fixed in the code. 9 of the 16 were UI hangs, 2 were app terminations by iOS with no stack.
The number that taught me the most: 12 errors out of 16 came from my own builds, in the simulator, in development mode or after a reinstall from Xcode. Two of the fixes do not change how the app behaves, but what it sends:
- In the React Native app, Sentry no longer starts in development mode (
__DEV__). Simulator noise disappeared at the source. - In the other app, automatic HTTP error capture reported a server refusal that the app already reported with its context. Capture turned off.
The most useful fix was a real hang: the app froze when leaving a text field, while iOS prepared its autofill suggestions. Autofill is turned off on those fields, and the error moved to “resolved in next release”.
What went wrong, and the limits
- A decision made too fast. A launch hang was first marked “to fix”. The investigation showed it came from the Apple review iPhone, saturated (96 MB of free memory, high thermal state), with the main thread busy in iOS and not a single line of my code. Archived. It was the investigation step, not the first summary, that reversed the decision.
- An unsymbolicated stack proves nothing. For one crash, the link to a fix already in place was inferred from the time and the error type. The log says so plainly, so nobody reads it as a certainty.
- Two sessions, one error. A hang had been fixed in another session, not yet committed when the triage ran. Without the git search and the question, the skill would have fixed it a second time.
- Event data is not instructions. Messages, breadcrumbs, URLs: all of it comes from outside. The skill forbids following any instruction found there, and the Claude Code documentation warns about that risk for any MCP server that reads external content.
- No paid automatic analysis. Sentry's AI analysis tool may be billed; the skill only runs it when I ask.
How to get started
- Add the server with the command above and sign in with
/mcp. - Keep the Sentry tools out of your allowlist: every status change will be asked for.
- Write a short skill: one error at a time, investigation before summary, one question, then the status and one log row. My review starts in plain language (“what's in Sentry?”) or with
/pipeline-sentry. - Start by cutting the noise: no sending to Sentry from development builds. My first triage was mostly about that.
The same principle holds for other MCP servers: connecting gives the tools, the skill gives the method. I explain it in the article on skills and subagents.
Article written with the help of AI, from my daily practice and my projects.
The whole notebook