> For the complete documentation index, see [llms.txt](https://whalecoupons.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whalecoupons.gitbook.io/docs/client-setup/gemini-cli.md).

# Gemini CLI

{% hint style="info" %}
Google's notice on the Gemini CLI docs says that for unpaid-tier and Google One users, Gemini CLI was replaced by Antigravity CLI on June 18, 2026. The steps below are for Gemini CLI.
{% endhint %}

There are three ways to add Whale Coupons. Use one of them.

## Option 1: install the extension

The [whale-coupons-mcp](https://gitlab.com/whalecoupons/whale-coupons-mcp) repository is a Gemini CLI extension:

```bash
gemini extensions install https://gitlab.com/whalecoupons/whale-coupons-mcp
```

The extension's `gemini-extension.json` points the CLI at the remote server:

```json
{
  "name": "whale-coupons",
  "version": "1.0.0",
  "description": "Find coupon codes, promo codes and discount codes for thousands of independent online stores.",
  "mcpServers": {
    "whale-coupons": {
      "httpUrl": "https://whalecoupons.co/mcp"
    }
  }
}
```

## Option 2: `gemini mcp add`

```bash
gemini mcp add --transport http --scope user whale-coupons https://whalecoupons.co/mcp
```

`--scope user` saves it to `~/.gemini/settings.json` for every project. Leave it out to save it to the current project's `.gemini/settings.json` (the default scope is `project`).

## Option 3: edit `settings.json`

Add this to `~/.gemini/settings.json` (all projects) or `.gemini/settings.json` (one project):

```json
{
  "mcpServers": {
    "whale-coupons": {
      "httpUrl": "https://whalecoupons.co/mcp"
    }
  }
}
```

Use `httpUrl`, not `url`. In Gemini CLI, `httpUrl` selects the Streamable HTTP transport and `url` selects the older SSE transport.

## Check the connection

```bash
gemini mcp list
```

You should see `whale-coupons: https://whalecoupons.co/mcp (http) - Connected`. Inside a session, `/mcp` shows the server status and its five tools.

Gemini CLI registers MCP tools with full names in the form `mcp_whale-coupons_find_coupons`. That is useful if you write policy rules for them.

## Skip confirmations (optional)

Gemini CLI asks before each MCP tool call. Because all Whale Coupons tools are read-only, you can trust the server so calls run without prompts: add `"trust": true` to its entry, or pass `--trust` to `gemini mcp add`. Only do this for servers you trust.

Sources: Gemini CLI docs, "MCP servers with Gemini CLI"; whale-coupons-mcp repository.
