code_generate
Unified entry point for all code-generation tasks.
How to use it
code_generate is exposed by the CodexMCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the code_generate tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install CodexMCP
npm install -g @openai/codexOther tools in CodexMCP (14)
(Optional) Target audience (default: "developer").
(Optional) Source code to assess. If omitted, the CLI might analyze the workspace based on the prompt.
Explain the repository, a file, or a code snippet.
Task description.
(Optional) Level of detail (e.g., "brief", "medium", "detailed", default: "medium").
(Optional) Free-form instructions to guide the review.
(Optional) Feedback on previous iterations.
(Optional) List of areas to focus on (e.g., "security", "performance").
(Optional) Current iteration number (default: 1).
(Optional) Programming language (default: "Python").
(Optional) Dictionary of parameters to fill in the template.
Assess code quality, security, style or other aspects.
(Optional) Code snippet, file path, or concept to explain. If omitted, describes the current repository.
(Optional) Name of the template to use.