Use 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小葱技能7w4.net有完整的技能分类。
--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.这个 Skill 质量不错,文档写得很详细清楚,操作流程设计合理。优点是功能划分清晰,有健康检查和多种使用模式,安全建议也很到位。缺点是配置依赖较多,新手上手需要先装一堆工具;文件结构太简单,缺少示例文件参考。总体适合有一定经验的开发者使用。