Expose Codex itself as an MCP server

mcp & extensions

// what it does

codex mcp-server runs Codex itself as a stdio MCP server, so another MCP client — an IDE or another agent — can call Codex as a tool. This is the inverse of codex mcp add, and it is currently experimental.

// shell

$ codex mcp-server

// gotcha

mcp-server (Codex as a server) is not the same as mcp add (Codex as a client). Don't point Codex at its own mcp-server expecting the add flow.

// resources