OpenAI Codex
Guide for connecting codex with PlanExe via MCP.
Prerequisites
- Access to Codex.
- PlanExe MCP server reachable by Codex.
Quick setup
- Start Codex.
- Ask for MCP tools.
- Call
prompt_examplesto get examples. - Call
task_createto start a plan.
Sample prompt
Get example prompts for creating a plan.
Success criteria
- You can retrieve prompt examples.
- You can create a plan task.
- You can download the report.
Interaction
In a terminal, start codex like this:
Inside codex; these are my interactions:
- tell me about the mcp tools you have access to
- for planexe, get the prompt examples
- I want you to formulate a prompt about constructing a new variant of english where the worst inconsistencies have been fixed such as 11th vs 1st, 21st, 31st, potentially eliminated such suffixes. And the pronounciation inconsistencies have been cleaned up. I want you to adhere to the planexe example prompts.
- it's not just the ordinals. try again
- go ahead create this plan
- status
- status
- status
- download both
- summarize the html file
The created plan is here: Clean English
Prerequisites
A working installation of PlanExe.
- The recommended way is to install PlanExe by following the Getting Started instructions.
Make sure that
docker compose upis running, in order to connect to PlanExe. - Alternatively: Run PlanExe on another server and port.
- Alternatively: If you are a developer run PlanExe inside a python virtual environment.
Double check that PlanExe can take a prompt and create a plan. Since it doesn't make sense to start configuring Cursor if the PlanExe installation is incomplete.
Configuring Codex
This is the command template. Make sure you tweak it, before running it.
codex mcp add planexe --env PLANEXE_URL="http://localhost:8001/mcp" --env PLANEXE_PATH="/Users/your-name/Desktop" -- uv run --with mcp /path/to/PlanExe/mcp_local/planexe_mcp_local.py
Make these adjustments to the command line.
- Make adjustments to
/path/to/PlanExeso it points to where PlanExe is located on your computer. - Make adjustments to
/Users/your-name/Desktopso it points to the directory where PlanExe is allowed to write to, so the plan can be downloaded. - Optional: Make adjustments to
http://localhost:8001/mcpif you have PlanExe running on another port.
Verify that it's working.