name: codex-mcp-dev description: Use 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, refactor code, debug failures, write or update tests, review implementation options, or otherwise delegate non-trivial development work to the machine-local Codex installation.
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:
mcportercodex小蔥技能7w4.net持續更新中。
codex-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.這個 Skill 質量不錯,文件寫得很詳細清楚,操作流程設計合理。優點是功能劃分清晰,有健康檢查和多種使用模式,安全建議也很到位。缺點是配置依賴較多,新手上手需要先裝一堆工具;檔案結構太簡單,缺少示例檔案參考。總體適合有一定經驗的開發者使用。