AI and MCP

How to connect Google Antigravity and Gemini CLI to SpendixAI with MCP

Connect Google Antigravity to SpendixAI over Streamable HTTP and OAuth, plus the legacy Gemini CLI command and what changed to Gemini CLI in 2026.

Editorial illustration for How to connect Google Antigravity and Gemini CLI to SpendixAI with MCP

Google changed its command-line coding tool in 2026, so this guide covers two things: the current Antigravity route and the older Gemini CLI route, which still works for some people. Which one applies to you depends on how you sign in to Google's tools.

What happened to Gemini CLI

According to Google's developer blog, Google announced on 19 May 2026 that Gemini CLI and the Gemini Code Assist IDE extensions are being replaced by Antigravity CLI. On 18 June 2026 Gemini CLI stopped serving Google AI Pro and Ultra subscribers and free Gemini Code Assist for individuals. Enterprise customers of Gemini Code Assist Standard and Enterprise were unchanged, and Gemini CLI remains reachable with paid Gemini or Gemini Enterprise Agent Platform API keys.

Connecting Antigravity

SpendixAI is our own product, so we wrote the SpendixAI end of this ourselves and checked Antigravity's MCP page in November 2026. Antigravity accepts remote servers only over Streamable HTTP; the older SSE style and the httpUrl field are not supported.

  1. Copy the server address from Developer → MCP connections in SpendixAI.
  2. Open the MCP configuration. In the app, use Customizations, then Installed, then MCP Servers. In the IDE, use the three-dot menu in the agent panel, then Manage MCP Servers, then View raw config. In the CLI, use the /mcp panel.
  3. Add an mcpServers entry named spendixai with a serverUrl field set to <your SpendixAI server address>. A url field also works.
  4. Save, then click Authenticate beside the server.
  5. Complete sign-in in the browser. On SpendixAI's consent screen, sign in, choose the workspace and select Read only.
  6. If Antigravity shows a field called 'Enter authorization code', paste the code from the browser and choose Submit.

Each Antigravity surface needs its own authentication, so signing in on the app does not sign in the CLI. The global file is described as living in the .gemini folder under config, and a workspace file lives in an .agents folder inside the workspace. One older Google page named a different folder, so use the app's own raw-config view if the file is not where you expect.

Connecting Gemini CLI, if it still applies to you

The legacy command is gemini mcp add with --transport http, the name spendixai and the address. The -s option chooses user or project level, and project is the default. In settings.json, a Streamable HTTP server uses the httpUrl field; the plain url field means an SSE endpoint, so using the wrong one will fail. Run /mcp auth spendixai inside Gemini CLI to sign in. Tokens are kept in a file in the .gemini folder.

Approvals and permissions

In Antigravity, MCP tools you have not configured run in Ask mode, which means approval is needed. Allow patterns exist for a single tool, a whole server or everything; do not use the last two for a finance server. Gemini CLI prompts on each call unless trust is set to true. Leave that setting alone.

On SpendixAI's side, Read only is recommended. 'Read and add' can create transactions and upload documents, and 'Full access' reaches categorisation rules and insights. Billing and member settings are not available to assistants.

ItemAntigravityGemini CLI (legacy)
TransportStreamable HTTP onlyhttpUrl for Streamable HTTP, url for SSE
Sign-inAuthenticate button, paste code if asked/mcp auth spendixai
ApprovalsAsk mode by defaultPrompts unless trust is true
Plan requirementWe could not confirmConsumer Pro and Ultra no longer served; API-key and enterprise paths remain

What to ask first

  • What did I spend last month?
  • Which categories went up most over the last quarter?
  • List possible duplicate charges.

Verify totals in the SpendixAI report before relying on them, and disconnect any assistant you no longer use from Developer → MCP connections.

One practical note: because the Antigravity app, IDE and CLI each need their own sign-in, a connection that works in one place may look missing in another. That is expected behaviour and not a sign of a broken setup. Repeat the authentication on the surface where you want to use SpendixAI.

SPENDIXAI JOURNAL

Useful ideas start with a clearer picture of your own spending.

Explore your reports