
Codex Octopus
io.github.xiaolai由 GitHub 账号 xiaolai 发布v1.0.1更新于 Oct 24, 2026
Spawn multiple specialized Codex agents as MCP servers, each independently configured.
发布方自己的服务:Octopus.do
概览
封装 OpenAI Codex SDK,让助手把多个各自独立配置的 Codex 代理作为工具运行,每个代理有自己的模型、沙箱和指令。
- 可以做什么
- 向已配置的 Codex 代理发送任务或问题,获得回复和用于后续对话的 thread_id,并可按次覆盖工作目录、模型、推理强度、额外目录、沙箱与审批策略、网络访问和网页搜索模式。在启用会话持久化时,按 thread_id 继续之前的代理对话。并行运行多个实例,每个以独立工具名暴露,拥有各自的模型、沙箱、推理强度和附加指令。使用工厂实例时只暴露一个向导工具,根据对所需代理的自然语言描述生成现成的配置条目。
- 适用场景
- 适合在同一个 MCP 客户端中同时使用多个不同调校的编码代理,例如只读的严格代码审查者、可写工作区的测试编写者和低成本的快速问答助手,而不是单一的通用 Codex 实例。
- 运行要求
- 通过 npx 或 npm 运行的本地进程;需要 Node.js 18 或更高版本,并安装 Codex CLI 包,因为 SDK 会在底层启动它。OpenAI API 密钥通过 CODEX_API_KEY 环境变量提供,或从父进程继承。所有配置均通过环境变量完成。
安装
在 SourceWeft 中
- 打开 控制台中的 Codex Octopus,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Codex Octopus
One brain, many arms.
An MCP server that wraps the OpenAI Codex SDK, letting you run multiple specialized Codex agents — each with its own model, sandbox, effort, and personality — from any MCP client.
Why
Codex is powerful. But one instance does everything the same way. Sometimes you want a strict code reviewer in read-only sandbox. A test writer with workspace-write access. A cheap quick helper on minimal effort. A deep thinker on xhigh.
Codex Octopus lets you spin up as many of these as you need. Same binary, different configurations. Each one shows up as a separate tool in your MCP client.
Prerequisites
- Node.js >= 18
- Codex CLI — the Codex SDK spawns the Codex CLI under the hood, so you need it installed (
@openai/codex) - OpenAI API key (
CODEX_API_KEYenv var) or inherited from parent process
Install
Or use npx directly in your .mcp.json (see Quick Start below).
Quick Start
Add to your .mcp.json:
This gives you two tools: codex and codex_reply. That's it — you have Codex as a tool.
Multiple Agents
The real power is running several instances with different configurations:
Your MCP client now sees three distinct tools — code_reviewer, test_writer, quick_qa — each purpose-built.
Agent Factory
Don't want to write configs by hand? Add a factory instance:
This exposes a single create_codex_mcp tool — an interactive wizard. Tell it what you want ("a strict code reviewer with read-only sandbox") and it generates the .mcp.json entry for you.
Tools
Each non-factory instance exposes:
Per-invocation parameters (override server defaults):
Configuration
All configuration is via environment variables in .mcp.json. Every env var is optional.
Identity
Agent
Instructions
Advanced
Authentication
Security
- Sandbox defaults to
read-only— the agent can't write files unless you explicitly setworkspace-writeordanger-full-access. cwdoverrides preserve agent knowledge — when the host overridescwd, the agent's configured base directory is automatically added toadditionalDirectories.- Security overrides narrow, never widen — per-invocation
sandboxModeandapprovalPolicycan only tighten (e.g.,workspace-write→read-only), never loosen. _replytool respects persistence — not registered whenCODEX_PERSIST_SESSION=false.- API keys are redacted — the factory wizard never exposes
CODEX_API_KEYin generated configs.
Architecture
Known Limitations
minimaleffort + web_search: OpenAI does not allowweb_searchtools withminimalreasoning effort. Uselowor higher if web search is needed.
Development
License
ISC - Xiaolai Li
来源:README.md,提交 c504a77
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Octopus 集成
Octopus.do
do.octopus官方发布者
一个远程 MCP 服务器,让助手以已登录用户的身份读取和编辑 Octopus.do 可视化站点地图中的页面、区块和评审备注。

Octopus Energy (octopus-mcp)
由 GitHub 账号 mattoddie 发布
面向英国 Octopus Energy 用户的非官方 MCP 服务器,让助手读取智能电表用量、费用、电价与账单,并可选管理电动车充电和 Saving Sessions。

Claude Octopus
由 GitHub 账号 xiaolai 发布
封装 Claude Agent SDK,让助手以 MCP 工具形式运行多个独立配置的 Claude Code 智能体,并提供时间线、会话记录和报告。

Octopus Energy
由 GitHub 账号 pipeworx-io 发布
Octopus Energy 公共 API MCP — 英国能源资费与产品。AI 翻译

Octopus Blackboard
由 GitHub 账号 octoryn 发布
一个本地优先的共享黑板,让多个 AI 编程代理在同一仓库上记录认领、任务、决策、消息和提交归属。