Overview
Connect CodeAlive with OpenAI’s Codex CLI to enhance your AI coding agent with deep codebase understanding. Codex uses a TOML configuration format, which is unique among MCP clients.Prerequisites
- Codex CLI installed (github.com/openai/codex)
- CodeAlive account with API key (Sign up here)
- Indexed repositories in your CodeAlive dashboard
Setup
Add CodeAlive Server
- Docker STDIO (Recommended)
- Streamable HTTP (Experimental)
Add this to
~/.codex/config.toml:YOUR_API_KEY_HERE with your actual CodeAlive API key.Usage
Once connected, Codex can:- Search your codebase semantically across all indexed repositories
- Answer architecture questions with full project context
- Find patterns and implementations across multiple services
Troubleshooting
MCP server not detected
MCP server not detected
- Verify the config file is at
~/.codex/config.toml - Check TOML syntax (use a TOML validator)
- Ensure Docker is running (for STDIO option)
- Restart Codex
HTTP transport not working
HTTP transport not working
Streamable HTTP requires the experimental Rust MCP client. If it doesn’t work, use the Docker STDIO option instead.
Authentication errors
Authentication errors
- Verify your API key is correct
- Check the TOML syntax for headers
- Try regenerating your API key in the dashboard