Install
openclaw skills install codex-mcp-devUse the local Codex CLI through mcporter and codex-mcp-server for real coding work in the current project. Use when the user asks to build features, fix bugs...
openclaw skills install codex-mcp-devUse the local Codex installation through the wrapper script at {baseDir}/scripts/codex_mcp.py.
This gives a stable path:
OpenClaw → mcporter → codex-mcp-server → local codex
Install prerequisites first:
mcportercodexcodex-mcpCreate the project MCP entry if config/mcporter.json does not exist yet:
mcporter config add codex-cli --scope project --command codex-mcp
This skill expects a workspace-local MCP server named codex-cli.
python3 {baseDir}/scripts/codex_mcp.py doctorask without --full-autoask --full-auto--cwd to the target repo or project directory.python3 {baseDir}/scripts/codex_mcp.py doctor
python3 {baseDir}/scripts/codex_mcp.py version
python3 {baseDir}/scripts/codex_mcp.py ask \
--cwd /absolute/path/to/repo \
--full-auto \
--prompt "Implement the requested change, update tests, and summarize what changed."
python3 {baseDir}/scripts/codex_mcp.py ask \
--cwd /absolute/path/to/repo \
--sandbox-mode read-only \
--approval-policy never \
--prompt "Explain the bug, identify likely root cause, and propose the smallest safe fix."
python3 {baseDir}/scripts/codex_mcp.py ask \
--cwd /absolute/path/to/repo \
--full-auto \
--prompt-file /tmp/codex-task.txt
Include as many of these as possible:
Prefer prompts like:
tests/api.test.ts without changing public behavior. Run the relevant tests and summarize the root cause."src/cache.py for readability, keep behavior identical, and add regression tests for TTL edge cases."server/ and identify the top 3 correctness risks with concrete file references."--full-auto for ordinary implementation work.--yolo unless the user explicitly wants aggressive execution.--cwd; do not run against the wrong directory.