# Sentry

<div style={{maxWidth: '720px'}}>
![The Sentry connector in Workspace Settings, for issues, releases and events, with a Connect button](</docs/_next/static/media/sentry-connector.0ib8k_56adgd6.jpg>)
</div>

[Sentry MCP](https://docs.sentry.io/product/sentry-mcp/) lets agents query your Sentry account directly. Agents can look up real errors with stack traces, request data, releases, and user context.

For use cases and example prompts, see [Sentry for AI coding agents](/integrations/sentry).

## What is Sentry? [#what-is-sentry]

[Sentry](https://sentry.io) is an error and performance monitoring tool that captures crashes, stack traces, and slow requests from your app.

## What agents can do [#what-agents-can-do]

Once you connect Sentry, agents can:

- Find recent issues in your Sentry organizations and projects
- Read stack traces and event details
- Compare releases and suspect commits
- Triage issues: assign teammates, resolve, and update status
- Use production error context while fixing bugs

## Setup [#setup]

Go to **Workspace Settings → Connectors** (or a project's **Connectors** page). Click **Add**, search for Sentry, and select it. You can also click **Connect** on the Sentry card, or **Connect another** to add another account.

### Step 1: who the connection is for [#step-1-who-the-connection-is-for]

Choose **Me** or **Workspace** as the owner, then choose which agents can use the connection. The default is **Me**, with **My personal assistants** selected. From a project's **Connectors** page, only **In this project** is selected instead. Enable **Team assistants** or **Agents in projects** separately. Anyone in the workspace can use the connection through the team assistants you pick, and anyone with access to the projects you pick can use it, including in sessions they launch themselves. See [connection options](/docs/integrations/connectors#fill-in-the-connection-details) for what each choice means.

Click **Continue**.

### Step 2: how agents reach Sentry [#step-2-how-agents-reach-sentry]

The second screen has two tabs: **Sentry account** and **Access token**. Pick one.

#### Sentry account [#sentry-account]

This tab is selected by default, and it's the easiest way in — there's no token to create.

Click **Continue to Sentry**. Sentry asks you to approve access, and you can choose the individual permissions to grant on its approval screen. Approve, and you land back on the Connectors page with **Sentry connected**.

Agents then reach Sentry with the access of whoever signed in, so they see exactly the organizations and projects that person can. If you enable **In projects**, anyone with access to those projects can use that account — so sign in with an account whose permissions you're happy to share.

If you change your mind on Sentry's screen, you'll come back with **Sentry connection cancelled** and nothing is saved.

#### Access token [#access-token]

Use this tab if you'd rather not sign agents in as yourself, or you want to hand them a token with narrower permissions.

Generate a token at [sentry.io/settings/account/api/auth-tokens](https://sentry.io/settings/account/api/auth-tokens/).

Recommended scopes for full Sentry MCP compatibility:

```text
org:read, team:read, project:read, project:releases, event:read, team:write, project:write, event:write
```

Paste it into the **Sentry Access Token** field and click **Connect Sentry**.

## Reconnecting and disconnecting [#reconnecting-and-disconnecting]

If an account connection stops working, the Connectors page shows a **Reconnect needed** badge on it, and agents run without Sentry.

To fix it, click **Manage** next to the connection, then **Reconnect Sentry**, and sign in again. You can only reconnect a personal connection you own; for someone else's, Superconductor tells you who to ask.

A pasted access token that Sentry stops accepting doesn't show **Reconnect needed**. Agents' Sentry calls fail until you paste a new token under **Manage** and click its **Save** button.

**Disconnect** also revokes Superconductor's access at Sentry. If Sentry doesn't confirm the revocation, Superconductor tells you to remove Superconductor from your Sentry authorized apps to finish the job.

## When to use it [#when-to-use-it]

Ask agents to use Sentry when a ticket references a production error, stack trace, crash, affected user, or release regression.