
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 程式代理在同一個儲存庫上記錄認領、任務、決策、訊息和提交歸屬。