MetorialDocs

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

Sign-in methods

MethodTypeWhat a person provides
Scoped OAuth (default)OAuthSigns in to PagerDuty after entering subdomain
API KeyAPI tokentoken

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:

ScopeNameWhat it allows
incidents.readRead IncidentsRead access to incidents
incidents.writeWrite IncidentsWrite access to incidents
services.readRead ServicesRead access to services
services.writeWrite ServicesWrite access to services
business_services.readRead Business ServicesRead access to business services
business_services.writeWrite Business ServicesWrite access to business services
users.readRead UsersRead access to users
users.writeWrite UsersWrite access to users
teams.readRead TeamsRead access to teams
teams.writeWrite TeamsWrite access to teams
schedules.readRead SchedulesRead access to on-call schedules
schedules.writeWrite SchedulesWrite access to on-call schedules
escalation_policies.readRead Escalation PoliciesRead access to escalation policies
escalation_policies.writeWrite Escalation PoliciesWrite access to escalation policies
oncalls.readRead On-CallsRead access to on-call information
tags.readRead TagsRead access to tags
tags.writeWrite TagsWrite access to tags
priorities.readRead PrioritiesRead access to incident priorities
extensions.readRead ExtensionsRead access to extensions
extensions.writeWrite ExtensionsWrite access to extensions
webhook_subscriptions.readRead Webhook SubscriptionsRead access to webhook subscriptions
webhook_subscriptions.writeWrite Webhook SubscriptionsWrite access to webhook subscriptions
analytics.readRead AnalyticsRead access to analytics data
audit.readRead Audit RecordsRead access to audit trail records
event_orchestrations.readRead Event OrchestrationsRead access to event orchestration rules
event_orchestrations.writeWrite Event OrchestrationsWrite access to event orchestration rules
custom_fields.readRead Custom FieldsRead access to custom fields
custom_fields.writeWrite Custom FieldsWrite access to custom fields
maintenance_windows.readRead Maintenance WindowsRead access to maintenance windows
maintenance_windows.writeWrite Maintenance WindowsWrite access to maintenance windows
notifications.readRead NotificationsRead access to notifications
incident_workflows.readRead Incident WorkflowsRead access to incident workflows
incident_workflows.writeWrite Incident WorkflowsWrite 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:

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

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

metorial catalog search pagerduty
metorial setup <catalog-item-id>

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.

metorial list pagerduty
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 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 list pagerduty
metorial tools <integration-id>
metorial call <integration-id> list_priorities -d '{}'

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. Needs incidentId.
  • 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. Needs incidentId and fromEmail.
  • send_event: Send an alert event or change event to PagerDuty via the Events API v2. Needs eventType and routingKey.
  • manage_maintenance_window: Create, list, or end PagerDuty maintenance windows. Needs action.
  • create_incident: Create a new PagerDuty incident on a specified service. Needs title, serviceId and fromEmail.
  • manage_service_integration: List, get, create, or update PagerDuty service integrations. Needs action and serviceId.

Destructive tools (2)

  • manage_service: Create, update, or delete a PagerDuty service. Needs action.
  • manage_business_service: List, get, create, update, or delete PagerDuty business services. Needs action.

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