How to Add an MCP Server to Codex with CLI or TOML
This guide explains how to add an MCP server to Codex with `codex mcp add` or by editing `config.toml`. The Codex CLI, IDE extension, and desktop app share MCP configuration; the guide also covers environment variables, remote servers, verification, and common errors.