Configure Google Antigravity CLI
Connect the Google Antigravity CLI and desktop app to your Datasentinel MCP server, sign in, and install the Datasentinel Skill.
This page shows how to wire the Google Antigravity CLI to your Datasentinel platform on a Linux host: add the MCP server, sign in once, install the Skill that tells the assistant how to use it, and check that everything is connected.
Antigravity CLI is Google's Go-based terminal coding agent (the agy command). It replaces the retired Gemini CLI and reuses the same ~/.gemini/ configuration tree. The same pattern applies to other MCP-and-Skill-capable assistants.
Google also ships Antigravity 2.0, a desktop app for Windows, macOS and Linux. It shares the MCP configuration with the CLI. See Use the Antigravity desktop app at the end of this page.
Before you start
The Antigravity CLI is installed and you can run
agyfrom a terminal. If it is not yet installed, see the installation guide linked below.Your Datasentinel MCP server is reachable over HTTPS at
https://<public-host>/mcp. See MCP Server Setup if it is not yet running.
Install the Antigravity CLI
The Antigravity CLI is the agy command. On Linux, the official installer is:
curl -fsSL https://antigravity.google/cli/install.sh | bashFor other platforms, updates, and system requirements, follow Google's Antigravity quickstart. On the first run, agy opens a Google Sign-In flow and caches the credentials, so you only sign in once. Once you can run agy from a terminal, return here to connect it to Datasentinel.
Set it up
Add the Datasentinel MCP server
For the full reference, see the Antigravity MCP documentation.
Register the server from the terminal with its HTTPS URL. Antigravity detects the http type from the URL, so no transport flag is needed:
The command answers Added MCP server "datasentinel-production" (http) and writes the server to the user-level file ~/.gemini/config/mcp_config.json, which the CLI and the IDE share, so the server is available in every directory. agy mcp list shows the registered servers with their status; agy mcp remove, agy mcp enable and agy mcp disable manage them. Flags of agy mcp add go before the server name; agy mcp add --help lists them.
The same server written by hand, which is also the form to use in .agents/mcp_config.json inside a workspace to enable it for that project only:
serverUrl selects the streamable-HTTP transport; it replaces the old Gemini CLI httpUrl field.
Self-signed or invalid certificate
If your platform serves the /mcp endpoint with a self-signed or otherwise invalid TLS certificate, Antigravity rejects the connection by default. Using a valid TLS certificate is highly recommended. Antigravity validates against the host's system trust store, so provision a certificate from a public authority, or install your internal CA in the system trust store, to keep validation on. The sign-in below also opens the login page in a browser, so that browser must trust the certificate too.
Sign in to the platform
With a browser
Antigravity signs in to remote MCP servers with OAuth and registers itself with the server automatically (dynamic client registration), so there is nothing to configure. Inside an interactive agy session, open the MCP manager:
Select the Datasentinel server (up and down arrows), cycle to the Authenticate action (left and right arrows) and confirm. Antigravity opens the Datasentinel login page in your browser: sign in with your platform login and password, the same ones as the Datasentinel web interface. The page names the assistant that is asking. Antigravity does not listen on a local port: after the sign-in, the browser lands on a Google-hosted page at antigravity.google/oauth-callback that displays an authorization code. Copy it, paste it into the CLI when asked, and the server shows as connected.
You sign in once. Antigravity stores the session (in ~/.gemini/antigravity/mcp_oauth_tokens.json per Google's documentation; on macOS and Windows the CLI uses the system keychain) and renews it by itself. It asks again only after ten days without using the server, or when an administrator ends the session. Your password goes to the login page only; Antigravity never sees it and never asks for a token.
Without a browser
On a server without a browser (an SSH session, a build machine), the same flow works without a tunnel, because the code comes back through the clipboard rather than through a local port. Start the sign-in from /mcp as above, open the authorization link on any machine with a browser, sign in, copy the code shown on the callback page and paste it into the CLI on the server. Print mode (agy -p) reads the code from the controlling terminal too, but a fully headless run without a terminal fails with an explicit message. See How authentication works for the general procedure.
For a script or a scheduled run
Where nobody can sign in, register the server with a user token as an authorization header instead. The token is the platform's 24-hour user token. Pass it with the --header flag, placed before the server name:
Antigravity stores the header value as written, so mcp_config.json then holds the token: keep the file readable by you only (chmod 600) and let the job run the command again when the token is refreshed. The resulting entry:
A server registered this way never opens the login page; when the token expires, the calls fail until a fresh one is written. See Refresh the user token automatically to keep it current.
Install the Datasentinel Skill
The Datasentinel Skill is made of several files (a SKILL.md entrypoint plus supporting files) and ships as a single archive, datasentinel-skill.zip. Download it from https://app.datasentinel.io/ds-api/download/datasentinel-skill.zip.
Skills in Antigravity are file-based: there is no install command. The CLI reads Skills from these locations:
.agents/skills/
One workspace, also read in each parent folder up to the repository root
~/.gemini/config/skills/
Global, shared with the Antigravity desktop app
~/.gemini/antigravity-cli/skills/
Global, CLI only
~/.gemini/skills/
Global, CLI only (the desktop app does not read it)
Run /skills inside a session to see the paths your version reads. Create the directory of your choice if it does not exist yet, then unzip the archive into it so it produces a datasentinel/ folder, and Antigravity discovers it on the next session. ~/.gemini/config/skills/ is the one global location that serves both the CLI and the desktop app. For how Antigravity discovers Skills, see the Antigravity Skills documentation.
You should end up with ~/.gemini/config/skills/datasentinel/SKILL.md (or the equivalent under the other locations) alongside the Skill's supporting files. Each Skill lives in its own directory whose SKILL.md is the entrypoint. Its frontmatter carries the description the assistant uses to decide when to apply the Skill:
Check your configuration
Inside an interactive agy session, use the /mcp command to list the configured servers and their connection status:
A healthy server reports connected with its tools discovered. A server you have not signed in to yet is shown as needing authentication: go back to the sign-in step. If a server shows an error, check the serverUrl in mcp_config.json and that the server is up. If it reports Unauthorized right after a successful sign-in, the CLI sent its requests without the session token. This is a known open defect (issue #25), still reported on CLI 1.3.3 in October 2026. The workaround Google offers there is to register the server with a user token as a header, as in For a script or a scheduled run.
Approve the Datasentinel tools
MCP tools run in Ask mode by default: the first time the assistant calls a Datasentinel tool, Antigravity shows an approval card (Allow calling this tool?). To stop the prompts for good, add a permission rule for the whole server. Rules use the form mcp(server/tool); mcp(server/*) covers every tool of a server. Add the rule from the /permissions panel inside a session, or write it in ~/.gemini/antigravity-cli/settings.json:
The Datasentinel tools only read monitoring data, so allowing the whole server is safe. Shift+Tab cycles the session modes (default, accept-edits, auto, plan); auto approves edits and safe commands but is not available for business or enterprise accounts. The always-proceed tool permission (set with toolPermission, or with the --dangerously-skip-permissions launch flag) runs commands, web requests and MCP tools of every kind without prompting unless an ask or deny rule matches, so use it with care. The rule syntax is in the Antigravity permissions reference.
Once the server reports connected and the Skill is in place, run through the checks below to confirm the end-to-end flow.
How the Skill loads
The Datasentinel Skill loads on demand. Antigravity reads every Skill's name and description up front, and applies the full instructions automatically when your prompt relates to Datasentinel: asking about PostgreSQL performance, instances, sessions, or the platform itself is enough. One Skill serves every platform, because it discovers all the datasentinel-* MCP servers you registered, so adding a second platform needs no Skill change.
If the assistant answers generically instead (no Datasentinel tool calls in the response), load the Skill manually:
Skills convert into slash commands in the TUI, so type
/datasentinelfollowed by your request, for example/datasentinel status.Or name it in the prompt:
Use the datasentinel skill to check the platform status.
If /datasentinel does not autocomplete at all, the Skill is not discovered: re-check the unzip location from the setup step and start a new session. See the Antigravity Skills documentation for the details.
Test the MCP server and Skill
Run these checks inside an interactive agy session.
You exercise the Skill by asking in plain language and letting it drive the MCP tools (see How the Skill loads above). The Datasentinel Skill recognises four built-in checks. Run them in order:
datasentinel help
Displays the Skill's help, listing the available commands.
datasentinel platforms
Lists every MCP server (platform) the Skill discovered by its datasentinel- prefix.
datasentinel status
Checks the platform status, confirming the MCP server answers.
datasentinel whoami
Shows who you are signed in as, your privilege and the session expiry.
These four are the setup checks. The full command list, with what each one needs, is in the Skill commands reference.
Start with datasentinel help to confirm the Skill responds. Then run datasentinel platforms to verify your server is discovered: each datasentinel-* MCP server you registered should appear in the list. Then run datasentinel status to confirm the platform is reachable and the MCP tools return live data. Finally, datasentinel whoami confirms the session belongs to your platform user, with the privilege you expect.
Use the Antigravity desktop app
Antigravity 2.0 is Google's desktop agent app, for Windows, macOS and Linux. Download it from antigravity.google/download. It works with a private Datasentinel platform: the MCP calls come from your machine, like the CLI's.
Add the Datasentinel MCP server
The desktop app reads the same mcp_config.json as the CLI: ~/.gemini/config/mcp_config.json, or %USERPROFILE%\.gemini\config\mcp_config.json on Windows. A server added with agy mcp add is already there.
Otherwise, add the datasentinel-production entry shown in Add the Datasentinel MCP server to that file. In the app, Settings → Customizations → Installed MCP Servers lists the servers; Add MCP opens the MCP Store, which offers catalog servers only.
Sign in
Antigravity handles OAuth itself for servers that support dynamic client registration, which the Datasentinel server does.
Open the Agent settings with
Ctrl + ,(Cmd + ,on macOS).In the Customizations tab, click Authenticate next to
datasentinel-production.Sign in on the Datasentinel login page that opens in your browser, with your platform login and password, then copy the authorization code the callback page shows.
Paste the code back into the settings panel and click Submit.
The session is stored in ~/.gemini/antigravity/mcp_oauth_tokens.json. See the Antigravity MCP documentation.
Install the Datasentinel Skill
The desktop app reads its global Skills from ~/.gemini/config/skills/, the location it shares with the CLI. It does not read the CLI-only folders ~/.gemini/antigravity-cli/skills/ and ~/.gemini/skills/. If you installed the Skill for the CLI under ~/.gemini/config/skills/, the app already has it. Otherwise unzip the archive there:
On Windows, extract datasentinel-skill.zip into %USERPROFILE%\.gemini\config\skills\, so that you get %USERPROFILE%\.gemini\config\skills\datasentinel\SKILL.md.
A Skill in a workspace's .agents/skills/ folder serves both the desktop app and the CLI. See the Antigravity Skills documentation.
Test
Start a new conversation and run the checks of Test the MCP server and Skill, starting with datasentinel status. You can also call the Skill with /datasentinel.
Last updated