Use the xysq MCP server in Google Antigravity — Google’s agent-first IDE — so the agent can call xysq tools for memory and identity-aware context. Antigravity is built on a VS Code fork and supports remote MCP servers over HTTP with bearer-token auth.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.
Before You Connect
Sign in to your xysq account at app.xysq.ai.Step 1 — Generate Your API Key
- After logging in, click the Connect Agent button.
- Select any tab that exposes API keys (Cursor, Codex, etc — the key format is identical).
- Click Generate API Key. Copy the
xysq_...key — it won’t be shown again.
Step 2 — Open Antigravity’s MCP Config
You can edit the config file directly, or use the in-app UI. Config file path:| OS | Path |
|---|---|
| macOS / Linux | ~/.gemini/antigravity/mcp_config.json |
| Windows | %USERPROFILE%\.gemini\antigravity\mcp_config.json |
Step 3 — Add the xysq Entry
Paste this intomcp_config.json (create the file if it doesn’t exist):
YOUR_API_KEY with the key from Step 1.
For safer secret handling, export the token and reference it:
Antigravity uses
serverUrl (matching Windsurf), not url. Don’t paste a Cursor-style schema verbatim.Step 4 — Restart Antigravity
There’s no documented hot-reload — restart the IDE so it picks up the new MCP entry. After restart, open the MCP Store / Manage MCP Servers panel and confirmxysq shows as connected. OAuth refresh tokens (if used) are auto-stored at ~/.gemini/antigravity/mcp_oauth_tokens.json and refresh in the background.
Step 5 — Use It
In any agent chat, try memory-aware prompts:Pinning Antigravity to a team vault
To scope the connection to a specific team, change the URL:YOUR_TEAM_ID in Team Settings at app.xysq.ai. Team-pinned connections route all memory actions to the team vault and disable personal-only tools.
Troubleshooting
| Problem | Fix |
|---|---|
| xysq doesn’t appear in Manage MCP Servers | Restart Antigravity. The IDE doesn’t hot-reload mcp_config.json. |
serverUrl not recognised | You may have a Cursor-style schema using url. Antigravity expects serverUrl. |
| Auth fails with 401 | Confirm XYSQ_API_KEY is exported in the shell that launched Antigravity (or paste the literal token into the config). |
| OAuth re-prompts | Delete ~/.gemini/antigravity/mcp_oauth_tokens.json and re-authenticate from scratch. |
| UI shows different field names | Trust the UI — Antigravity’s config schema is still evolving. The UI reflects the current release. |