worktree-boot
Copies .env* files into each new worktree and rewrites port values (e.g. 3000 -> 3001, 5173 -> 5174) so parallel dev servers don't collide, while withholding provider API keys unless explicitly enabled.
Creates and manages git worktrees for parallel development: booting a new branch into a .worktrees/ directory, listing existing worktrees, tearing them down, and previewing operations with a dry-run mode.
Wires per-worktree offset ports into OLLAMA_HOST and LOCAL_LLM_URL so several coding agents can run against local inference stacks without re-indexing or reinstalling dependencies.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@worktree-bootspin up an isolated worktree for agent-2 with shifted ports"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
worktree-boot
One line: npx worktree-boot my-branch (or bunx worktree-boot my-branch): git worktree + copy-on-write node_modules + shifted .env ports in about a second.
Why
Plain git worktree add leaves out gitignored .env files, starts with an empty node_modules, and keeps identical PORT=3000 values so parallel dev servers collide. Docker devcontainers isolate ports but cost gigabytes of RAM and slow boot times.
worktree-boot clones heavy folders using cp --reflink=auto on Linux and macOS when the filesystem supports it (falling back to a recursive copy otherwise, and using recursive copy on Windows). It copies .env*, shifts ports (3000 -> 3001, 5173 -> 5174), and wires LOCAL_LLM_URL / OLLAMA_HOST for local LLM stacks. Provider API keys are not copied unless you pass --propagate-api-keys (CLI) or propagateApiKeys: true (MCP).
Related MCP server: worktree-switcher
Install
bunx worktree-boot agent-2 --allow-write
npx worktree-boot agent-2 --allow-write
# or install in your project / globally
bun add -d worktree-boot
npm i -D worktree-bootJSR:
bunx jsr add @kanchingyg/worktree-boot
npx jsr add @kanchingyg/worktree-bootcargo install --git https://github.com/kanchingyg/worktree-bootThe core engine is Rust (src/lib.rs, src/main.rs, src/mcp.rs). TypeScript under src/*.ts is included for npx / bunx / JSR usage and MCP bridge helpers.
Quick start
npx worktree-boot agent-2 --allow-write
cd .worktrees/agent-2
npm run devnpx worktree-boot list
npx worktree-boot teardown agent-2 --allow-write
npx worktree-boot agent-3 --dry-run # preview paths, clones, and ports without writingMCP
npx worktree-boot --mcp --allow-write
bunx worktree-boot --mcp --allow-writeAdd to your agent MCP config with command: npx and args: ["-y", "worktree-boot", "--mcp", "--allow-write"].
Ollama / OpenAI-compatible locals
Each worktree gets offset ports on OLLAMA_HOST and LOCAL_LLM_URL so you can run several coding agents against local inference without re-indexing or reinstalling dependencies.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Hosted coding agent: start, follow up on and stop tasks that can open GitHub pull requests.
Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
- xhostdOAuthcom.xhostd
Agent-first hosting: create apps, push code, and deploy to HTTPS URLs from your coding agent.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvisions Docker-based development environments on demand, allowing AI agents to create, manage, and inspect containerized dev environments without manual setup.-
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to inspect projects, claim worktrees, and move or start dev servers without changing ports, while coordinating with human-owned locks.14 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables local, permissioned development workflows from compatible AI clients, including filesystem editing, interactive terminals, durable jobs, Git operations, and semantic browser testing.27 npm1Apache 2.0

briqofficial
AlicenseNot gradedqualityAmaintenanceEnables agents to deploy, run, expose, inspect, and manage isolated cloud environments, including databases, caches, browsers, GitHub-hosted apps, and arbitrary OCI images, via MCP tools.1MIT