mission/control

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

  1. Install the CLI. It needs Node.js 20 or newer.

    Terminal
    npm install -g missionctl
  2. Sign 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.dev
  3. Add the hooks to ~/.codex/hooks.json and the MCP server to ~/.codex/config.toml. Both files are backed up first.

    Terminal
    mc init codex
  4. Open Codex and run /hooks to trust them. Codex runs hooks only after that.

  • Codex PreToolUse hooks can only block, so approvals by a person go through PermissionRequest.
  • 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.