Codex CLI integration
OpenAI’s Codex CLI supports MCP servers, giving it access to Oka’s 19 tools for institutional intelligence.
Setup
1. Add to your Codex config
Edit ~/.codex/config.toml (global) or .codex/config.toml (project-scoped):
[mcp_servers.oka]command = "npx"args = ["-y", "@oka-core/reason"]2. Authenticate
In a Codex session, use the login tool:
Use the login tool to authenticate with Oka
This opens your browser to id.oka.so where you sign in or create an account. Your credentials are stored locally and refresh automatically.
3. Verify the connection
codex mcp listYou should see oka listed with its tools.
Codex-specific options
Timeouts
Codex supports per-server timeout configuration:
[mcp_servers.oka]command = "npx"args = ["-y", "@oka-core/reason"]startup_timeout_sec = 15tool_timeout_sec = 30Tool filtering
Restrict which Oka tools Codex can use:
[mcp_servers.oka]command = "npx"args = ["-y", "@oka-core/reason"]enabled_tools = ["context", "observe", "decision", "done"]CLI management
# Add a servercodex mcp add oka -- npx -y @oka-core/reason
# List serverscodex mcp list
# Remove a servercodex mcp remove okaTips
- Project-scoped
.codex/config.tomlonly works in trusted projects. Runcodex trustin your project root first. - Set
OKA_WORKSPACEin the[mcp_servers.oka.env]section to scope events to your project. - Use
enabled = falseto temporarily disable Oka without removing the configuration.