<!-- Generated from the canonical OpenPost public page. Do not edit this build artifact. -->

Title: Connect Gemini CLI
Description: Review and prepare OpenPost publications from Gemini CLI.
Canonical: https://docs.openpo.st/mcp/gemini-cli
Source: [https://docs.openpo.st/mcp/gemini-cli](https://docs.openpo.st/mcp/gemini-cli)

# Connect Gemini CLI

Add OpenPost to an installed Gemini CLI, then authorize the connection in your browser.

## Configure the server

Merge this entry into `~/.gemini/settings.json`:

```json
{
  "mcpServers": {
    "openpost": {
      "httpUrl": "https://app.openpo.st/mcp",
      "oauth": { "enabled": true }
    }
  }
}
```

Use `httpUrl` for Streamable HTTP. Gemini's `url` field selects SSE, which is a different transport.

## Sign in and test

Restart Gemini CLI and run:

```text
/mcp auth openpost
```

Complete OpenPost's browser consent. Choose read-only access for schedule reviews, or full access to prepare and publish content. Ask, “List my OpenPost workspaces,” then name your workspace and request its connected accounts.

## If it does not connect

Run `/mcp auth openpost` again for an expired login. The browser callback must reach the machine running Gemini CLI. For a remote shell or private instance, consider the [local bridge](https://docs.openpo.st/mcp#self-hosted-connections).

See [Gemini CLI MCP documentation](https://geminicli.com/docs/tools/mcp-server/) for authentication and transport settings.
