Google · Desktop · Editor · Command line
Connect Google Antigravity to your TopSet training log
Add the TopSet URL to Google Antigravity’s MCP config, approve it, paste the authorization code back, and your agent can read your training.
Before you start
- Google Antigravity with a personal Google Account (the free tier works). Google doesn’t offer it to users under 18, and only in some countries.
- TopSet on your iPhone (iOS 18.0 or later, updated to the latest version), signed in to your account. You approve the connection in the app.
Step 1: Add TopSet in Google Antigravity
- Open the MCP config file
App: Customizations in the sidebar › Installed, scroll to MCP Servers and click Copy Config File Path. Editor: … at the top of the agent panel › MCP Servers › Manage MCP Servers › View raw config. The global file is usually ~/.gemini/config/mcp_config.json.
- Add TopSet
Add this inside mcpServers (keep any servers already there) and save.
{ "mcpServers": { "topset": { "serverUrl": "https://connect.topset.top/mcp" } } } - Authenticate
Under MCP Servers, click Authenticate next to topset. Your browser opens the TopSet connection page.
Step 2: Approve in TopSet
Your browser opens the TopSet connection page. It shows who wants to connect, what it will be able to do, and a QR code.
Scan the QR code with your iPhone camera. TopSet opens. Check the name, confirm that you started this connection yourself, and tap Allow.
The app shows a 6-digit code. Type it into the connection page on your computer and select Confirm. When the page says you’re done, go back to Google Antigravity.
One extra step: after you enter the 6-digit code, the browser moves to a Google page showing an authorization code. Copy it, paste it into Enter authorization code in Antigravity and click Submit. It’s valid for 5 minutes; if it expires, click Authenticate again.
Opened the connection page on your iPhone? Tap Open app, approve in TopSet, then go back to the connection page and type in the code from the app. No iPhone at hand? Sign in on the connection page with your TopSet email and password and approve there; no code needed that way (if you only use Sign in with Apple, set a password first in the app under Profile › Athlete profile › Account & Security). The code is valid for 5 minutes. Only enter it on a connection page you started, and never share it.
Using TopSet in Google Antigravity
- Ask your Antigravity agent, for example “Use TopSet to look at my last 4 weeks of training.”
Disconnect
- Under MCP Servers, open topset’s ⋮ menu and choose Disable or Delete, or remove the topset entry from the config file.
- In TopSet, go to Profile › AI assistants, select the connection and tap Disconnect. Access stops immediately. Removing it only inside the AI tool doesn’t notify TopSet, so disconnect on both sides.
Good to know
- To pause it without deleting, add "disabled": true to the topset entry.
Official help
Each tool’s menus and plans change. Its own help pages are the reference.
Using a different AI tool? All AI tools · Get TopSet