Gemini CLI MCP setup for rConfig, and the move to Antigravity CLI
Gemini CLI connects to rConfig’s MCP server over Streamable HTTP with a bearer token in a header. Google has started moving users to Antigravity CLI, so check which one your team will be on before you standardise.
Best for: Google-based teams with API key or Code Assist licences, terminal work.
Connect
From the command line:
gemini mcp add --transport http \ --header "Authorization: Bearer YOUR_MCP_TOKEN" \ rconfig https://<your-rconfig-server>/mcpOr in ~/.gemini/settings.json. Gemini CLI uses httpUrl for Streamable HTTP servers; url is for the older SSE transport:
{ "mcpServers": { "rconfig": { "httpUrl": "https://<your-rconfig-server>/mcp", "headers": { "Authorization": "Bearer YOUR_MCP_TOKEN" } } }}The MCP server page is the reference for these settings.
Check it: run /mcp in a session. It shows the connection status and rConfig’s eight tools.
Limit tools and prompts
Two optional keys on the rconfig entry:
includeToolsandexcludeToolschoose which rConfig tools load.excludeToolswins if a tool is in both.trust: trueskips the confirmation prompt for this server’s tools. Every rConfig tool is read-only, so the risk is low, but leave itfalseif the same session has servers that can write.
Things to ask
- Device summary: “Summarise the running config of
ber-core-01from rConfig: routing protocols, VLANs, management access.” - Compliance check: “Using rConfig, which devices in the Edge group fail a policy right now, which policies, and why?”
- What changed: “Diff the last two running-config versions of
ber-edge-02in rConfig and explain the change.”
Related reference
- Connect an AI agent over MCP
- Which AI agents can connect to rConfig?
- Troubleshooting MCP connections
Frequently asked questions
How do I add rConfig to Gemini CLI?
Run gemini mcp add --transport http --header "Authorization: Bearer <token>" rconfig https://<your-rconfig-server>/mcp, or add an mcpServers entry with httpUrl and headers to settings.json. Then run /mcp to check the connection.
Is Gemini CLI still supported?
Google replaced Gemini CLI with Antigravity CLI for unpaid and Google One accounts on 18 June 2026. It still runs with a Gemini API key or a Gemini Code Assist Standard or Enterprise licence.
Should I set trust to true for rConfig?
It removes the confirmation prompt for every rConfig tool call. rConfig's tools are all read-only, so the risk is low, but Google recommends trust only for servers you fully control.