MetorialDocs

Set up Sentry in Metorial for Claude, ChatGPT and Cursor

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'll 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

Sign-in methods

MethodTypeWhat a person provides
Auth TokenAPI tokentoken
OAuth (default)OAuthSigns 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:

ScopeNameWhat it allows
org:readOrganization ReadRead access to organization data
org:writeOrganization WriteWrite access to organization data
org:adminOrganization AdminAdmin access to organization data
project:readProject ReadRead access to project data
project:writeProject WriteWrite access to project data
project:adminProject AdminAdmin access to project data
project:releasesProject ReleasesAccess to release data for projects and organizations
team:readTeam ReadRead access to team data
team:writeTeam WriteWrite access to team data
team:adminTeam AdminAdmin access to team data
member:readMember ReadRead access to member data
member:writeMember WriteWrite access to member data
member:adminMember AdminAdmin access to member data
event:readEvent ReadRead access to issues and events
event:writeEvent WriteWrite access to issues and events
event:adminEvent AdminAdmin 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.

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.

Register the app with Sentry

Sentry registers OAuth apps itself. Email Sentry's partnership team at [email protected] 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.

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

Open Shared Resources

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

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.

Limit the tools

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

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:

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

Employee: connect Sentry

In the portal

Open Sentry in the catalog

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

Authenticate

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

Confirm

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

With the CLI

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.

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.

Check it worked

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