Skip to main content
Glama
hewimetall
by hewimetall

mcp-gittree

Simple FastMCP server for multi-project git bare + worktrees (Rust gix, no git CLI).

Layer

Meaning

Path

project

git repo

{type.root}/{project}/.bare

workspace

physical checkout (session current)

{type.root}/{project}/{workspace}/

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.toml

Env 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

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.py

Report: /opt/cursor/artifacts/e2e-vmcp-report.json (or MCP_GITTREE_E2E_REPORT).

License

MIT

F
license - not found
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

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