Using with Codex
Codex reads its MCP config from ~/.codex/config.toml. It is the only
one of the five supported editors that uses TOML instead of JSON.
codehub setup writes the correct TOML block for you.
Wire the MCP server
Section titled “Wire the MCP server”codehub setup --editors codexThe writer merges a [mcp_servers.codehub] table into the existing
TOML without touching other tables.
Prerequisite: codehub must be on your PATH — run
mise run cli:link from a checkout, or mise run cli:install-global
to install the packed tarball. See
Install.
The resulting block looks like:
[mcp_servers.codehub]command = "codehub"args = ["mcp"]Restart Codex after the first write so it picks up the new server. Codex spawns the server over stdio and keeps it alive for the session.
Multi-editor setup
Section titled “Multi-editor setup”--editors accepts any comma-separated subset of
claude-code,cursor,codex,windsurf,opencode. The default is all five.
codehub setup --editors codex,claude-codeReverting
Section titled “Reverting”codehub setup --editors codex --undo--undo removes only the [mcp_servers.codehub] table. Other Codex
MCP servers are left alone.
- MCP tools — the catalogue of 29 tools Codex will see.