A Model Context Protocol (MCP) server for [wtp](https://github.com/satococoa/wtp) (Worktree Plus), written in Rust. It lets AI assistants manage Git
A Model Context Protocol (MCP) server for wtp (Worktree Plus), written in Rust. It lets AI assistants manage Git worktrees via the wtp CLI. The wtp mcp mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 9 defined tools rather than through you.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
Everything the assistant can do here goes through one of these:
list-worktrees — List all worktrees in the repositoryadd-worktree — Create a new worktree for an existing or new branchremove-worktree — Remove a worktree (optionally with its branch)merge-worktree — Return a git merge command for a worktree branchinit-config — Initialize wtp configuration in the repositoryget-worktree-path — Get the absolute path to a worktreeshell-hook — Get shell hook script (bash/zsh/fish)shell-init — Get shell initialization script (bash/zsh/fish)Homebrew — The Homebrew tool exposed by this serverThis sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Wtp MCP's toolset — list-worktrees, add-worktree, remove-worktree and 6 more — is a fair guide to whether it matches your workflow. It is maintained by bnomei; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| list-worktrees | List all worktrees in the repository |
| add-worktree | Create a new worktree for an existing or new branch |
| remove-worktree | Remove a worktree (optionally with its branch) |
| merge-worktree | Return a git merge command for a worktree branch |
| init-config | Initialize wtp configuration in the repository |
| get-worktree-path | Get the absolute path to a worktree |
| shell-hook | Get shell hook script (bash/zsh/fish) |
| shell-init | Get shell initialization script (bash/zsh/fish) |
| Homebrew | The Homebrew tool exposed by this server. |
```json
{
"mcpServers": {
"wtp": {
"command": "wtp-mcp-rs"
}
}
}Configuration as documented by the project. Restart the client after saving.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.