PagerDuty
Let your AI work with PagerDuty: see open incidents with their timeline, alerts and notes, find out who is on call, read services, escalation policies, schedules and teams, acknowledge, resolve, reassign or escalate incidents after confirming with you, and pull incident analytics.
7 天免费 · 无需信用卡 · EU 托管
问 PagerDuty 任何事
通过 AnythingMCP 对 PagerDuty 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。
在 Cloud 上安装 PagerDutyClaude 是 AI,可能会出错。请核对回答。
2 分钟设置
- 1在 cloud.anythingmcp.com 开始免费试用。
- 2在连接器商店点击 PagerDuty。提示时粘贴凭据。
- 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
PagerDuty 指南
面向主流 AI 客户端的逐步设置。
配置 PagerDuty
直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。
PagerDuty
This connector works with one PagerDuty account through the REST API v2 (https://api.pagerduty.com, or https://api.eu.pagerduty.com for accounts in the EU service region): incidents with their notes, timeline and alerts, services, escalation policies, who is on call, schedules, users, teams, priorities and incident analytics. It can acknowledge, resolve, reassign and escalate incidents, change their title, urgency or priority, add notes and open new incidents.
Setup (about 3 minutes)
- Pick the key type. A user token acts as one person and sees what that person sees: in PagerDuty open your avatar, My Profile, User Settings, Create API User Token. A general access key acts for the whole account and needs an admin: Integrations, API Access Keys, Create New API Key. Tick Read-only there for a connector that only reads.
- Paste the key into
PAGERDUTY_API_KEY. It is sent asAuthorization: Token token=<key>together withAccept: application/vnd.pagerduty+json;version=2. - Set
PAGERDUTY_API_HOSTtoapi.pagerduty.com, or toapi.eu.pagerduty.comwhen your PagerDuty address is in the EU region (your account's service region is shown under Account Settings). A key only works on its own region's host. - With a general access key, also set
PAGERDUTY_FROM_EMAILto the email of a PagerDuty user: PagerDuty requires it in theFromheader of every change and records the change under that user. A user token does not need it. - Check the setup with
pagerduty_list_services.pagerduty_get_current_useronly works with a user token; with a general access key PagerDuty answers 400 because the key belongs to no user.
Changes page people and close incidents: confirm first. pagerduty_acknowledge_incident, pagerduty_resolve_incident, pagerduty_reassign_incident, pagerduty_escalate_incident, pagerduty_update_incident, pagerduty_add_incident_note, pagerduty_create_incident change live incidents. Acknowledging stops the paging, resolving closes the incident, reassigning and escalating page other people, creating an incident pages the on-call responders of the service. Before each call, show the user the incident (number and title) and the change and wait for their yes. Nothing here deletes anything. For a read-only setup use a read-only general access key, or switch those tools off.
How to work
- Open incidents:
pagerduty_list_incidentswith statuses ["triggered", "acknowledged"]. Thenpagerduty_get_incident,pagerduty_list_incident_log_entries(timeline),pagerduty_list_incident_alerts(what the monitoring tool sent) andpagerduty_list_incident_notes. - Who is on call now:
pagerduty_list_oncallswithout dates; for a team's schedulepagerduty_list_schedulesthenpagerduty_get_schedule. Escalation levels:pagerduty_list_escalation_policiesandpagerduty_get_escalation_policy. - Directory:
pagerduty_list_services,pagerduty_get_service,pagerduty_list_users,pagerduty_get_user,pagerduty_list_teams,pagerduty_list_priorities. - Acting:
pagerduty_acknowledge_incident,pagerduty_resolve_incident,pagerduty_reassign_incident(to a user id),pagerduty_escalate_incident(to a level),pagerduty_update_incident(title, urgency, priority by name),pagerduty_add_incident_note,pagerduty_create_incident(on a service). - Reporting:
pagerduty_get_incident_analytics(per incident) andpagerduty_get_incident_metrics(totals, per day, week or month). Both need a PagerDuty plan that includes Analytics, and a user token must filter by service_ids or team_ids.
Ids and dates: ids are short strings such as PT4KHLK; the incident number (#1234) is not an id. Dates are ISO 8601. pagerduty_list_incidents covers the last 30 days unless you pass since and until (at most 6 months apart) or date_range all.
Paging: lists take limit (up to 100) and offset; while the answer has more: true, call again with offset + limit. Analytics pages with starting_after.
Common errors
- 401: the key is wrong, was deleted, or belongs to the other region's host.
- 400 with "From": a general access key made a change without
PAGERDUTY_FROM_EMAIL, or the email is not a user of the account. - 400 on
pagerduty_get_current_user: the key is a general access key. - 403: a read-only key tried a change, the user's role does not allow it, or the plan lacks the feature (teams, analytics).
- 404: no such id on this account. 429: too many requests; wait and retry.
Out of scope here: the Events API (sending alerts with an integration's routing key is what monitoring tools do, on a separate host with a separate key; pagerduty_create_incident covers opening an incident by hand), creating or changing services, schedules, escalation policies and users, status pages, incident workflows, webhooks and all deletes.