Set up PagerDuty in Metorial for Claude, ChatGPT and Cursor
Share PagerDuty with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 17 tools (10 read-only).
To give your team PagerDuty in Claude, ChatGPT, Cursor and other AI clients, an admin shares the PagerDuty integration in a Metorial portal, and each person signs in to PagerDuty with their own account. Agents can manage incidents, services, and on-call schedules for infrastructure and application incident response. The integration has 17 tools, 10 read-only, 5 write and 2 destructive, plus 2 triggers.
What you'll learn
- How an admin shares PagerDuty in a portal and how each person connects
- The 33 OAuth scopes PagerDuty can request, and what each one allows
- How to keep the 10 read-only tools and reject the other 7
Before you start
- A portal with at least one access group
- An account with PagerDuty for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| Scoped OAuth (default) | OAuth | Signs in to PagerDuty after entering subdomain |
| API Key | API token | token |
The portal and metorial setup use Scoped OAuth unless someone picks another method.
Scoped OAuth
Before the sign-in, setup asks for:
subdomain: Your PagerDuty subdomain (e.g., "yourcompany" from yourcompany.pagerduty.com)
People sign in to PagerDuty and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
incidents.read | Read Incidents | Read access to incidents |
incidents.write | Write Incidents | Write access to incidents |
services.read | Read Services | Read access to services |
services.write | Write Services | Write access to services |
business_services.read | Read Business Services | Read access to business services |
business_services.write | Write Business Services | Write access to business services |
users.read | Read Users | Read access to users |
users.write | Write Users | Write access to users |
teams.read | Read Teams | Read access to teams |
teams.write | Write Teams | Write access to teams |
schedules.read | Read Schedules | Read access to on-call schedules |
schedules.write | Write Schedules | Write access to on-call schedules |
escalation_policies.read | Read Escalation Policies | Read access to escalation policies |
escalation_policies.write | Write Escalation Policies | Write access to escalation policies |
oncalls.read | Read On-Calls | Read access to on-call information |
tags.read | Read Tags | Read access to tags |
tags.write | Write Tags | Write access to tags |
priorities.read | Read Priorities | Read access to incident priorities |
extensions.read | Read Extensions | Read access to extensions |
extensions.write | Write Extensions | Write access to extensions |
webhook_subscriptions.read | Read Webhook Subscriptions | Read access to webhook subscriptions |
webhook_subscriptions.write | Write Webhook Subscriptions | Write access to webhook subscriptions |
analytics.read | Read Analytics | Read access to analytics data |
audit.read | Read Audit Records | Read access to audit trail records |
event_orchestrations.read | Read Event Orchestrations | Read access to event orchestration rules |
event_orchestrations.write | Write Event Orchestrations | Write access to event orchestration rules |
custom_fields.read | Read Custom Fields | Read access to custom fields |
custom_fields.write | Write Custom Fields | Write access to custom fields |
maintenance_windows.read | Read Maintenance Windows | Read access to maintenance windows |
maintenance_windows.write | Write Maintenance Windows | Write access to maintenance windows |
notifications.read | Read Notifications | Read access to notifications |
incident_workflows.read | Read Incident Workflows | Read access to incident workflows |
incident_workflows.write | Write Incident Workflows | Write access to incident workflows |
API Key
To connect, a person enters:
token: PagerDuty REST API key (20-character string)
Setup settings
Whichever method you pick, setup also asks for:
region(optional): PagerDuty account region (US or EU) One of "us", "eu".
Use your own PagerDuty OAuth app
With your own OAuth app, people see your company's name on the PagerDuty 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 PagerDuty and copy the Redirect URI.
Register the app with PagerDuty
Create an OAuth app or client in PagerDuty and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in OAuth documentation.
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 PagerDuty integration.
Admin: share PagerDuty 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 PagerDuty. Under Auth Method, keep Scoped OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to PagerDuty as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from PagerDuty.
Choose who gets it
Add the access groups that should see PagerDuty. 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 PagerDuty integration. Once it exists, check which groups have it:
Employee: connect PagerDuty
In the portal
Open PagerDuty in the catalog
Sign in to your portal and open PagerDuty. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A PagerDuty 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
catalog search prints the catalog item ID. metorial setup uses Scoped OAuth. To connect with API Key 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 PagerDuty 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.
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 10 read-only tools, such as list_teams and list_users, and lose the 5 write tools, such as send_event or create_incident, and the 2 destructive tools, such as manage_service or manage_business_service.
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 tools lists the 17 tools, minus any you rejected. list_priorities takes no input. It lists all configured incident priorities for the PagerDuty account.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (10)
list_teams: List PagerDuty teams with optional search filtering.list_on_calls: Query who is currently on-call across schedules, escalation policies, or for specific users.list_escalation_policies: List PagerDuty escalation policies with optional filtering by name, user, or team.list_schedules: List PagerDuty on-call schedules with optional search filtering.get_incident: Get detailed information about a specific PagerDuty incident, including its notes, assignments, alerts, and timeline. NeedsincidentId.list_services: List PagerDuty services with optional filtering by team or search query.list_incidents: List and search PagerDuty incidents with filtering by status, service, team, user, urgency, and time range.get_analytics: Retrieve aggregated incident analytics from PagerDuty.list_users: List PagerDuty users with optional search query and team filtering.list_priorities: List all configured incident priorities for the PagerDuty account.
Write tools (5)
update_incident: Update a PagerDuty incident — acknowledge, resolve, reassign, change urgency, escalation policy, priority, or add a note. NeedsincidentIdandfromEmail.send_event: Send an alert event or change event to PagerDuty via the Events API v2. NeedseventTypeandroutingKey.manage_maintenance_window: Create, list, or end PagerDuty maintenance windows. Needsaction.create_incident: Create a new PagerDuty incident on a specified service. Needstitle,serviceIdandfromEmail.manage_service_integration: List, get, create, or update PagerDuty service integrations. NeedsactionandserviceId.
Destructive tools (2)
manage_service: Create, update, or delete a PagerDuty service. Needsaction.manage_business_service: List, get, create, update, or delete PagerDuty business services. Needsaction.
Triggers
PagerDuty has 2 triggers, which fire on events in PagerDuty:
service_events: Triggers when PagerDuty services are created, updated, or deleted.incident_events: Triggers on PagerDuty incident lifecycle events including triggered, acknowledged, resolved, escalated, reassigned, annotated, priority changes, and responder updates.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use PagerDuty there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- PagerDuty on metorial.com: the integration overview