Antigravity CLI — Tutorials

Step-by-step tutorials for Antigravity CLI. Setting up MCP servers, installing plugins, automating PR reviews, and building agent skills.

October 20, 2026
antigravityagytutorialsmcppluginsautomation

Antigravity CLI — Tutorials

Step-by-step guides for common Antigravity CLI workflows. For skills-based workflows, see the Agent Skills guide.

Setting Up MCP Servers

Connect Antigravity CLI to files and external tools through the MCP Manager and mcp_config.json:

  1. Type /mcp to open the MCP Manager.
  2. Add the server definitions to ~/.gemini/config/mcp_config.json (global) or .agents/mcp_config.json (workspace).
  3. Reload from the MCP Manager and verify the server connects.
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/absolute/path/to/project"
      ]
    }
  }
}

The Filesystem server requires at least one allowed directory argument. The official GitHub and Postgres reference servers are archived, and their npm packages are deprecated; browse the MCP Registry for maintained alternatives.

Now your agent can inspect and work with the allowed project files:

> List the files in src/ and summarize the project structure
> Read package.json and list the available scripts

Installing a Plugin

Extend Antigravity CLI with community plugins:

# Install a security audit skill
agy plugin install https://github.com/user/security-audit-skill

# List installed plugins
agy plugin list

# List available skills
> /skills

Automating PR Reviews

Set up automatic code review with GitHub Actions:

name: AI Review
on: [pull_request]
jobs:
  review:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: curl -fsSL https://antigravity.google/cli/install.sh | bash
      - run: |
          mkdir -p ~/.gemini/antigravity-cli
          printf '%s\n' '{"modelProvider":"gemini"}' > ~/.gemini/antigravity-cli/settings.json
      - run: |
          agy -p "Review this PR for bugs, security, and style" --output-format json --model gemini-3.8-flash-high
        env:
          GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}

Sources