pgleash for Gemini CLI
io.github.mufasil/pgleash
Postgres proxy for AI agents: read-only by default, blocks DROP and unbounded DELETE, caps rows.
client:Gemini CLI
transport:stdio
runtime:npm
Install pgleash in Gemini CLI
~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json
{
"mcpServers": {
"pgleash": {
"command": "npx",
"args": [
"-y",
"pgleash"
],
"env": {
"PGLEASH_UPSTREAM": "<PGLEASH_UPSTREAM>"
}
}
}
}
Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs