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

# Gemini CLI MCP Setup

> Configure the Sita MCP server in Gemini CLI for intelligent codebase Q&A

## Setup

### Single Repository

Run this command to add the Sita MCP server:

```bash theme={null}
gemini mcp add \
  --transport http \
  code-qna \
  http://localhost:3000/api/mcp \
  --header "x-repo-id: YOUR_REPO_ID"
```

Replace `YOUR_REPO_ID` with your repository ID. The repo id can be copied from repos tab.

### Multiple Repositories

Add each repository with a unique name:

```bash theme={null}
# Frontend repository
gemini mcp add \
  --transport http \
  frontend-qna \
  http://localhost:3000/api/mcp \
  --header "x-repo-id: frontend"

# Backend repository
gemini mcp add \
  --transport http \
  backend-qna \
  http://localhost:3000/api/mcp \
  --header "x-repo-id: backend"

# Mobile repository
gemini mcp add \
  --transport http \
  mobile-qna \
  http://localhost:3000/api/mcp \
  --header "x-repo-id: mobile"
```

## Verification

After adding the configuration:

* Run `gemini mcp list` to see your configured servers
* The `codebase-qna` tool will be available in Gemini CLI

## Management Commands

* **List servers**: `gemini mcp list`
* **Remove a server**: `gemini mcp remove code-qna`
* **View server details**: `gemini mcp info code-qna`
