← 返回 Skills 市场
hollywood3

codex-mcp-dev

作者 qiucen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
363
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install codex-mcp-dev
功能描述
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...
使用说明 (SKILL.md)

Codex MCP Dev

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

Quick Setup

Install prerequisites first:

  • mcporter
  • local codex
  • codex-mcp

Create 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.

Workflow

  1. Use this skill for non-trivial coding tasks.
  2. If it is the first use in a session or something looks broken, run:
    • python3 {baseDir}/scripts/codex_mcp.py doctor
  3. Choose a mode:
    • Analysis / planning / explanation: use ask without --full-auto
    • Implementation / refactor / test-writing: use ask --full-auto
  4. Always set --cwd to the target repo or project directory.
  5. Give Codex a concrete prompt with files, constraints, and acceptance criteria.
  6. After Codex responds, inspect files and run local tests yourself when feasible instead of trusting the tool output blindly.
  7. Summarize changes, tests run, and any remaining risks.

Good Uses

  • Implementing features across multiple files
  • Fixing bugs with real repo context
  • Refactoring with constraints
  • Writing or updating tests
  • Debugging failing commands or stack traces
  • Asking local Codex for a second implementation pass or review

Command Patterns

Health check

python3 {baseDir}/scripts/codex_mcp.py doctor

Version info

python3 {baseDir}/scripts/codex_mcp.py version

Normal implementation

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."

Read-only analysis

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."

Long prompt from file

python3 {baseDir}/scripts/codex_mcp.py ask \
  --cwd /absolute/path/to/repo \
  --full-auto \
  --prompt-file /tmp/codex-task.txt

Prompting Rules

Include as many of these as possible:

  • Target files or directories
  • Desired behavior
  • Exact error messages or failing tests
  • Constraints on scope
  • Required test updates
  • Expected output format

Prefer prompts like:

  • "Fix the failing test in tests/api.test.ts without changing public behavior. Run the relevant tests and summarize the root cause."
  • "Refactor src/cache.py for readability, keep behavior identical, and add regression tests for TTL edge cases."
  • "Review the auth flow in server/ and identify the top 3 correctness risks with concrete file references."

Guardrails

  • Prefer --full-auto for ordinary implementation work.
  • Do not use --yolo unless the user explicitly wants aggressive execution.
  • Use repo-specific --cwd; do not run against the wrong directory.
  • Validate with local reads/tests when possible.
  • If the task is tiny or surgical, skip this skill and edit directly.
安全使用建议
This wrapper appears to be what it claims (a local Codex/mcporter helper) but exercise caution before installing: 1) the registry metadata should have listed required binaries (mcporter, codex, codex-mcp) — verify those are present and local. 2) The skill can be asked to read arbitrary files (--prompt-file/ stdin) and to make workspace writes (full-auto), so only run it against repositories you trust or a disposable clone. 3) Run python3 scripts/codex_mcp.py doctor to verify mcporter config and binary discovery. 4) Because the source/homepage is unknown, prefer not to enable autonomous invocation for this skill without additional vetting; inspect the mcporter server (codex-cli) implementation and mcporter config before granting it access to real projects.
功能分析
Type: OpenClaw Skill Name: codex-mcp-dev Version: 1.0.0 The skill is a legitimate wrapper for a local development toolchain involving `mcporter` and `codex-mcp-server`, designed to delegate coding tasks to a local Codex instance. The Python script `scripts/codex_mcp.py` provides a structured interface for health checks and task execution using safe subprocess calls and JSON serialization. While the skill supports high-privilege modes like `--yolo` and `danger-full-access`, these are documented features of the underlying tool, and `SKILL.md` includes explicit guardrails advising the agent to use them only when requested and to verify results.
能力评估
Purpose & Capability
The description and SKILL.md describe a local Codex wrapper that communicates via mcporter -> codex-mcp-server -> codex, which matches the included script. However the registry metadata claims no required binaries/env but the script and README explicitly depend on mcporter, codex, and codex-mcp; that mismatch is incoherent and should have been declared.
Instruction Scope
Instructions and the script stay within the claimed domain (sending prompts to a local Codex MCP server, targeting a repo via --cwd). They explicitly allow reading prompt files or stdin and can direct Codex to perform workspace-write actions. Reading files supplied via --prompt-file or running full-auto writes to the repo are expected but present an obvious data/exfiltration and integrity risk if the skill or MCP server is untrusted.
Install Mechanism
There is no external install step; the skill is instruction-only plus a small wrapper script. No remote downloads or package installs are declared, so nothing arbitrary is written to disk by an installer. (The script does call local binaries at runtime.)
Credentials
The skill does not request environment variables, credentials, or config paths in metadata. The code also does not read secrets from environment variables. This is proportionate to its purpose.
Persistence & Privilege
always:false (normal). The skill and script can instruct the local Codex to modify the workspace (via full-auto / workspace-write), which is expected for a developer helper but increases blast radius if the MCP server or skill is malicious. The skill does not request permanent platform-level privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install codex-mcp-dev
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /codex-mcp-dev 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of codex-mcp-dev skill. - Enables real coding work in the current project through the local Codex CLI, mcporter, and codex-mcp-server. - Supports building features, fixing bugs, refactoring, debugging, test writing/updating, and code review tasks. - Includes detailed workflow, setup instructions, and command patterns for various coding scenarios. - Provides prompting guidelines and guardrails to ensure safe, targeted use. - Designed to automate non-trivial development tasks with workspace-local Codex integration.
元数据
Slug codex-mcp-dev
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

codex-mcp-dev 是什么?

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 363 次。

如何安装 codex-mcp-dev?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install codex-mcp-dev」即可一键安装,无需额外配置。

codex-mcp-dev 是免费的吗?

是的,codex-mcp-dev 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

codex-mcp-dev 支持哪些平台?

codex-mcp-dev 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 codex-mcp-dev?

由 qiucen(@hollywood3)开发并维护,当前版本 v1.0.0。

💬 留言讨论