agy) in mcp_config.json.
Before you start
- A StackOne project you are a member of.
- A connector profile in the project for each provider the client should reach, with the actions you want exposed enabled.
- (Optional) A linked account for each provider. Accounts can also be linked during the consent flow.
Recommended Set up with your agent
Paste this into Antigravity CLI. It walks you through each step and can update your config.
Help me connect StackOne to Google Antigravity CLI. Read the setup guide at https://docs.stackone.com/ai-platforms/setup-guide.md and guide me one step at a time.
Or follow the steps yourself
Connect
1
Add StackOne to mcp_config.json
In your terminal, run:This writes StackOne into your global config (
~/.gemini/config/mcp_config.json on macOS and Linux, or %USERPROFILE%\.gemini\config\mcp_config.json on Windows).Edit mcp_config.json by hand
Edit mcp_config.json by hand
Open Antigravity requires the camelCase key
~/.gemini/config/mcp_config.json (or .agents/mcp_config.json in a project root for workspace scope) and add stackone under mcpServers:serverUrl for remote HTTP servers. Keys such as url or httpUrl are not recognized.2
Sign in and authorize
Start an 
agy session (or run /mcp inside an active session) and follow the browser sign-in prompt when Antigravity connects to stackone.- Sign in to StackOne. In a desktop app or code editor, this opens in your browser.
- Check the project at the top left. Antigravity CLI only reaches Linked Accounts in that project. To use another one, click it and pick yours.
- Pick the work systems Antigravity CLI can use (your Linked Accounts).
- If you see Load tools when needed, leave it on.
- Click Authorize.

3
Check it works
-
Run
agy mcp listin your terminal (or/mcpinside a session) to verifystackoneis enabled and connected. -
In a session, send:
If something goes wrong
If something goes wrong
OAuth fails with an IdP issuer mismatch or 401 error. Use one of these workarounds:
-
Token app (fastest workaround): Create a token app in StackOne, then register it with
agy:Antigravity does not expand shell environment variables insidemcp_config.json, so pass the literal token value inheaders. Keep~/.gemini/config/mcp_config.jsonout of version control. -
Static OAuth client: Follow Clients requiring Client ID and Secret with the redirect URI
https://antigravity.google/oauth-callback, then add theoauthblock tomcp_config.json:
mcp_config.json. Verify the entry uses "serverUrl" (not "url" or "httpUrl") and run agy mcp list to confirm the server is enabled (agy mcp enable stackone).A system you need is missing. Ask your StackOne admin, or see Linking Accounts.It stopped working. Re-authenticate from /mcp inside Antigravity, or clear cached tokens under ~/.gemini/antigravity/mcp_oauth_tokens.json and reconnect. Access lasts 90 days from when you clicked Authorize.It can’t do something. It can do only what your own StackOne access allows. Ask your StackOne admin.Add or change accounts
Add or change accounts
Antigravity CLI reaches only the Linked Accounts you approved when you connected. To add one you link later, or one someone shares with you afterwards:To review or revoke the connection, use the same ⋮ menu in Connected Apps.
1
Open Connected Apps
In the StackOne dashboard, go to Connected Apps.
2
Edit the connection
- Open the ⋮ menu on the row for Antigravity CLI and select Edit tool access.
- Select the Linked Account.
- Click Save changes.