mcp-gittree
Provides tools for managing multiple git projects using bare repositories and worktrees, allowing creation of sessions, projects, workspaces, and fetching updates.
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., "@mcp-gittreeList all projects in my work type"
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.
mcp-gittree
Simple FastMCP server for multi-project git bare + worktrees (Rust gix, no git CLI).
Layer | Meaning | Path |
project | git repo |
|
workspace | physical checkout (session current) |
|
worktree | linked git worktree | same path |
Quick start
# install
uv sync --all-packages
cd packages/mcp-gittree-git && uv run maturin develop && cd ../..
# config: see examples/gittree.toml ([types.*] roots + [[project]])
uv run mcp-gittree --config examples/gittree.tomlEnv alternative: MCP_GITTREE_CONFIG=/path/to/gittree.toml.
Related MCP server: mcp-gitea
Tools
Session: create_session, list_sessions, get_session, set_current_workspace
Projects: list_project, add_project(name, git_url, type), check_fetch_project(name), fetch_all_projects
Workspaces: list_workspace, new_workspace, create_worktree (new branch), checkout_worktree, prune_workspace (metadata for deleted=true only)
Not provided: rm/delete, commit, push, git CLI.
Config
[types.work]
root = "~/work"
[types.pet]
root = "~/pet"
[[project]]
name = "my-app"
type = "work"
origin = "https://github.com/org/my-app.git"type is required; roots come from [types.<name>]. Registry writes are serialized (lock + atomic rename).
Prompt / skill
MCP prompt
gittree_workflow— short checklist for agentsAgent skill:
skills/gittree-workflow/SKILL.md
Flow: session → add/list project → workspace → set current → work only there → fetch / prune.
Tests / coverage
make test-rust
make test
make cov-py # median ≥ 93%
make cov-rust # median ≥ 93%
make e2e-vmcp # FastMCP Client tools/call (vmcp-style)scripts/e2e_vmcp.py default mode uses Client(mcp) (real MCP tool calls).
Against a remote vmcp / HTTP MCP gateway:
MCP_GITTREE_MCP_URL=https://…/mcp \
MCP_GITTREE_E2E_GIT_URL=https://github.com/org/repo.git \
uv run python scripts/e2e_vmcp.pyReport: /opt/cursor/artifacts/e2e-vmcp-report.json (or MCP_GITTREE_E2E_REPORT).
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for Superserve sandboxes: create, exec, and manage Firecracker microVMs
MCP server for siGit (sigit.si): browse repos, search code, manage PRs/issues, web search.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server for managing your repositories on Forgejo/Gitea server.67Mozilla Public 2.0
- AlicenseBqualityDmaintenanceMCP server for interacting with Gitea, enabling issue and PR management, repository browsing, file reading, and safe git command execution.1154 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA secure, git-aware MCP server for working with local repositories, enabling file management, shell commands, and full git operations within allowed directories.142 npm1GPL 3.0
- AlicenseNot gradedqualityCmaintenanceAn MCP server that wraps git-worktree-runner to enable AI agents to manage git worktrees safely.Apache 2.0