Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Clr Pagerduty

БесплатноНе проверен

MCP server for PagerDuty incident management

GitHubEmbed

Описание

MCP server for PagerDuty incident management

README

PyPI License: MIT Python 3.11+

MCP server for PagerDuty — manage incidents, on-call schedules, and services through AI assistants like Claude.

Features

  • Incident management — list, view, acknowledge, and resolve incidents
  • On-call visibility — see who is currently on call across all schedules
  • Service overview — list all PagerDuty services and their status
  • Schedule management — list on-call schedules with time zones
  • Escalation policies — view escalation policies and loop counts
  • Credential file support — load credentials from ~/.config/pagerduty/credentials.json
  • Write safety — write operations require PAGERDUTY_EMAIL for attribution via From header

Installation

pip install clr-pagerduty-mcp
# or
uvx clr-pagerduty-mcp

Configuration

Preferred: Configuration file at ~/.config/pagerduty/credentials.json (chmod 600):

{
  "api_key": "u+your-pagerduty-user-api-key",
  "email": "[email protected]"
}

Legacy format also supported (token instead of api_key):

{
  "token": "u+your-pagerduty-user-api-key",
  "email": "[email protected]"
}

Get API key: PagerDuty → My Profile → User Settings → API Access → Create New API Key

Note: This must be a User API Token (starts with u+), not a general access key.

Alternative: Environment variables are also supported:

Variable Description Example
PAGERDUTY_API_KEY PagerDuty User API token u+yourtoken
PAGERDUTY_EMAIL User email (required for write ops) [email protected]

Optional:

Variable Description Default
PD_READ_ONLY Run in read-only mode false
PAGERDUTY_TRANSPORT Transport protocol (stdio or http) stdio
PAGERDUTY_LOG_LEVEL Log level INFO

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "pagerduty": {
      "command": "uvx",
      "args": ["clr-pagerduty-mcp"]
    }
  }
}

Claude Code

Add via CLI:

claude mcp add pagerduty -- uvx clr-pagerduty-mcp

Or add to your .mcp.json:

{
  "pagerduty": {
    "command": "uvx",
    "args": ["clr-pagerduty-mcp"]
  }
}

VS Code

Add to your VS Code settings or .vscode/mcp.json:

{
  "mcp": {
    "servers": {
      "pagerduty": {
        "command": "uvx",
        "args": ["clr-pagerduty-mcp"]
      }
    }
  }
}

Note: Configuration is read from ~/.config/pagerduty/credentials.json or environment variables. No need to specify credentials in MCP config files.

HTTP Transport

To run as a standalone HTTP server:

clr-pagerduty-mcp --transport http --host 0.0.0.0 --port 8000

Tools

Incidents

Tool Description Parameters
pd_list_incidents List incidents with optional filters statuses?, urgency?, limit?
pd_get_incident Get full detail for a specific incident incident_id
pd_acknowledge_incident Acknowledge a triggered incident incident_id
pd_resolve_incident Resolve an incident incident_id

Incident filter values:

Parameter Accepted values Default
statuses Comma-separated: triggered, acknowledged, resolved triggered,acknowledged
urgency high, low all
limit 1–100 25

On-Call

Tool Description
pd_list_oncalls List who is currently on call across all schedules

Services

Tool Description
pd_list_services List all PagerDuty services with status

Schedules

Tool Description
pd_list_schedules List all on-call schedules with time zones

Escalation Policies

Tool Description
pd_list_escalation_policies List all escalation policies with loop counts

Example Usage

Once connected, you can ask your AI assistant things like:

  • "Are there any active incidents?"
  • "Who is on call right now?"
  • "Show me the details for incident PABC123"
  • "Acknowledge incident PABC123"
  • "Resolve incident PABC123"
  • "List all PagerDuty services"
  • "What are our on-call schedules?"
  • "Show me the escalation policies"

Safety

All pd_list_* and pd_get_* tools are read-only and safe to call at any time.

pd_acknowledge_incident and pd_resolve_incident are write operations — they change incident status in PagerDuty. These require PAGERDUTY_EMAIL to be configured so PagerDuty can attribute the action. Without it, write tools return an error instead of silently failing.

Technical Notes

  • API: PagerDuty REST API v2 at https://api.pagerduty.com
  • Auth: Token-based via Authorization: Token token=<key> header
  • Write attribution: PagerDuty requires a From email header for PUT requests
  • HTTP client: httpx with 15-second timeout
  • Transport: stdio (default) or HTTP via --transport http

Development

git clone https://github.com/clearminds/clr-pagerduty-mcp.git
cd clr-pagerduty-mcp
uv sync
uv run clr-pagerduty-mcp

License

MIT — see LICENSE for details.

from github.com/clearminds/clr-pagerduty-mcp

Установить Clr Pagerduty в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install clr-pagerduty

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add clr-pagerduty -- uvx clr-pagerduty-mcp

Пошаговые гайды: как установить Clr Pagerduty

FAQ

Clr Pagerduty MCP бесплатный?

Да, Clr Pagerduty MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Clr Pagerduty?

Нет, Clr Pagerduty работает без API-ключей и переменных окружения.

Clr Pagerduty — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Clr Pagerduty в Claude Desktop, Claude Code или Cursor?

Открой Clr Pagerduty на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Clr Pagerduty with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development