Sentry for Claude Code
The official Sentry plugin for Claude Code bundles eight Skills for SDK setup, production debugging, stack traces, releases, and alerts, with a hosted Sentry MCP connection.
Project overview
A production error often needs more context than its message alone. Sentry for Claude Code brings events, stack traces, and local code into one investigation workflow, with additional guides for SDK setup, release tracking, and alerts. This entry covers the official getsentry/plugin-claude distribution generated from sentry-for-ai.
Core capabilities
Investigate an event in code
Fetch an issue by link, ID, or search, inspect stack traces and related context, and use local code to develop a fix. Treat Seer analysis as a hypothesis to verify.
Add the monitoring signals you need
Detect the platform and existing instrumentation before adding errors, tracing, logs, or AI monitoring. The workflow aims to avoid duplicate SDK initialization or exporters.
Configure alert workflows
Create rules and notification actions through the alert workflow API. This involves a token and remote writes; the API is currently labeled Beta.
Installation and usage
Run the documented plugin command from a terminal with Claude Code installed, then authenticate the Sentry MCP connection. Begin with a read-only organization and project listing to verify the connection and access scope.
Let an AI Agent install it
Send this prompt to Codex, Claude Code, or another AI agent that can work with your local environment.
Install Sentry for Claude Code from https://github.com/getsentry/plugin-claude. Read the README, .claude-plugin/plugin.json, and relevant SKILL.md files, verify the source, and run the documented command claude plugin install sentry@claude-plugins-official. Help authenticate the hosted Sentry MCP, then perform a read-only listing of accessible organizations and projects and report the result. Ask before credentials, extra permissions, overwriting files, or production writes. Do not place tokens in chat or project files.- Claude Code with plugin support; the repository does not specify a minimum version.
- Network access to the hosted Sentry MCP and a Sentry account authorized for the intended organization and projects.
- A local project for code changes; separately confirmed token and write access for alert creation.
claude plugin install sentry@claude-plugins-official- 1Install the official plugin
Run claude plugin install sentry@claude-plugins-official in a terminal. Alternatively, run /plugins install sentry@claude-plugins-official inside Claude Code. Choose one method.
- 2Authenticate MCP and check access
Use the Sentry plugin in Claude Code and follow the authentication flow offered by the host. Request a read-only organization and project list and confirm it matches the intended environment. Resolve account or access problems before continuing.
- 3Start with one specific task
After verifying the connection, supply an accessible issue link and request stack-trace and code evidence before any fix or resolution. For SDK setup, make a separate request and review the dependencies, changed files, and data to be sent.
Ask Claude to list only the organizations and projects accessible to the current Sentry account, reporting organization names, project slugs, and connection status. Do not create projects, edit code, or create alerts. A real accessible list or a clear permission error establishes the connection state.
- The manifest connects to https://mcp.sentry.dev/mcp?utm_source=plugin, including a plugin attribution parameter.
- These steps are based on documentation; AgentMatter has not tested installation or functionality.
- Do not paste real event payloads containing customer data into the initial verification prompt.
Use cases
Investigate an error after deployment
Give Claude an issue link, inspect its stack trace, release, and context, then review the local code and proposed fix.
Complete partial monitoring setup
Use the stack-trace workflow to check source maps or debug symbols when events arrive with unreadable frames. Use the releases workflow when deployment context is missing.
Assessment
The distribution manifest, eight-Skill directory, and reviewed debugging procedures support a practical connection between Sentry data and coding tasks. The workflows separate querying, verification, and fixes, and explicitly treat event content as untrusted input. This assessment is based on public documentation and source review, without installation or production use.
Why it may be useful
- The official source-to-distribution relationship and installation commands are traceable.
- Debugging instructions require code evidence and warn against following instructions embedded in event payloads.
What to know first
- The hosted MCP, Sentry account, and AI host jointly determine data visibility; this is not an offline workflow.
- Instrumentation, alerts, and issue status changes can write locally or remotely and need individual review.
- The root license is MIT while Skill metadata declares Apache-2.0; check the relevant files before reuse.
README
Sentry for Claude Code
Overview
The official Sentry plugin for Claude Code bundles eight Skills for SDK setup, production debugging, stack traces, releases, and alerts, with a hosted Sentry MCP connection. Official Sentry for Claude Code plugin
Getting started
- Run the documented plugin command from a terminal with Claude Code installed, then authenticate the Sentry MCP connection. Begin with a read-only organization and project listing to verify the connection and access scope.
- The README provides both an in-session command and a terminal command. The plugin bundles the full Skill library and a hosted MCP connection.
- A few routing Skills stay available while other workflows load on demand from the skills directory.
- Ask Claude to list only the organizations and projects accessible to the current Sentry account, reporting organization names, project slugs, and connection status. Do not create projects, edit code, or create alerts. A real accessible list or a clear permission error establishes the connection state.
Configuration
claude plugin install sentry@claude-plugins-officialRead the complete README on GitHub →