Skip to content
Gemini CLI

threat rules for Gemini CLI

io.github.guardbee/threat-rules

GuardBee MCP bridge to Agent Threat Rules (ATR) for runtime agent/MCP threat detection

client:Gemini CLI transport:stdio runtime:npm

Install threat rules in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

{
  "mcpServers": {
    "threat-rules": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-threat-rules"
      ]
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

threat rules in other clients