OpenAI · Command line · Editor · Desktop
Connect Codex to your TopSet training log
Add TopSet to Codex with codex mcp add, sign in once, and use it from the Codex CLI, the editor extension and the desktop app.
Before you start
- Codex installed and signed in (the CLI, editor extension and desktop app share one configuration).
- 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 Codex
- Add the server
In your terminal, run:
codex mcp add topset --url https://connect.topset.top/mcp - Sign in
Codex usually opens the browser to sign in right away. If it doesn’t, run:
codex mcp login topset
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 Codex.
After you approve, the browser hands back to your computer and shows “Authentication complete”. The connection page shows the client as returning to an app on this computer, marked Unverified. That’s expected.
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 Codex
- Ask in Codex, for example “Use TopSet to check my training volume over the last 4 weeks.”
- Type /mcp in Codex to see whether topset is connected.
Disconnect
- Run codex mcp logout topset, then codex mcp remove topset.
- 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
- Codex lets you add the server without signing in, but tool calls then fail. If TopSet doesn’t work, run codex mcp login topset first.
- You can also add it to ~/.codex/config.toml: a [mcp_servers.topset] table with url = "https://connect.topset.top/mcp".
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