pg doctor for VS Code
io.github.alaev-dev/pg-doctor
Read-only PostgreSQL diagnostics for AI agents: slow queries, plans, bloat, vacuum, locks, replicas.
client:VS Code
transport:stdio
runtime:oci
Install pg doctor in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "database-url",
"description": "DATABASE_URL",
"password": true
}
],
"servers": {
"pg-doctor": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/alaev-dev/pg-doctor:0.3.0"
],
"env": {
"DATABASE_URL": "${input:database-url}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs