VS Code
VS Code supports MCP servers in Agent mode (GitHub Copilot Chat). This guide shows how to configure the PagerDuty MCP Server.
Configurationโ
Add to your VS Code settings.json (Cmd+Shift+P โ Open User Settings (JSON)):
{
"mcp": {
"servers": {
"pagerduty": {
"type": "stdio",
"command": "uvx",
"args": ["pagerduty-mcp"],
"env": {
"PAGERDUTY_USER_API_KEY": "${input:pagerdutapitoken}"
}
}
},
"inputs": [
{
"id": "pagerdutapitoken",
"type": "promptString",
"description": "PagerDuty User API Token",
"password": true
}
]
}
}
The ${input:pagerdutapitoken} syntax prompts you for the token securely โ it is never stored in plaintext.
With Write Toolsโ
{
"mcp": {
"servers": {
"pagerduty": {
"type": "stdio",
"command": "uvx",
"args": ["pagerduty-mcp", "--enable-write-tools"],
"env": {
"PAGERDUTY_USER_API_KEY": "${input:pagerdutapitoken}"
}
}
}
}
}
Verifyโ
Open the Chat panel in VS Code โ switch to Agent mode โ you should see PagerDuty tools listed.