@lioneltay/worktree-mcp
v0.0.3
Published
MCP server for managing git worktrees
Readme
@lioneltay/worktree-mcp
MCP server for managing git worktrees so AI agents can create isolated workspaces for parallel development.
Install
Add the MCP server to Claude Code:
claude mcp add worktree npx -y @lioneltay/worktree-mcpOr add it manually to your .mcp.json:
{
"mcpServers": {
"worktree": {
"command": "npx",
"args": ["-y", "@lioneltay/worktree-mcp"]
}
}
}Claude Code Plugin
You can also install as a plugin:
# 1. Add the marketplace
claude plugin marketplace add lioneltay/agent-forge
# 2. Install the plugin
claude plugin install worktree-mcp@agent-forgeTools
create_worktree
Create a new git worktree.
Input:
branch(string, required) — Branch name to checkout or createnewBranch(boolean, optional) — Create a new branchfrom(string, optional) — Base branch/commit for new branchname(string, optional) — Custom folder name
Returns: The created worktree name and path.
list_worktrees
List all managed worktrees with status.
Returns: JSON array of worktree objects with name, path, branch, status, ahead/behind counts, and change counts.
remove_worktree
Remove a git worktree.
Input:
name(string, required) — Worktree name to removeforce(boolean, optional) — Force removal with uncommitted changes
Returns: Confirmation message.
License
MIT
