Codex
Hooks register the session and route approvals, and the Mission Control MCP server is added to Codex.
Before you start
You need a Mission Control account and a workspace. Works with: OpenAI Codex CLI. After the last step, open Settings, then Connections in the app: the check there turns green on the first event.
Set it up
Install the CLI. It needs Node.js 20 or newer.
Terminal npm install -g missionctlSign in. A browser tab opens where you confirm the code and pick the workspace and project. The connection token goes to your OS keychain.
Terminal mc login --base-url https://mc.bregoraxhimusa.devAdd the hooks to
~/.codex/hooks.jsonand the MCP server to~/.codex/config.toml. Both files are backed up first.Terminal mc init codexOpen Codex and run
/hooksto trust them. Codex runs hooks only after that.
- Codex
PreToolUsehooks can only block, so approvals by a person go throughPermissionRequest. - Codex has no notification event, so a waiting Codex session is not marked stuck.
- Costs are not reported: the Codex transcript format is not a stable interface.