codex mcp login.
Connect
Register the server
Add the server to
~/.codex/config.toml:OAuth login is supported only for streamable HTTP servers — the
url field is what enables it. Don’t set a command for ops.Authenticate
Run the OAuth login flow:Your browser opens to OnePerfectSlice — log in and select the team whose data this connection should access. Codex stores the token in its managed encrypted credential storage.
Test it
In Codex, try:list_slices and get back a list of your team’s slices.
Troubleshooting
| Problem | Solution |
|---|---|
ops not listed | Check the [mcp_servers.ops] block in ~/.codex/config.toml for typos, then restart Codex |
| Login didn’t complete | Re-run codex mcp login ops and finish both login and team selection in the browser |
| Wrong team’s data | Run codex mcp login ops again and select a different team |
| Tool calls fail after a while | Re-run codex mcp login ops to refresh credentials |
Switching teams
Each connection is scoped to one team. To switch, runcodex mcp login ops again and select the new team during sign-in.