> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Sentry in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/sentry
Last updated: 2026-11-24

Share Sentry with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or auth token sign-in, 15 tools (8 read-only).

---

To give your team Sentry in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Sentry integration in a Metorial portal, and each person signs in to Sentry with their own account. Agents can track, manage, and resolve application errors and performance issues. The integration has 15 tools, 8 read-only, 3 write and 4 destructive, plus 5 triggers.

**What you will learn**

- How an admin shares Sentry in a portal and how each person connects
- The 16 OAuth scopes Sentry can request, and what each one allows
- How to keep the 8 read-only tools and reject the other 7

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Sentry for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **Auth Token** | API token | `token` |
| **OAuth** (default) | OAuth | Signs in to Sentry |

The portal and `metorial setup` use **OAuth** unless someone picks another method.

### Auth Token

To connect, a person enters:

- `token`: Sentry Auth Token (Organization, Internal Integration, or Personal token)

### OAuth

People sign in to Sentry and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `org:read` | Organization Read | Read access to organization data |
| `org:write` | Organization Write | Write access to organization data |
| `org:admin` | Organization Admin | Admin access to organization data |
| `project:read` | Project Read | Read access to project data |
| `project:write` | Project Write | Write access to project data |
| `project:admin` | Project Admin | Admin access to project data |
| `project:releases` | Project Releases | Access to release data for projects and organizations |
| `team:read` | Team Read | Read access to team data |
| `team:write` | Team Write | Write access to team data |
| `team:admin` | Team Admin | Admin access to team data |
| `member:read` | Member Read | Read access to member data |
| `member:write` | Member Write | Write access to member data |
| `member:admin` | Member Admin | Admin access to member data |
| `event:read` | Event Read | Read access to issues and events |
| `event:write` | Event Write | Write access to issues and events |
| `event:admin` | Event Admin | Admin access to issues and events |

### Setup settings

Whichever method you pick, setup also asks for:

- `organizationSlug`: The slug of the Sentry organization to interact with
- `region` (optional): The Sentry data region (US or EU/DE) One of "us", "de".

## Use your own Sentry OAuth app

With your own OAuth app, people see your company's name on the Sentry consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose Sentry and copy the **Redirect URI**.

2. **Register the app with Sentry**

   Sentry registers OAuth apps itself. Email Sentry's partnership team at `partnership-platform@sentry.io` with a client name, the redirect URI from Metorial, your domain as an allowed origin, a home page URL, a privacy policy URL, a terms URL and the scopes you need. Sentry sends back the client ID and secret.

   Until then, people can connect with the **Auth Token** method instead: an organization token, an internal integration token or a personal token created in Sentry. People can revoke the app at any time under **Settings**, **Account**, **Authorized Applications** in Sentry.

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the Sentry integration.

## Admin: share Sentry in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Sentry. Under **Auth Method**, keep **OAuth** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to Sentry as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Sentry.

4. **Choose who gets it**

   Add the access groups that should see Sentry. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Sentry integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search sentry
```

## Employee: connect Sentry

### In the portal

1. **Open Sentry in the catalog**

   Sign in to your portal and open Sentry. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Sentry sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search sentry
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **OAuth**. To connect with **Auth Token** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Sentry connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list sentry
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 8 read-only tools, such as `get_event` and `get_issue`, and lose the 3 write tools, such as `update_issue` or `manage_release`, and the 4 destructive tools, such as `manage_team` or `manage_monitor`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list sentry
metorial tools <integration-id>
metorial call <integration-id> get_organization -d '{}'
```

`metorial tools` lists the 15 tools, minus any you rejected. `get_organization` takes no input. It retrieves details about the configured Sentry organization, including quotas, settings, features, and member/project counts.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (8)

- `list_teams`: List all teams in the Sentry organization with their members and project assignments.
- `discover_query`: Run an ad-hoc query against Sentry's Discover (Events) interface. Needs `fields`.
- `get_event`: Retrieve a specific error event by ID, or list events for an issue.
- `get_organization`: Retrieve details about the configured Sentry organization, including quotas, settings, features, and member/project counts.
- `list_issues`: Search and list issues in the Sentry organization.
- `list_projects`: List all projects in the Sentry organization.
- `get_issue`: Retrieve detailed information about a specific Sentry issue, including its latest event with stack trace, tags, and contextual data. Needs `issueId`.
- `list_members`: List members of the Sentry organization.

### Write tools (3)

- `manage_issue_comment`: List, create, update, or delete comments (notes) on a Sentry issue. Needs `action` and `issueId`.
- `manage_release`: Create, retrieve, update, or delete a release. Needs `action`.
- `update_issue`: Update a Sentry issue's status, assignment, bookmark state, or other properties. Needs `issueId`.

### Destructive tools (4)

- `manage_team`: Create, update, or delete a team. Needs `action`.
- `manage_monitor`: List, create, update, or delete cron monitors for tracking scheduled jobs. Needs `action`.
- `manage_project`: Create, update, or delete a Sentry project. Needs `action`.
- `manage_alert_rule`: List, create, update, or delete issue alert rules and metric alert rules. Needs `action` and `ruleType`.

## Triggers

Sentry has 5 triggers, which fire on events in Sentry:

- `comment_events`: Triggers when a comment is created, updated, or deleted on a Sentry issue.
- `error_events`: Triggers when a new error event is received by Sentry.
- `installation_events`: Triggers when a Sentry integration is installed or uninstalled by a user.
- `issue_events`: Triggers when an issue is created, resolved, assigned, ignored, or archived in Sentry.
- `alert_events`: Triggers when an issue alert rule fires or a metric alert rule changes state.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Sentry there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Sentry on metorial.com](https://metorial.com/integrations/sentry): the integration overview