# Connecting Gemini CLI
> Source: https://www.fuze-store.com/docs/store/ai-connections/connecting-gemini-cli

# Connecting Gemini CLI

This guide connects **Gemini CLI** to your Fuze Store account by adding the MCP server to your settings file.

  Google has announced that Gemini CLI is being replaced by **Antigravity CLI** for free and Google One users. If you are setting up a new machine, check which one Google is shipping to your account before you follow these steps.

## Before You Start

- Gemini CLI is installed and you can run `gemini` in a terminal.
- You have **Owner** or **Admin** access to the store you want to connect.
- The **AI Connections** add-on is active on that store.

Gemini CLI works on any plan, including the free tier.

## Get Your MCP URL

In the Fuze Store app, open **Configurations → MCP → Connect an assistant** and copy the **MCP Server URL**:

```text
https://api.fuze-store.com/mcp/store/<your-store-id>
```

## Connect

  
    Open `~/.gemini/settings.json` and add the server under `mcpServers`. Create the file if it doesn't exist yet.

    ```json
    {
      "mcpServers": {
        "fuze-store": {
          "httpUrl": "https://api.fuze-store.com/mcp/store/<your-store-id>"
        }
      }
    }
    ```

  
  
    Start Gemini CLI and run the auth command. Your browser opens for the OAuth handshake.

    ```text
    /mcp auth fuze-store
    ```

  
  
    Sign in to Fuze Store, review the requested permissions, and **Approve**.
  
  
    Run `/mcp` to list connected servers and confirm `fuze-store` appears with its tools.
  

  Gemini CLI keys a modern Streamable HTTP server off **`httpUrl`**. The plain `url` key is reserved for older SSE servers and will not connect to Fuze Store.

## Ask Your First Question

- "What were my sales yesterday?"
- "Which products are running low on stock?"
- "Compare this month's revenue to last month."

## If Something Goes Wrong

If `fuze-store` doesn't appear in `/mcp`, check that your JSON is valid and that you used `httpUrl`. OAuth needs to open a browser on the same machine and receive a redirect on localhost, so this won't work over a plain SSH session without port forwarding. For Fuze-side issues, see the troubleshooting section of [Setting Up AI Access](/docs/store/ai-connections/setting-up-oauth).

  - [AI Connections Overview](/docs/store/ai-connections/overview)
  - [Which AI Tools Work Where](/docs/store/ai-connections/tool-availability)
  - [Connecting Other MCP Tools](/docs/store/ai-connections/connecting-other-tools)
  - [Setting Up AI Access](/docs/store/ai-connections/setting-up-oauth)
