> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini CLI

> Add PostChamp to Gemini CLI. The config key must be httpUrl.

Add PostChamp to Gemini CLI. The config key must be httpUrl. The connection URL is the same for every client:

```text
https://api.postchampai.com/api/v1/mcp
```

> [!NOTE]
>
> Gemini CLI uses `httpUrl` for Streamable HTTP servers. A plain `url` means the older SSE transport, and PostChamp will show no tools.

> [!NOTE]
>
> Gemini CLI's own docs say it was replaced by Antigravity CLI on June 18, 2026. If you use Antigravity, follow the Google Antigravity guide instead.

## Before you start

* Gemini CLI installed, with a browser on the same machine. The sign-in does not work over a headless or remote SSH session.
* A PostChamp account on a plan that includes assistants, with the owner or admin role in the workspace you want to share. See [Authentication](/mcp/authentication.md).

## Connect Gemini CLI

**Step 1**

Add the server with the first command below. The default scope is the current project. Add `-s user` to use it in all projects.

**Step 2**

Or edit `~/.gemini/settings.json` and add the entry below. Use `httpUrl`, not `url`.

**Step 3**

Start Gemini CLI. Run `/mcp auth postchamp` to sign in. Your browser opens the PostChamp sign-in. Sign in, choose the workspaces to share and approve.

**Step 4**

Run `/mcp` to check that `postchamp` is connected and lists its tools.

## Command line

```bash
gemini mcp add --transport http postchamp https://api.postchampai.com/api/v1/mcp
gemini mcp add --transport http -s user postchamp https://api.postchampai.com/api/v1/mcp
```

## Configuration file

Add this to `~/.gemini/settings.json`:

```json
{
  "mcpServers": {
    "postchamp": {
      "httpUrl": "https://api.postchampai.com/api/v1/mcp"
    }
  }
}
```

## Check the connection

Ask:

```text
Use PostChamp to list my workspaces.
```

This reads your workspaces, costs nothing and changes nothing. Then try one of these:

* Plan next week: three posts, one on each of my main topics. Show me the plan before you schedule anything.
* Write a LinkedIn post about what I learned from my last client project, in my voice.
* How did my posts do over the last 30 days? What worked best?
* Check my newest draft for filler and weak lines, then suggest fixes.

## Disconnect

* Remove the server with `gemini mcp remove postchamp`.
* Then open Settings in PostChamp, choose Assistants and disconnect it, so the sign-in is revoked.

## Troubleshooting

> [accordion] Gemini CLI connects but finds no tools.
>
> The entry uses `url`. Change it to `httpUrl`. A `url` key selects the SSE transport.

> [accordion] The sign-in does not open.
>
> OAuth needs a local browser. Run Gemini CLI on a machine with one, or sign in there first.

> [accordion] The sign-in expired.
>
> Run `/mcp auth postchamp` again.

> [accordion] The browser sign-in says I cannot connect.
>
> Only owners and admins of a workspace can connect an assistant to it, and the plan must include assistants. Sign in with an account that has that role. Check the account in Settings, Members.

## FAQ

> [accordion] Does the Gemini web app work?
>
> We have not tested it. This guide covers Gemini CLI only.

> [accordion] Why `httpUrl` and not `url`?
>
> In Gemini CLI, `httpUrl` selects Streamable HTTP and `url` selects the legacy SSE transport. PostChamp uses Streamable HTTP.

## Related

> [card] [Authentication](/mcp/authentication.md)
>
> How sign-in, consent and revocation work.

> [card] [Tool reference](/mcp/tools/index.md)
>
> Every tool the assistant can call.
