OpenAI Codex
Add FLORA MCP to OpenAI Codex via the CLI or config.toml.
OpenAI Codex supports streamable HTTP MCP servers with OAuth. Config lives in TOML — not the JSON used by Cursor or VS Code. The ChatGPT desktop app, Codex CLI, and IDE extension share MCP configuration for the same Codex host, so this setup carries over to all three.
Install
Section titled “Install”codex mcp add flora --url https://agents.flora.ai/mcpcodex mcp login floracodex mcp add writes the server into ~/.codex/config.toml. codex mcp login flora starts the browser OAuth flow. Sign in with your FLORA account and approve.
Manual config
Section titled “Manual config”Edit ~/.codex/config.toml (create it if needed) and add:
[mcp_servers.flora]url = "https://agents.flora.ai/mcp"Then authenticate:
codex mcp login floraCodex defaults to auth = "oauth" for HTTP MCP servers, so it uses the credentials codex mcp login stored. You do not need mcp-remote — Codex speaks streamable HTTP natively. See the Codex MCP docs for every supported option.
Project scope
Section titled “Project scope”For a repo-scoped config that teammates can share, put the same table in .codex/config.toml at the project root:
[mcp_servers.flora]url = "https://agents.flora.ai/mcp"Codex only loads project-scoped MCP config when the project is trusted. After cloning, trust the project in Codex, then each teammate runs codex mcp login flora once.
Verify
Section titled “Verify”In the Codex TUI:
/mcpflora should appear with its tools (execute, search_docs). Confirm with:
List my FLORA Techniques.
Outside the TUI — useful for scripted or CI setups:
codex mcp listcodex mcp get flora --jsonRemove
Section titled “Remove”codex mcp logout floracodex mcp remove floraIf you added the server by hand, delete the [mcp_servers.flora] table from ~/.codex/config.toml (or the project’s .codex/config.toml) instead. To revoke server-side, go to FLORA → Settings → Connected apps.
Common pitfalls
Section titled “Common pitfalls”- OAuth callback rejected — Codex binds an ephemeral callback port by default. If your OAuth app requires fixed redirect URIs, set the top-level
mcp_oauth_callback_portinconfig.toml; for remote or devbox setups, setmcp_oauth_callback_url. Codex appends a server-specific callback ID before sending the finalredirect_uri, so register the full derived URI with the provider, not the base URL. /mcpshows flora but tools fail with auth errors — re-runcodex mcp logout flora && codex mcp login flora.- Project config ignored — project
.codex/config.tomlonly applies when the project is trusted.
- Authentication details
- Tools reference
- Recipes — Codex is a strong fit for batch jobs.