
Claude Octopus
io.github.xiaolai由 GitHub 账号 xiaolai 发布v1.1.10更新于 Oct 24, 2026
Spawn multiple specialized Claude Code agents as MCP servers, each independently configured.
发布方自己的服务:Octopus.do
概览
封装 Claude Agent SDK,让助手以 MCP 工具形式运行多个独立配置的 Claude Code 智能体,并提供时间线、会话记录和报告。
- 可以做什么
- 向已配置的 Claude Code 智能体发送任务,并按会话 ID 继续对话,可逐次覆盖模型、工作目录、工具限制、思考强度和预算。以不同模型、提示词和工具集运行多个实例,每个实例作为独立工具出现。把相关调用归入同一运行,并查询跨智能体时间线。读取完整会话记录,列出当前项目或全部项目的 Claude Code 会话历史。为运行生成自包含的 HTML 报告,也可只暴露一个用于生成新智能体配置的工厂向导。
- 适用场景
- 适合在同一个 MCP 客户端中使用多个专用 Claude Code 智能体(例如只读审查者、测试编写者和廉价的快速助手),或需要追踪并汇报多智能体工作流时使用。
- 运行要求
- 以 npm 包形式通过 stdio 在本机运行,需要 Node.js 18 或更高版本,以及可用的 Claude Code CLI 安装。认证使用 ANTHROPIC_API_KEY 中的 Anthropic API 密钥或 Claude Code OAuth 会话,未设置时从父进程继承。配置通过 CLAUDE_* 环境变量完成。
安装
在 SourceWeft 中
- 打开 控制台中的 Claude Octopus,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Claude Octopus
One brain, many arms.
An MCP server that wraps the Claude Agent SDK, letting you run multiple specialized Claude Code agents — each with its own model, tools, system prompt, and personality — from any MCP client.
Why
Claude Code is powerful. But one instance does everything the same way. Sometimes you want a strict code reviewer that only reads files. A test writer that defaults to TDD. A cheap quick helper on Haiku. A deep thinker on Opus.
Claude 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
- Claude Code — the Claude Agent SDK is bundled as a dependency, but it spawns Claude Code under the hood, so you need a working
claudeCLI installation - Anthropic API key (
ANTHROPIC_API_KEYenv var) or an active Claude Code OAuth session
Install
Three paths, pick whichever matches your MCP client.
npm (most direct)
npx (no install needed)
Skip the install entirely — reference claude-octopus@latest in your .mcp.json and the client will fetch on demand (see Quick Start below).
MCP Registry
The server is published to the MCP Registry under the name io.github.xiaolai/claude-octopus. Registry-aware MCP clients can resolve and install it by that name without touching npm directly.
Quick Start
The fastest way to get started:
This interactive wizard lets you pick a template, detects your MCP client, and writes the config for you.
Or add to your .mcp.json manually:
This gives you six tools:
That's it — you have Claude Code as a tool, with full workflow observability built in.
Multiple Agents
The real power is running several instances with different configurations:
Your MCP client now sees distinct tools for each agent — code_reviewer, test_writer, quick_qa — each purpose-built.
Multi-Agent Orchestration
Agents can coordinate through a coordinator pattern: one agent has the others as inner MCP tools via CLAUDE_MCP_SERVERS, and its system prompt drives the pipeline.
The coordinator agent autonomously calls researcher, architect, etc. as MCP tools — fully autonomous, no human in the loop until it finishes. Every invocation is tracked in the shared timeline.
Agent Factory
Don't want to write configs by hand? Add a factory instance:
This exposes a single create_claude_code_mcp tool — an interactive wizard. Tell it what you want ("a strict code reviewer that only reads files") and it generates the .mcp.json entry for you, listing all available options you can customize.
In factory-only mode, no query tools are registered — just the wizard. This keeps routing clean: the factory creates agents, the agents do work.
Init Wizard
Don't want to edit JSON by hand? The init wizard gets you from zero to working in 30 seconds:
It auto-detects installed MCP clients (Claude Desktop, Claude Code, Cursor, Windsurf), merges with existing config, and warns before overwriting.
Skip the menu
Templates
Five built-in templates, battle-tested and ready to use:
Each agent comes pre-tuned with appropriate model, tools, effort level, and system prompt.
Dashboard
Monitor your agents in real time:
Opens a local web dashboard at http://localhost:3456 with:
- Live stats — total runs, invocations, cost, SDK turns, responses, errors
- Recent activity — agent cards for the latest run
- Run table — all runs with cost, duration, and status
- Auto-refresh — SSE connection pushes updates as agents run
The dashboard reads the same timeline index used by the _timeline and _report tools. No additional configuration needed.
Tools
Each non-factory instance exposes:
Query and reply parameters
Timeline
Every agent invocation is recorded in a lightweight JSONL index at ~/.claude-octopus/timelines/timeline.jsonl. This solves the multi-agent correlation problem: when several agents participate in a workflow, the timeline tracks which sessions belong to the same run, in what order they executed, and what role each played.
Full session transcripts stay in Claude Code's own storage (~/.claude/projects/). The timeline is just the table of contents — ~200 bytes per entry — that cross-references via session_id.
How it works
- Every
<name>and<name>_replycall appends one line to the timeline - If you pass
run_id, all agents sharing the samerun_idare grouped into one run - If you omit
run_id, one is auto-generated and returned in the response — pass it to subsequent agents to keep them grouped
Querying the timeline
Multi-agent workflow example
HTML Reports
Generate self-contained HTML reports with agent sequence visualization, cost breakdown, and collapsible transcripts. Dark theme, no external dependencies — one file, open in any browser.
Via MCP tool
Via CLI
What's in the report
- Run summary — agent count, total cost, duration, SDK turns, responses, tool calls
- Timeline bar — numbered dots for each agent (green = success, red = error)
- Agent cards — timing, cost, effort counters, session ID, prompt excerpt
- Collapsible transcripts — full tool calls, reasoning, and results per agent
Reading the effort counters
Three numbers describe how much work an invocation took. They are not interchangeable, and the first one is the one that surprises people:
When an agent calls several tools in parallel, num_turns climbs faster than
the number of visible responses. A run with 3 assistant responses issuing 4
tool calls reports num_turns: 5, response_groups: 3, tool_calls: 4.
maxTurns, meanwhile, is enforced against round trips: that same run
completes under maxTurns: 3 and aborts under maxTurns: 2. So size
maxTurns against responses, not against SDK turns.
Both new counters cover the main agent loop only — work inside a sub-agent
(Task) belongs to its own loop and is excluded. Timeline entries written by
older versions have neither, and render as — rather than as a false zero.
Configuration
All configuration is via environment variables in .mcp.json. Every env var is optional.
Identity
Agent
Prompts
Advanced
Timeline
Authentication
Leave both unset to inherit auth from the parent process. Set one per agent to use a different account or billing source.
Lists accept JSON arrays when values contain commas: ["path,with,comma", "/normal"]
Security
- Permission mode defaults to
default— tool executions prompt for approval unless you explicitly setbypassPermissions. cwdoverrides preserve agent knowledge — when the host overridescwd, the agent's configured base directory is automatically added toadditionalDirectoriesso it retains access to its own context.- Tool restrictions narrow, never widen — per-invocation
toolsintersects with the server restriction (can only remove tools, not add).disallowedToolsunions (can only block more). _replyand_transcripttools respect persistence — not registered whenCLAUDE_PERSIST_SESSION=false.- Timeline writes are best-effort — a failed timeline append never blocks or fails the primary query.
Architecture
How It Compares
Development
License
ISC - Xiaolai Li
来源:README.md,提交 af84244
工具
0版本历史
1- v1.1.10最新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。

Codex Octopus
由 GitHub 账号 xiaolai 发布
封装 OpenAI Codex SDK,让助手把多个各自独立配置的 Codex 代理作为工具运行,每个代理有自己的模型、沙箱和指令。

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

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