# Gemini CLI

Connect Gemini CLI to Rabt with one command or the settings file.

## The command

```bash
gemini mcp add --transport http rabt https://api.rabt.systems/mcp
```

Or put this in the settings file:

```json
{
  "mcpServers": {
    "rabt": { "httpUrl": "https://api.rabt.systems/mcp" }
  }
}
```

## Steps

1. Run the command or edit the settings.
2. If the server answers the connection with a sign-in request, Gemini CLI starts discovery and opens the browser; you can also start sign-in with `/mcp auth rabt`. It is Rabt’s own page: choose the organizations and permissions and approve once.

## Try this first

```text
Show me the organizations I can reach in Rabt, then tell me how many open tickets each has.
```

## Good to know

- Gemini CLI’s documentation describes sign-in starting when a connection is answered with 401, and is silent about what happens when permission is needed after an unsigned connection; sign in when you add the server with `/mcp auth rabt`.

> **Source:** [MCP servers in Gemini CLI](https://raw.githubusercontent.com/google-gemini/gemini-cli/main/docs/tools/mcp-server.md).
