Antigravity Setup

Last updated: July 10, 2026

Antigravity is a coding agent you run from your terminal with the agy command. Once you connect the WEEGLOO MCP server to it, Antigravity can directly create, read, and modify resources such as Content Type, Content, and Media. The connection works the same way as in other environments. You set everything up at once with the install tool, then just complete authentication in Antigravity.

MCP itself, the server groups, and the file upload server are covered in MCP. This page covers only the steps to connect to Antigravity.

Prerequisites

Running the install commands below requires Node.js. First, check whether it is installed and whether the version is 18 or higher with the following commands.

Terminal
node --version # v18 or higher is OK npx --version # OK if a version is printed

If Node.js is installed but npx is not, update npm to the latest version with the command below. Updating npm installs npx along with it.

Terminal
npm install -g npm@latest

If Node.js is not installed or its version is too old, install Node.js using the method that fits your operating system.

Terminal
brew install node

If you do not have Homebrew, install it first from brew.sh, or download Node.js directly from nodejs.org.

Antigravity must also be installed so that you can run it from your terminal with the agy command. If you do not have it yet, see the Antigravity install guide.

Connecting

Choose the install location, then follow the guide below. To connect only a single project, choose Project; to use it across all projects, choose Global.

MCP authentication can be unstable in Antigravity

The weegloo MCP server uses an ordinary stateful HTTP MCP connection, but Antigravity's support for stateful MCP connections is not yet stable, so sign-in can fail or require retries. For a smoother, more reliable setup, we recommend using Claude Code, Codex, or Cursor.
1

Install MCP · Skills

Copy the install command and run it in your terminal.

Terminal
$ npx weegloo@latest -y \ --agent antigravity \ --token wgl_••••••••••••
2

Authenticate MCP

Authenticate in the order below.

  1. 1.Run Antigravity with agy.
    Terminal
    agy
  2. 2.Type /mcp at the prompt.
    Terminal
    /mcp
  3. 3.Select weegloo.
    Terminal
    MCP Servers Plugins (~/.gemini/config/plugins) > ✗ weegloo error: calling "initialize": sending "initialize": Unauthorized [Auth Needed] ✓ weegloo-upload Tools: CreateUpload Keyboard: ↑/↓ Navigate enter Actions
  4. 4.Select Authenticate.
    Terminal
    MCP Servers Plugins (~/.gemini/config/plugins) > ✗ weegloo error: calling "initialize": sending "initialize": Unauthorized [Auth Needed] Restart Disable [Authenticate] ✓ weegloo-upload Tools: CreateUpload Keyboard: ←/→ Navigate enter Actions
  5. 5.Paste the token below into the token field on the auth page that opens.
  6. 6.Copy the Code shown on the Google Antigravity page, return to Antigravity, paste it, and press Enter.

    If authentication is shown as failed

    If you see Authentication failed: no pending auth state for server weegloo, it may be a transient issue on the Antigravity side. It appears most often in versions below 1.0.16, but it can also happen on the latest version, and the connection usually recovers with the steps below.
    1. 1.Press Esc to return to the MCP Servers screen.
    2. 2.Press Esc again to return to the prompt.
    3. 3.Type /mcp again. It will pass through initializing and connect.

Inspecting the Configuration File Yourself

The install tool automatically creates and manages the configuration file, so you do not need to check it yourself. The content below is reference material for users who need the concrete configuration file structure and paths.

The weegloo server connects to https://ai.weegloo.com/mcp over HTTP, while the weegloo-upload server, which handles files, runs via npx and uses a Personal Access Token for authentication. With a Global install it is registered at ~/.gemini/config/mcp_config.json in your home directory, and with a Project install at .agents/mcp_config.json inside the project folder.

{
  "mcpServers": {
    "weegloo": {
      "serverUrl": "https://ai.weegloo.com/mcp"
    },
    "weegloo-upload": {
      "command": "npx",
      "args": ["-y", "weegloo-upload"],
      "env": {
        "UPLOAD_API_URL": "https://upload.weegloo.com/v1",
        "AUTH_BEARER_TOKEN": "<Personal Access Token>"
      }
    }
  }
}

To change the server group, append a group value to the end of the weegloo server's serverUrl. For example, to use all tools, write it as https://ai.weegloo.com/mcp?group=all. For the tool composition of each group, refer to MCP Server Groups.

What to Do Next

  • MCP: Covers the foundations of the connection, such as server groups and the file upload server.
  • Skills and Rules: Covers what the Skills and Rules that the install tool sets up alongside it are.
  • Migrating Static Pages with AI: Follow the flow of migrating a real page into a content-based service with the MCP connection you set up.