PagerDuty Incident リモートMCPを VS Code にMCP接続する方法(設定手順)
PagerDuty のリモートMCPサーバーを VS Code に約1分でMCP接続。OAuth / 401 の問題は先に OAuth 2.1 デバッガーで確認できます。
Streamable HTTPhttps://mcp.pagerduty.com/mcp
Install in Cursor →
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"pagerduty": {
"url": "https://mcp.pagerduty.com/mcp"
}
}
}claude mcp add --transport http pagerduty https://mcp.pagerduty.com/mcp
Install in VS Code →
Or add to .vscode/mcp.json:
{
"servers": {
"pagerduty": {
"type": "http",
"url": "https://mcp.pagerduty.com/mcp"
}
}
}- Open Settings → Connectors (Integrations) → Add Custom Connector.
- Paste the endpoint URL:
https://mcp.pagerduty.com/mcp - Complete the browser OAuth 2.1 login flow when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"pagerduty": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.pagerduty.com/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"pagerduty": {
"serverUrl": "https://mcp.pagerduty.com/mcp"
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"pagerduty": {
"url": "https://mcp.pagerduty.com/mcp"
}
}
}Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.pagerduty] url = "https://mcp.pagerduty.com/mcp"
Add to cline_mcp_settings.json (Cline → MCP Servers → Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"pagerduty": {
"type": "streamableHttp",
"url": "https://mcp.pagerduty.com/mcp"
}
}
}Add to ~/.gemini/settings.json under mcpServers — httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"pagerduty": {
"httpUrl": "https://mcp.pagerduty.com/mcp"
}
}
}接続手順
- MCP 設定を開く — vscode: deeplink でワンクリックインストールするか、プロジェクトルートに
.vscode/mcp.jsonを作成します。 - サーバーを追加 —
{ "servers": { "pagerduty": { "type": "http", "url":https://mcp.pagerduty.com/mcp} } }と記述します。 - 認証を完了 — 初回呼び出し時に PagerDuty の OAuth 認可画面が開きます。許可するとツールが有効になります。
- 検証 — Copilot Chat を再起動して Agent モードでツールを確認します。オンライン Inspector に
https://mcp.pagerduty.com/mcpを貼り付け、initialize と tools/list を実行して接続を確認します。
🧰 ツール一覧(6)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| list_incidents ~71 tok | 🟢 Read | List incidents filtered by status and service. | status: stringserviceId: string |
| get_incident ~57 tok | 🟢 Read | Get incident details including alerts and log entries. | incidentId*: string |
| acknowledge_incident ~51 tok | 🟠 Write | Acknowledge an incident. | incidentId*: string |
| resolve_incident ~68 tok | 🟠 Write | Resolve an incident with a note. | incidentId*: stringresolution: string |
| list_services ~45 tok | 🟢 Read | List PagerDuty services. | query: string |
| get_oncall ~59 tok | 🟢 Read | Get who is currently on call for a schedule or escalation policy. | scheduleId*: string |