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

# Antigravity

> Direct SSE connection with header support. About two minutes, authenticated with an API key.

Antigravity connects to xysq over SSE with a bearer token in the headers. Takes about two minutes.

<Steps>
  <Step title="Generate your API key">
    Open the Antigravity connect guide in [app.xysq.ai](https://app.xysq.ai) (**Connect → Antigravity**) and generate a key. The full value is shown exactly once; copy it right away.
  </Step>

  <Step title="Copy your MCP config">
    Antigravity uses SSE with header support. Add this entry to your MCP config:

    ```json theme={"dark"}
    {
      "mcpServers": {
        "xysq": {
          "serverUrl": "https://api.xysq.ai/sse",
          "headers": {
            "Authorization": "Bearer YOUR_API_KEY"
          }
        }
      }
    }
    ```
  </Step>

  <Step title="Paste the config and restart">
    Paste the JSON into your global Antigravity MCP config and restart the app.

    <Tip>Antigravity locations vary by version. Check the app's **Settings → MCP servers** section for the active config path, or paste through the in-app editor if available.</Tip>

    If the connection won't establish, verify the URL is reachable from your machine:

    ```bash theme={"dark"}
    curl -i https://api.xysq.ai/sse
    ```

    Even a `401 Unauthorized` is fine; it means xysq is reachable and just rejecting the unauthenticated probe.
  </Step>

  <Step title="Verify the connection">
    In Antigravity, trigger any xysq tool call:

    ```text theme={"dark"}
    Use the xysq tools to pull my context.
    ```

    The in-app guide watches for the first call and marks the connection verified.
  </Step>
</Steps>
