prompt-protection for Gemini CLI
io.github.mughalhere/prompt-protection
Scan prompts, tool definitions and model output for injection, and guard agent tool calls.
client:Gemini CLI
transport:stdio
runtime:npm
Install prompt-protection in Gemini CLI
~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json
{
"mcpServers": {
"prompt-protection": {
"command": "npx",
"args": [
"-y",
"prompt-protection"
]
}
}
}
Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs