[]
        
(Showing Draft Content)

Google Antigravity CLI

Version Notes

As of June 18, 2026, Gemini CLI has ended its personal-use service and has been integrated into and migrated to Antigravity CLI. Migration from Gemini CLI

If you are using the previous version of Gemini CLI, please refer to Gemini CLI.

You can configure Antigravity CLI (agy) either from the terminal or by directly editing ~/.gemini/config/mcp_config.json.

Using the terminal command is recommended because it automatically updates your configuration.

Method 1: Add from the terminal (Recommended)

1. Open a terminal.

2. Run the following command:

agy mcp add --header "Authorization: Bearer <YOUR_MCP_TOKEN>" spreadjs-mcp https://mcp.mescius.jp/mcp/spreadjs

3. Verify the configuration:

agy mcp list

You can also run /mcp inside Antigravity CLI to check the server status and available tools.

Note

  • Options such as --header must be placed before the server name (spreadjs-mcp). Placing them after the server name will result in an error.

  • agy mcp list does not verify whether your token is valid. If the token is invalid, no error is displayed, and the tools will simply be unavailable. If the SpreadJS MCP tools (overview, setup, search, fetch) do not appear under /mcp, please check your token.

Method 2: Manually edit mcp_config.json

1. Open ~/.gemini/config/mcp_config.json (on Windows: %USERPROFILE%\.gemini\config\mcp_config.json; create the file if it does not exist).

2. Add the MCP server configuration:

{
  "mcpServers": {
    "spreadjs-mcp": {
      "serverUrl": "https://mcp.mescius.jp/mcp/spreadjs",
      "headers": {
        "Authorization": "Bearer <YOUR_MCP_TOKEN>"
      },
      "timeoutSeconds": 30
    }
  }
}

3. Restart Antigravity CLI.

Note

  • Specify the remote MCP server URL using serverUrl (or url). The httpUrl field used in Gemini CLI is not supported.

  • Specify the timeout using timeoutSeconds (in seconds). Note that the unit differs from Gemini CLI's timeout (in milliseconds).

Reference: Model Context Protocol (MCP) - Google Antigravity Docs