Eulerian MCP integration guide for Antigravity CLI
This guide connects Antigravity CLI to Eulerian’s remote MCP server. The CLI (the agy command) is Google’s terminal version: an agent you work with by typing in the console, with no graphical interface. It supports remote MCP servers with OAuth 2.1 authentication. You paste no API token: the connector goes into the mcp_config.json file and you sign in with your own Eulerian account. Compared with Antigravity 2.0 and the IDE, here everything happens in the terminal: you open the manager with the /mcp command, and the OAuth sign-in finishes when you paste a code into the console itself.
Who it is for: users without advanced technical knowledge. Method: remote connector with OAuth 2.1, in the terminal with the agy command.
The idea, in one sentence: a remote endpoint plus an OAuth sign-in. You store no API token and the CLI never sees your password. Eulerian grants only limited access, which can be revoked.
What you can do with it:
- Check last week’s paid search campaign performance in a single sentence.
- Find out which media channels brought in the most conversions this month.
- Analyse the customer journey of your best-converting segment.
- Get analytical insights without leaving the terminal.
1 · Before you start
You need these four things before going any further:
- The Antigravity CLI (agy). It installs with a single command (see step 1). It runs on Windows, macOS and Linux, and shares its account and configuration with Antigravity 2.0 and the IDE.
- A Google account. The CLI signs in with your Google account the first time it runs, or reuses the session already open if you use Antigravity 2.0 or the IDE.
- The URL of Eulerian’s MCP endpoint. This is your Eulerian API endpoint with
/mcpadded at the end. You will find it in the Eulerian interface, in your account, under Eulerian API. - Your Eulerian credentials. Your Eulerian username and password. You will sign in during the OAuth step. No API token to paste.
The endpoint must be reachable from the internet over HTTPS with a valid TLS certificate: the connection starts from your computer. If you have access to several grids, use the endpoint of the one concerned.
2 · Step-by-step installation
Step 1 · Install the CLI (agy)
Open a terminal and run the installer for your system. On Windows, open PowerShell (Windows key, type “powershell”, Enter) and paste:
irm https://antigravity.google/cli/install.ps1 | iex
On Windows with CMD:
curl -fsSL https://antigravity.google/cli/install.cmd -o install.cmd && install.cmd && del install.cmd
On macOS and Linux:
curl -fsSL https://antigravity.google/cli/install.sh | bash
Once it is installed, close and reopen the terminal so that it recognises the agy command.
Step 2 · Run “agy” and finish the welcome
In a fresh terminal, type agy and press Enter. The first time, the CLI may open your browser so you can sign in with your Google account (or reuse the session already open if you share credentials with Antigravity 2.0 or the IDE). Then finish the wizard: choose a colour theme (up and down arrows, then Enter), accept the terms of use ([Done]) and, when asked, trust the folder (Yes, I trust this folder).


Step 3 · Find your MCP endpoint in Eulerian
Where to go: Eulerian API, in your account, in the Eulerian interface. Your API Endpoint is listed there. The MCP server URL is that same endpoint with /mcp added at the end:

https://<votre-endpoint-d-API-Eulerian>/mcp
Here you do not copy the API token. You only need the endpoint URL with /mcp; you will sign in with your username and password during the OAuth step.
Step 4 · Open the mcp_config.json configuration file
The connector is defined in a text file that the CLI shares with Antigravity 2.0 and the IDE. Open it with a text editor. On Windows, in PowerShell:
notepad $env:USERPROFILE\.gemini\config\mcp_config.json
The file lives at C:\Users\<votre-utilisateur>\.gemini\config\mcp_config.json on Windows, and at ~/.gemini/config/mcp_config.json on macOS and Linux. If the editor offers to create the file, say yes. You can also use one per project, in .agents/mcp_config.json.
Step 5 · Add the Eulerian server and save
Paste this content into the file (with your own endpoint, /mcp at the end) and save it:
{"mcpServers": {"eulerian": {"serverUrl": "https://<votre-endpoint-d-API-Eulerian>/mcp"}}}
Because Antigravity’s three surfaces share this file, Eulerian may already be in it if you added it in 2.0 or in the IDE. If so, there is no need to add it again: go straight to step 6.
Step 6 · Open the MCP manager with /mcp
In the CLI’s input area, type /mcp and press Enter. The MCP Servers manager opens, and you will see Eulerian in it. As you are not signed in yet, it will show [Auth Needed] with an “Unauthorized” notice: that is expected, and the next step fixes it.
![The “MCP Servers” manager shows Eulerian with “[Auth Needed]”: authentication is missing](/images/wiki/intelligence-artificielle/serveur-mcp/guide-d-integration-d-eulerian-mcp-avec-antigravity-cli/nViVkiM9_kTW9k-imported-image.webp)
Step 7 · Start authentication
With Eulerian selected (the > arrow on its left), press Enter to open the actions. You will see Restart, Disable and [Authenticate]. Move to Authenticate and press Enter.

Step 8 · Sign in and authorise in the browser
The CLI opens your browser on Eulerian’s sign-in page. Enter your Eulerian username and password, and on the permissions screen click Approve. The CLI never sees your password.


Important
Check the permissions before approving. For read-only access to reports,
eulerian:reports.readis enough; only grant write access if your use case requires it.
Step 9 · Copy the code and paste it into the terminal
The browser shows a one-time code: click Copy to Clipboard. Go back to the terminal, where the CLI is waiting at Paste the authorization code below. Paste the code and press Enter. You will see Authentication successful!.


If the browser does not open on its own, the terminal shows an authorisation URL: copy it and open it in the browser yourself to sign in, then paste the code here.
Step 10 · Check that the connector is connected
Press Enter to go back to the MCP panel. Eulerian now appears as [Authed] with the list of available tools. It is now connected.
![Eulerian connected in the CLI: “Eulerian [Authed]” with its tools, including eulerian_tool_invoke](/images/wiki/intelligence-artificielle/serveur-mcp/guide-d-integration-d-eulerian-mcp-avec-antigravity-cli/AOUTHQs4Yd5jrY-imported-image.webp)
No token pasted. You can sign the CLI out at any time with the /logout command, or revoke access from your Eulerian account.
Step 11 · Use it
Press Esc to leave the MCP panel and return to the input area. Type your question there in plain language and press Enter; the CLI will call Eulerian’s tools. For example:
À quels outils Eulerian as-tu accès ?

3 · Teams and organisations
The MCP configuration lives in the mcp_config.json file on your computer, and authentication is individual: each user signs in with their own Eulerian account.
- The connector is defined in your
mcp_config.json, globally in~/.gemini/config/mcp_config.jsonor per project in.agents/mcp_config.json. - Each user signs in with their own Eulerian account and so only reaches the data their account can see.
- In a corporate environment, check with your IT department which AI tools are approved for handling business data.
The access granted is limited and revocable: use the /logout command in the CLI to sign out, or revoke it from your Eulerian account at any time.
4 · Other clients and notes
Antigravity 2.0, the IDE and the CLI share the same MCP configuration file (~/.gemini/config/mcp_config.json) and the same session. If you have already added Eulerian on another surface, the CLI picks it up. And because authentication is OAuth 2.1 delegated to the client, the same endpoint also works with Claude, ChatGPT or Mistral: the Eulerian side is always the same; only where you add the connector changes.
This guide covers the terminal (Antigravity CLI, the agy command). Antigravity 2.0 is the agent app and the IDE is the code editor; each has its own guide, but the Eulerian side (endpoint and OAuth) is identical.
- Eulerian MCP integration guide for Antigravity, for the desktop app
- Eulerian MCP integration guide for Antigravity IDE, for the code editor
- General guide to integrating Eulerian MCP via OAuth, and the per-client guides on the MCP Server page
- Eulerian OAuth 2.1 for third-party integrations (opens in a new window)
5 · Security and good practice
OAuth rather than tokens
No API token is stored on your computer. You authenticate with your Eulerian account and Eulerian grants the CLI limited access (for example, read-only access to reports) that can be revoked at any time.
The authorisation code is single-use
The code you paste into the terminal is temporary and single-use: it only serves to complete authentication and expires quickly. It is not a token to store or share.
Explicit, minimal permissions
Check the permissions on the Eulerian authorisation screen (for example eulerian:reports.read) before clicking Approve. Avoid write permissions if you do not use them.
Trusted connectors only
Only add MCP servers from trusted developers. Always check where the URL comes from: here, the developer is Eulerian.
Sign out when you are done
Use /logout to sign your account out and clear the credentials stored on the computer. Before using real data, check with IT which AI platforms are approved.
6 · If something does not work
| Problem | Solution |
|---|---|
| “agy” is not recognised as a command | Close and reopen the terminal so it picks up the new PATH after installation. If it persists, reinstall with the command from step 1. |
| I do not see Eulerian when I open /mcp | It has not been added to the configuration file: open the file in an editor (step 4), paste the block from step 5, save and reopen /mcp. |
| Eulerian shows “[Auth Needed]” or “Unauthorized” | That is expected before you sign in. Select Eulerian, press Enter and choose Authenticate (step 7). If it persists after authentication, contact Eulerian. |
| The browser does not open at the sign-in step | The terminal shows a URL: copy it and open it in the browser yourself. Once you approve, copy the code and paste it into the terminal. |
| Eulerian rejects the sign-in | Use your Eulerian credentials (not your Google ones). If you have access to several grids, use the endpoint of the right one. |
| I pasted the code but the connection fails | Copy the whole code with Copy to Clipboard and paste it before it expires; if it expires, run Authenticate again. |
| I want to start the session from scratch | Run /logout in the CLI to clear the stored credentials and authenticate again. |
7 · Further resources
- Your API endpoint: in the Eulerian interface, under Eulerian API (add
/mcp). - MCP Server, the documentation of Eulerian’s MCP server and the list of per-client guides
- Antigravity CLI, installation and use (opens in a new window)
- MCP in Antigravity CLI (opens in a new window)
- Eulerian OAuth 2.1 for third-party integrations (opens in a new window)
- MCP server GitHub repository (opens in a new window)