OpenAI Codex

Commands

  • Resume sessions with codex resume and codex resume --last.

Codex MCP Server Configuration

MCP Server configuration in ~/.codex/config.toml.

model = "gpt-5"
model_reasoning_effort = "medium"
 
[projects."/home/fabian/repos/Joaia/holoai-monorepo".mcpServers.figma]
command = "FIGMA_API_KEY=\"XXXX\""
 
[mcp_servers.context7]
args = ["-y", "@upstash/context7-mcp"]
command = "npx"
 
[mcp_servers.mcp-deepwiki]
command = "npx"
args = ["-y", "mcp-deepwiki@latest"]
env = {}
 
[mcp_servers.playwright]
command = "npx"
args = ["@playwright/mcp@latest"]
 
[mcp_servers.exa]
command = "npx"
args = ["-y", "exa-mcp-server"]
env = { "EXA_API_KEY" = "XYZ" }
 
[mcp_servers.serena]
command = "uvx"
args = ["--from", "git+https://github.com/oraios/serena", "serena", "start-mcp-server", "--context", "codex", "--enable-web-dashboard", "false"]
env = {}

MCP Serena

GitHub: oraios/serena: A powerful coding agent toolkit providing semantic retrieval and editing capabilities (MCP server & other integrations)

  • Index your monorepos
  • Ensure web dashboard is disabled to avoid Codex startup errors
 
# install uvx
sudo pacman -S uv
 
# edit configuration
uvx --from git+https://github.com/oraios/serena serena config edit
 
# index monorepo
uvx --from git+https://github.com/oraios/serena serena project index