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.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server for managing your repositories on Forgejo/Gitea server.64Mozilla Public 2.0
- AlicenseBqualityDmaintenanceMCP server for interacting with Gitea, enabling issue and PR management, repository browsing, file reading, and safe git command execution.113411MIT
- Alicense-qualityCmaintenanceA secure, git-aware MCP server for working with local repositories, enabling file management, shell commands, and full git operations within allowed directories.2011GPL 3.0
- Alicense-qualityBmaintenanceAn MCP server that wraps git-worktree-runner to enable AI agents to manage git worktrees safely.Apache 2.0
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
MCP (Model Context Protocol) server for Appwrite
MCP server for interacting with the Supabase platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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