MCP Memory Gateway for Gemini CLI
io.github.igorganapolsky/mcp-memory-gateway
Pre-action gates that block AI agents from repeating known mistakes.
client:Gemini CLI
transport:stdio
runtime:npm
Install MCP Memory Gateway in Gemini CLI
~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json
{
"mcpServers": {
"mcp-memory-gateway": {
"command": "npx",
"args": [
"-y",
"mcp-memory-gateway"
]
}
}
}
Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs