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 "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hewimetall/mcp-gittree'
If you have feedback or need assistance with the MCP directory API, please join our Discord server