搜索

PythonReactSEOPDF
OpenClaw

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, refactor code, debug failures, write or update tests, review implementation options, or otherwise delegate non-trivial development work to the machine-local Codex installation.

hollywood30 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install hollywood3/codex-mcp-dev

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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 \
  --a...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/hollywood3/codex-mcp-dev
Version
—
Commit
1b37013c36b697c8368c8e003dac024f4773d21c
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

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:

```bash
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

```bash
python3 {baseDir}/scripts/codex_mcp.py doctor
```

### Version info

```bash
python3 {baseDir}/scripts/codex_mcp.py version
```

### Normal implementation

```bash
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

```bash
python3 {baseDir}/scripts/codex_mcp.py ask \
  --cwd /absolute/path/to/repo \
  --sandbox-mode read-only \
  --a...

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.