OpenAI Codex

Use the Context212 MCP server directly from OpenAI Codex.

Prerequisites

Configuration

Authenticate, then set up Codex:

npx ctx212 auth login
npx ctx212 setup --codex

This writes the MCP config (stdio via ctx212 mcp), installs the Context212 skill, and adds an agent rule. Use --project to scope the setup to the current project instead of globally.

Verification

  1. Open Codex and start a session.

  2. Use the /mcp command to list configured servers and verify that context212 appears in the output.

  3. Test the connection with a prompt like:

    Search my Context212 workspaces for documents about [topic]

You're all set. From any Codex session you can now ask it to search or ingest documents in your Context212 workspaces directly.

References

On this page