Setup

Single Repository

Run this command to add the Sita MCP server:
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:
# 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