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

# Google Antigravity

> Set up Trilo's MCP server in Google Antigravity with Personal Access Token authentication

<img src="https://mintcdn.com/trilo/Sn4xCqXfS0z4bBRK/images/mcp/google-antigravity.svg?fit=max&auto=format&n=Sn4xCqXfS0z4bBRK&q=85&s=6f6a1849ed45e5b8ffd4e77218ea043d" alt="Google Antigravity" width="48" noZoom data-path="images/mcp/google-antigravity.svg" />

[Google Antigravity](https://antigravity.google) is Google's agentic development platform. Connect it to Trilo via MCP to manage your workspace from within Agent sessions.

<Note>
  Google Antigravity uses `serverUrl` instead of `url` in its MCP config — make sure to use the correct field name.
</Note>

## Setup

<Steps>
  <Step title="Create a Personal Access Token">
    In Trilo, go to **Profile Settings** > **API** > **Create Token**. Select the scopes you need (`mcp:read`, `mcp:write`) and copy the token.
  </Step>

  <Step title="Open MCP config">
    1. Open an **Agent session** and click the **"..."** menu at the top of the side panel
    2. Select **MCP Servers** to open the MCP Store
    3. Click **Manage MCP Servers** at the top, then **View raw config**
  </Step>

  <Step title="Add the Trilo server">
    Add the following to your `mcp_config.json`:

    ```json theme={null}
    {
      "mcpServers": {
        "trilo": {
          "serverUrl": "https://api.trilo.chat/mcp",
          "headers": {
            "Authorization": "Bearer YOUR_TOKEN_HERE"
          }
        }
      }
    }
    ```

    Replace `YOUR_TOKEN_HERE` with the PAT you copied.

    <Warning>
      Use `serverUrl` (not `url`) — this is specific to Google Antigravity's MCP config format.
    </Warning>
  </Step>

  <Step title="Refresh servers">
    Save the file and click **Refresh** in the Manage MCP Servers view.
  </Step>

  <Step title="Verify the connection">
    In your Agent session, ask:

    ```
    List my Trilo workspaces
    ```

    If it returns your workspace data, you're connected.
  </Step>
</Steps>

## Options

Append query parameters to the MCP URL for additional control:

| Parameter      | Description                      | Example                                           |
| -------------- | -------------------------------- | ------------------------------------------------- |
| `workspace_id` | Restrict to a specific workspace | `https://api.trilo.chat/mcp?workspace_id=abc-123` |
| `read_only`    | Force read-only mode             | `https://api.trilo.chat/mcp?read_only=true`       |

## Troubleshooting

<AccordionGroup>
  <Accordion title="401 Unauthorized">
    * Verify your token starts with `trilo_pat_`
    * Check the `Authorization` header uses the `Bearer` prefix
    * Confirm the token hasn't been revoked in **Profile Settings** > **API**
  </Accordion>

  <Accordion title="Tools not appearing">
    Click **Refresh** in the Manage MCP Servers view. Also verify you used `serverUrl` (not `url`) in the config.
  </Accordion>

  <Accordion title="Session expired (error -32002)">
    MCP sessions expire after 30 minutes of inactivity. Refresh the MCP connection or start a new Agent session.
  </Accordion>
</AccordionGroup>
