
Batuta Mcp
io.github.vorluno由 GitHub 帳號 vorluno 發布v0.1.0更新於 Oct 24, 2026
Split a task into plans with disjoint file boundaries; scaffold a git worktree per plan.
概覽
一個無狀態的本機 MCP 伺服器,把任務拆成檔案邊界互不重疊的計畫,並為每個計畫建立一個 git worktree。
- 可以做什麼
- 把一段粗略的任務描述拆成 2–5 個檔案邊界互不重疊的計畫,若邊界重疊會自動重試一次,依賴已登入的 claude CLI。檢查一組計畫之間是否共用檔案。為每個計畫建立獨立的 git worktree 並附上可直接貼上的提示詞,可選擇只預覽不寫入磁碟的 dry run。
- 適用情境
- 當你想在同一個程式碼儲存庫上平行執行多個編碼代理,並希望每個代理只處理各自的一組檔案、互不覆蓋時使用。請注意本專案已退役並封存:Claude Code 現已內建此能力,但已發佈的套件仍可安裝。
- 執行需求
- 透過 npm 套件 @vorluno/batuta-mcp 以 stdio 在本機執行。需要 Bun 1.3+、用於建立 worktree 的 git 2.x,以及已登入的 claude CLI 用於拆分計畫。未宣告 API 金鑰或環境變數;支援任何 MCP 用戶端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Batuta Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
batuta-mcp
Split a task into plans with disjoint file boundaries, then scaffold a git worktree per plan — so parallel agents never step on each other.
A stateless MCP server that turns a brain dump into conflict-free parallel work.
[License: Apache 2.0] [Bun] [Model Context Protocol] [Built with Claude Code]
Retired
Claude Code now does this itself. Splitting work across isolated worktrees so parallel agents do not collide is built in, which is what this existed to provide.
The repository is archived and read-only. It still works — nothing was removed from npm, and the last published version keeps installing — but it will not be maintained, and it does not need to be. If you want the idea rather than the package, the whole design is in
docs/and the licence lets you take it.
Why
Running several coding agents in parallel is fast — until two of them edit the same file and silently clobber each other's work. The fix isn't live coordination; it's separation: give each agent a set of files that don't overlap, and the conflict can't happen by design.
batuta-mcp is the brain that does that split. You hand it a brain dump; it returns plans with disjoint file boundaries, and scaffolds an isolated git worktree for each one.
How it works
It's a stateless MCP server (stdio). No database, no daemon, no web UI — just three tools that compose:
- Decompose a brain dump into 2–5 plans whose
fileBoundariesdon't overlap (auto-corrects once if they do). - Check that the boundaries are truly disjoint.
- Scaffold a
git worktreeper plan, returning a ready-to-paste prompt for each — open them in separate terminals/tabs and let one agent work each, conflict-free.
The "muscle" (running the agents, the terminals) stays in your editor; batuta-mcp is just the planning brain.
Features
- 🧠 Disjoint decomposition — plans are generated so no file appears in two plans.
- ♻️ Auto-correction — if the model returns overlapping boundaries, it retries once to separate them.
- 🌳 Worktree scaffolding — one isolated
git worktreeper plan, with a ready-to-paste prompt. - 🔒 Safe by design — pre-flight checks (valid git repo, no overlaps, no path traversal) before touching disk;
dryRunpreviews without writing. - 🪶 Stateless — nothing persisted; uses your logged-in
claudeCLI (no API key needed).
Requirements
- Bun 1.3+
git2.x (forscaffold_worktrees)- The
claudeCLI, logged in (fordecompose_into_plans) - Claude Code or any MCP client
Installation
From npm — nothing to clone:
From source — if you want to change it:
Configuration
Any MCP client works. The mcpServers entry:
For Claude Code, claude mcp add (above) writes this for you. For Warp or Cursor, paste the snippet into their MCP settings.
Tools
Typical flow
decompose_into_plans→ plans with disjoint boundaries.check_boundary_overlaps→ confirmok: true(or adjust).scaffold_worktrees→ creates the worktrees; open each in its own terminal/tab and paste itssuggestedPrompt.
Development
Built test-first across 10 TDD tasks with per-task and whole-branch review.
Contributing and security
Read CONTRIBUTING.md first — its first line tells you whether your pull request will be considered. Vulnerabilities go to [email protected], never to an issue: see SECURITY.md, where the 72-hour acknowledgement is the one response time we commit to.
License
Apache-2.0 © 2026 Vorluno. See NOTICE.
Up to and including 0.1.0 this was MIT. Those releases stay MIT — a licence already granted cannot be withdrawn. From 0.2.0 on it is Apache-2.0, which grants patent rights explicitly.
來源:README.md,提交 c41087d
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分