프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. 리뷰와 계정 기능은 다음 단계에서 열려요.
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

Codex Subagent

제작자: parisbs버전 0.6.0i★ –i내 컴퓨터에서 실행
레지스트리 이름io.github.parisbs/codex-subagent-mcp

설치

개요

제작자가 쓴 설명(영어 원문)

Delegate coding tasks to the OpenAI Codex CLI, installed separately, with explicit model and effort.

PopNx MCP의 세 기둥

이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.

할 수 있는 일

이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.

  • 연결 방식: 내 컴퓨터에서 실행
  • 전송 방식: stdio
  • 카테고리: 검색 및 AI 기억

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

설치하기 전에

  • 기본 점검: 1개 중 1개 통과
  • 내 컴퓨터에서 내 사용자 계정의 권한(파일, 네트워크, 앱)으로 실행돼요.
  • 직접 입력할 값: CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR, CODEX_SUBAGENT_MAX_BACKGROUND_JOBS, CODEX_SUBAGENT_USAGE_LOG, CODEX_SUBAGENT_DEFAULT_MODEL, CODEX_SUBAGENT_DEFAULT_EFFORT, CODEX_SUBAGENT_ALLOWED_MODELS, CODEX_SUBAGENT_DEFAULT_SANDBOX, CODEX_SUBAGENT_MAX_SANDBOX, CODEX_SUBAGENT_MAX_EFFORT, CODEX_SUBAGENT_MCP_SERVERS, CODEX_SUBAGENT_PLUGINS, CODEX_SUBAGENT_APPS, CODEX_BIN

필요한 것

  • npmNode.js 설치(npx 명령어용)

어떤 앱을 쓰세요?

위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.

Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요

{
  "mcpServers": {
    "codex-subagent": {
      "command": "npx",
      "args": [
        "-y",
        "codex-subagent-mcp"
      ],
      "env": {
        "CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR": "your-value",
        "CODEX_SUBAGENT_MAX_BACKGROUND_JOBS": "your-value",
        "CODEX_SUBAGENT_USAGE_LOG": "your-value",
        "CODEX_SUBAGENT_DEFAULT_MODEL": "your-value",
        "CODEX_SUBAGENT_DEFAULT_EFFORT": "your-value",
        "CODEX_SUBAGENT_ALLOWED_MODELS": "your-value",
        "CODEX_SUBAGENT_DEFAULT_SANDBOX": "your-value",
        "CODEX_SUBAGENT_MAX_SANDBOX": "your-value",
        "CODEX_SUBAGENT_MAX_EFFORT": "your-value",
        "CODEX_SUBAGENT_MCP_SERVERS": "your-value",
        "CODEX_SUBAGENT_PLUGINS": "your-value",
        "CODEX_SUBAGENT_APPS": "your-value",
        "CODEX_BIN": "your-value"
      }
    }
  }
}

터미널에서 이 명령어를 실행하세요

claude mcp add codex-subagent --env CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR=your-value --env CODEX_SUBAGENT_MAX_BACKGROUND_JOBS=your-value --env CODEX_SUBAGENT_USAGE_LOG=your-value --env CODEX_SUBAGENT_DEFAULT_MODEL=your-value --env CODEX_SUBAGENT_DEFAULT_EFFORT=your-value --env CODEX_SUBAGENT_ALLOWED_MODELS=your-value --env CODEX_SUBAGENT_DEFAULT_SANDBOX=your-value --env CODEX_SUBAGENT_MAX_SANDBOX=your-value --env CODEX_SUBAGENT_MAX_EFFORT=your-value --env CODEX_SUBAGENT_MCP_SERVERS=your-value --env CODEX_SUBAGENT_PLUGINS=your-value --env CODEX_SUBAGENT_APPS=your-value --env CODEX_BIN=your-value -- npx -y codex-subagent-mcp

실행하기 전에 빈 값을 채워 주세요.

Cursor에서 열기

또는 설정을 직접 복사하기

프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요

{
  "mcpServers": {
    "codex-subagent": {
      "command": "npx",
      "args": [
        "-y",
        "codex-subagent-mcp"
      ],
      "env": {
        "CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR": "your-value",
        "CODEX_SUBAGENT_MAX_BACKGROUND_JOBS": "your-value",
        "CODEX_SUBAGENT_USAGE_LOG": "your-value",
        "CODEX_SUBAGENT_DEFAULT_MODEL": "your-value",
        "CODEX_SUBAGENT_DEFAULT_EFFORT": "your-value",
        "CODEX_SUBAGENT_ALLOWED_MODELS": "your-value",
        "CODEX_SUBAGENT_DEFAULT_SANDBOX": "your-value",
        "CODEX_SUBAGENT_MAX_SANDBOX": "your-value",
        "CODEX_SUBAGENT_MAX_EFFORT": "your-value",
        "CODEX_SUBAGENT_MCP_SERVERS": "your-value",
        "CODEX_SUBAGENT_PLUGINS": "your-value",
        "CODEX_SUBAGENT_APPS": "your-value",
        "CODEX_BIN": "your-value"
      }
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

VS Code에서 열기

또는 설정을 직접 복사하기

프로젝트의 .vscode/mcp.json에 붙여 넣으세요

{
  "servers": {
    "codex-subagent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "codex-subagent-mcp"
      ],
      "env": {
        "CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR": "your-value",
        "CODEX_SUBAGENT_MAX_BACKGROUND_JOBS": "your-value",
        "CODEX_SUBAGENT_USAGE_LOG": "your-value",
        "CODEX_SUBAGENT_DEFAULT_MODEL": "your-value",
        "CODEX_SUBAGENT_DEFAULT_EFFORT": "your-value",
        "CODEX_SUBAGENT_ALLOWED_MODELS": "your-value",
        "CODEX_SUBAGENT_DEFAULT_SANDBOX": "your-value",
        "CODEX_SUBAGENT_MAX_SANDBOX": "your-value",
        "CODEX_SUBAGENT_MAX_EFFORT": "your-value",
        "CODEX_SUBAGENT_MCP_SERVERS": "your-value",
        "CODEX_SUBAGENT_PLUGINS": "your-value",
        "CODEX_SUBAGENT_APPS": "your-value",
        "CODEX_BIN": "your-value"
      }
    }
  }
}

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.

선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.

직접 입력할 값

  • CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR env
    Delegation and follow-up processes per rolling hour: decimal integer 1 to 9007199254740991; unset means unrestricted. In memory per server; probes never count.
  • CODEX_SUBAGENT_MAX_BACKGROUND_JOBS env
    Cap on running background jobs: decimal integer 1 to 8 (default 8). Blocking calls do not use this cap.
  • CODEX_SUBAGENT_USAGE_LOG env
    Opt-in local usage log: on or off (default off). Records counts and settings, never prompts, code or paths; labels are caller text.
  • CODEX_SUBAGENT_DEFAULT_MODEL env
    Model used when a call names none. Unset: the only entry of a single-entry CODEX_SUBAGENT_ALLOWED_MODELS, otherwise a call without a model is refused with a suggestion.
  • CODEX_SUBAGENT_DEFAULT_EFFORT env
    Reasoning effort used when a call specifies none: none, minimal, low, medium, high, xhigh, max or ultra. Unset: the model's own default. Cannot exceed CODEX_SUBAGENT_MAX_EFFORT.
  • CODEX_SUBAGENT_ALLOWED_MODELS env
    Comma-separated allow-list of model slugs; anything else is refused. Unset: unrestricted. A single entry acts as the default model; an empty entry is a configuration error.
  • CODEX_SUBAGENT_DEFAULT_SANDBOX env
    Sandbox used when a call specifies none: read-only, workspace-write or danger-full-access. Defaults to read-only and cannot exceed the ceiling.
  • CODEX_SUBAGENT_MAX_SANDBOX env
    Ceiling on what a delegation may do: read-only, workspace-write or danger-full-access. Defaults to workspace-write; danger-full-access must be set explicitly.
  • CODEX_SUBAGENT_MAX_EFFORT env
    Ceiling on reasoning effort: none, minimal, low, medium, high, xhigh, max or ultra. Unset: unrestricted. Higher efforts are lowered to a supported level, or refused if none fits.
  • CODEX_SUBAGENT_MCP_SERVERS env
    MCP servers from Codex's config a delegation keeps: none (default), all, or comma-separated names.
  • CODEX_SUBAGENT_PLUGINS env
    Installed Codex plugins a delegation keeps: none (default), all, or comma-separated name@marketplace ids.
  • CODEX_SUBAGENT_APPS env
    Whether a delegation keeps Codex's apps (connectors to external services): off (default) or on.
  • CODEX_BIN env
    Codex executable name or path. Unset: codex, searched on PATH. On Windows it must run directly, such as codex.exe; a .cmd or .bat shim is refused.

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 6일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 parisbs 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • … 아직 점검 안 함

    계속 관리되고 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • … 아직 점검 안 함

    라이선스 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

검색 및 AI 기억 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 7248개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 7248개 중 70%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 7248개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

Codex Subagent, 안전한가요?

해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.6.0)은 17일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: Context7, Codebase Memory, Exa

대안

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

Context7

제작자: upstash

Up-to-date docs for AI agents

컴퓨터 또는 클라우드★ 64,224MIT오늘 업데이트
설치

Codebase Memory

제작자: DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

내 컴퓨터에서 실행★ 48,148MIT20일 전 업데이트
설치

Exa

제작자: exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

클라우드에서 실행★ 5,213MIT지난달 업데이트
설치

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

codex-subagent-mcp

An MCP server that lets Claude Code delegate coding tasks to OpenAI's Codex CLI running on the same machine, with the model and reasoning depth chosen per task. Claude stays the orchestrator. Codex becomes a subagent it can call.

An independent project. Not affiliated with, endorsed by, or supported by OpenAI or Anthropic.

Quick start

Requires Node.js 22+ and the [Codex CLI](https://developers.openai.com/codex/cli) installed, on PATH, and signed in.

claude mcp add codex-subagent -- npx -y codex-subagent-mcp

Ask Claude to run codex_doctor if anything is missing. See [docs/INSTALL.md](docs/INSTALL.md) for platform setup, Claude Desktop and other installation options, and Safety before enabling writes.

What you get

  • You pick the model and the reasoning effort per task, from the catalog your Codex CLI reports live.
  • Read-only by default, with a sandbox ceiling no tool call can exceed.
  • Every finished delegation checks the model, effort, sandbox and directory it asked for against what Codex recorded for the run, and says when they differ or could not be confirmed.
  • Optional output_schema returns JSON that matches your schema, for results Claude can act on directly.
  • Cancelling, timing out or shutting down stops Codex and the commands it started that the server can still find; a command that detached from that process tree can outlive it.

A real read-only delegation asking for the package name, captured 2026-09-30:

codex-subagent-mcp

Commands run (1 total):

  • [exit 0] /bin/zsh -lc "sed -n '1,80p' package.json"

model=gpt-5.6-luna | effort=low | sandbox=read-only | working_dir=/Users/you/project | applied=confirmed | duration=8s | tokens=in 35701 (cached 28160, uncached 7541) / out 88 (reasoning 9) | thread_id=01a0f419-9fd2-79e2-8248-91436f04e297

Why this exists

A single model doing everything has three recurring problems, and delegation solves each one:

Your context window is finite. Having Claude read forty files to answer one question spends context you need for the actual work. Delegating the investigation returns the answer instead of the forty files.

One model has one set of blind spots. A second opinion is worth most when it comes from a different model family — different training, different failure modes. Asking the same model twice mostly gets you the same answer twice.

Not every task deserves the same reasoning budget. Renaming a variable and diagnosing a race condition are not the same job. Here they are separate dials: the *model* sets raw capability, the *reasoning effort* sets how long it deliberates. Cheap work goes to a fast model; a hard problem gets the capable one thinking for as long as it needs.

The server runs on your machine and drives the Codex CLI you already have installed; it holds no credentials of its own. Prompts reach OpenAI through Codex, exactly as when you run codex yourself.

See How it compares for a versioned comparison with other Codex MCP servers.

Using it

Write a bounded delegation

A delegation gets expensive when repeated commands keep adding output to the context carried into later requests. Name the exact question, likely files, stopping condition and evidence the answer must contain; choose higher effort for ambiguity rather than by habit. [Writing a delegation](docs/DELEGATING.md) gives the measured cost model, ranked rules and weak-versus-strong examples using the real tool parameters. Background goes in context and a persona or extra rules in system_instructions, both layered on the built-in quality contract; see the tool reference.

Get a second opinion from a different model family

The value here is not a second run — it is a different set of blind spots.

Ask Codex to review src/server.ts for correctness problems, focusing on error paths. Use a high

reasoning effort and tell it to report each finding with the line and why it matters.

A delegated review like this found the terminate() defect in this repository's own runner: two code paths could each arm a timer while only one was ever cleared.

Investigate without spending your context

Forty files go into the delegation; one answer comes back. Codex runs its own searches and reads whatever it needs; your conversation receives the conclusion.

Have Codex trace how a reasoning effort travels from the MCP tool call down to the arguments

handed to the Codex CLI, and report just the call chain.

Run long work in the background while you keep going

Kick off a Codex run in the background that writes unit tests for src/jobs.ts, then keep helping

me with the API layer.

You get a job_id immediately. Ask for the status whenever you want, and read the result when it is done. Up to eight can run at once; CODEX_SUBAGENT_MAX_BACKGROUND_JOBS can lower that cap. A background request cancelled before its job is created starts nothing.

Buy deep reasoning for one hard problem

Raising the reasoning effort for the whole conversation is expensive. Raising it for one delegation is not.

This intermittent test failure has beaten me twice. Ask Codex to work out the root cause at

maximum reasoning effort, give it test/runner.test.ts and the CI log, and tell it not to change

anything — I want the diagnosis first.

Keep the thread going

Ask Codex to expand on its second finding.

Follow-ups reuse Codex's context, so they cost a fraction of the original. The server restates the same model, effort and directory on every follow-up because Codex itself does not keep them on resume.

Let it write, when you mean it

Have Codex apply its first two suggestions. Let it edit files, but keep it inside a git worktree

so my working tree stays clean.

use_worktree sends the run's edits to ~/.codex/worktrees/; results list the file changes Codex reported and where each landed, up to a thousand distinct entries, then report the omitted count, and a line names the worktree and the commit it was made from. Codex is told beforehand that uncommitted changes, untracked files and ignored files such as installed dependencies are not in it. The server does not clean worktrees up: they may hold unapplied work. The experimental feature is enabled only for that invocation; your Codex configuration is unchanged. A follow-up continues in the same worktree; when Codex's session file could not confirm where that was, the follow-up asks for working_dir rather than resume in your working tree. See Safety for the write boundary.

Whatever the sandbox, a delegation that writes reports the file changes Codex recorded. It is Codex's account, not a diff of the disk:

Files changed (2):
  • [edit] src/codex/runner.ts
  • [add] test/runner.test.ts

Safety

This server runs another program on your machine, so it is worth two minutes before you enable writes.

What protects you

Delegations are read-only by default. Writing requires an explicit sandbox: "workspace-write" or a user-set default. use_worktree sends edits to a managed git worktree instead of your checkout; the sandbox and add_dirs bound where it can write at all. Unsandboxed runs are unavailable unless you explicitly opt into that ceiling.

The confinement is the operating system's own sandbox: Seatbelt on macOS, bubblewrap on Linux and WSL2, and a native sandbox on Windows. The table was measured on macOS; SECURITY.md records the measurement details. Linux and Windows have not been measured here, and OpenAI's Windows documentation notes that sandboxed commands can fail to read some directories, so reads may be stricter there:

read-onlyworkspace-writedanger-full-access
Write inside the working directorynoyesyes
Write outside it (your home)nonoyes
Network accessnonoyes
Read outside the working directoryyesyesyes

The server chooses the sandbox mode on every run; Codex's own sandbox_workspace_write settings, such as network access or extra writable roots, are not overridden and still apply under workspace-write. The table reflects Codex's defaults.

The sandbox confines the commands Codex runs in its shell. It does not confine MCP or plugin tools: those run as their own processes with your account's full permissions, network included, and under read-only a tool that declares itself read-only runs without approval (measured on codex-cli 0.159.2; ADR 16). So a delegation inherits no MCP server, plugin or app from your Codex setup unless you allow it in the server configuration, and every delegation result includes a line saying what the run was allowed.

There is no shell in the server's invocation path: the CLI is spawned with an argv array and the prompt is written to its stdin, never interpolated into a command string. Shell metacharacters in a prompt are inert.

What does not protect you

Reads are not confined. Codex can read anything your user account can, in every mode — your SSH keys, your cloud credentials. That was measured on macOS, and it is the safe assumption on every platform. Sandboxed network access is blocked so it cannot send them anywhere, but its report comes back to you, and that is a channel.

A prompt is untrusted input, and Codex acts on it. Content you did not write — an issue body, a web page, a log, a file from someone else's repository — can carry instructions. With workspace-write it can direct Codex to modify your repository; even read-only it can direct Codex to read something sensitive and put it in the answer. The sandbox bounds *where* Codex can write. It does not judge *what* it should write, or why it was asked. This is prompt injection, and it is the risk that matters here.

The result is not sanitised. What comes back is text from a model that just read your files. Treat it as data, not as instructions; review what a delegation did rather than assuming it did what you asked.

Reducing the risk
  • Leave the built-in default alone. Read-only handles investigation, review and diagnosis, which is most delegation.
  • If you never want writes, cap it: CODEX_SUBAGENT_MAX_SANDBOX=read-only. No conversation can argue past a ceiling. Register it outside the repository (Claude Code's default local scope, --scope user, or Claude Desktop's config), not in a project .mcp.json that a write-enabled delegation could edit. See Configuration.
  • When you enable writes, add use_worktree so changes land somewhere you can inspect before they touch your branch.
  • Allow MCP servers, plugins or apps in delegations only when a task needs them, and by name. An allowed one runs outside the sandbox, and with auto_approve its tools need no approval at all.
  • Do not assemble delegation prompts from untrusted content when you intend to act on the answer.
  • If this threat matters seriously to you, run Codex under an account or container with no access to your secrets. That solves it at the root instead of bounding it.

SECURITY.md has the full threat model, what a deny_read policy could add, and how to report a vulnerability.

Configuration

Everything is optional, and set through environment variables on the MCP server:

VariableValuesDefaultEffect

| `CODEX_SUBAGENT_DEFAULT_MO

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요

PopNx에게 묻기