Codex
Codex supports MCP servers through a shared TOML configuration. GodotIQ integrates with both the Codex CLI and the VS Code extension to give your AI spatial, code, and runtime understanding of your Godot project.
Running godotiq install-addon automatically creates AGENTS.md with development rules for this client. No manual configuration needed.
-
Install GodotIQ:
Terminal window pip install godotiq -
Add the MCP server:
Option A — CLI command:
Terminal window codex mcp add godotiq -- uvx godotiqOption B — Edit config file:
Create or edit
~/.codex/config.toml:config.toml [mcp_servers.godotiq]command = "uvx"args = ["godotiq"][mcp_servers.godotiq.env]GODOTIQ_PROJECT_ROOT = "/path/to/your/godot/project"Replace the path with your Godot project root (the directory containing
project.godot).uvxauto-installs godotiq on first use. -
Verify the connection:
Run
/mcpinside Codex orcodex mcpin your terminal. GodotIQ should appear in the list of active MCP servers.
Tips for Codex
Section titled “Tips for Codex”Start with Project Context
Section titled “Start with Project Context”Begin each session by asking Codex to understand your project:
“Use godotiq_project_summary to understand this project, then help me with…”
This gives Codex full project awareness (architecture, file relationships, conventions) before you start working.
Use Natural Language
Section titled “Use Natural Language”You don’t need to specify tool names. GodotIQ tools are designed to be invoked naturally:
- “What’s the layout of my dungeon level?” →
godotiq_scene_map - “What would break if I rename PlayerManager?” →
godotiq_impact_check - “Place torches along the corridor walls” →
godotiq_placement - “Why is the health bar not updating?” →
godotiq_trace_flow+godotiq_signal_map
Codex will select the right tool based on your question.
Multi-Tool Chains
Section titled “Multi-Tool Chains”Codex can call multiple GodotIQ tools in sequence. Common patterns:
- Debug flow:
godotiq_project_summary→godotiq_trace_flow→godotiq_signal_map - Safe refactor:
godotiq_impact_check→godotiq_signal_map→ make changes →godotiq_validate - Level review:
godotiq_scene_map→godotiq_spatial_audit→godotiq_placement(for fixes)
Project-Scoped Config
Section titled “Project-Scoped Config”For per-project configuration, create .codex/config.toml in the project directory instead of the global ~/.codex/config.toml. Codex uses the local config when you run from that directory.
Activate Pro
Section titled “Activate Pro”After purchasing GodotIQ Pro, add your license key:
Option A — CLI (quickest):
codex mcp add godotiq -- env GODOTIQ_PROJECT_ROOT=/path/to/your/godot/project GODOTIQ_LICENSE_KEY=GODOTIQ-XXXX-XXXX-XXXX-XXXX uvx godotiqOption B — Edit config file:
[mcp_servers.godotiq.env]GODOTIQ_PROJECT_ROOT = "/path/to/your/godot/project"GODOTIQ_LICENSE_KEY = "GODOTIQ-XXXX-XXXX-XXXX-XXXX"Troubleshooting
Section titled “Troubleshooting”Tools not appearing
Section titled “Tools not appearing”- Check
config.tomlsyntax — TOML is strict about quoting and brackets - Verify with
codex mcpin your terminal - Ensure
godotiqis installed:pip show godotiq
MCP server not responding
Section titled “MCP server not responding”- Check that the project path exists and contains
project.godot - Update to the latest version:
pip install --upgrade godotiq - Try the CLI command:
codex mcp add godotiq -- uvx godotiq
Bridge tools not working
Section titled “Bridge tools not working”Bridge tools (godotiq_screenshot, godotiq_run, godotiq_node_ops, etc.) are free but require the GodotIQ addon installed in your Godot project and the editor to be running. The addon communicates via WebSocket on port 6007.