Fast, bounded, read-only Git evidence for local AI coding agents.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Part of the Weavatrix ecosystem: bounded Git evidence for AI software agents.
weavatrix-git gives AI coding agents fast, bounded, read-only Git evidence.
The Rust crate, CLI, MCP server, and npm package are the same contract:
parse repository storage directly. No git subprocess, C library, hooks,
filters, network access, checkout, or mutation. There is no write API in any
surface.
On the checked-in exact-parity benchmark, 1,000 warm history entries took
0.355 ms with Weavatrix, 0.884 ms with gix, and 1.552 ms with
libgit2. Across eight repositories, Weavatrix won all five measured p50
contracts. These are engine measurements from release builds; the MCP
transport is deliberately not hidden inside the claim.
No Rust toolchain is required:
Generic stdio client configuration:
The npm package contains verified native binaries for Windows x64, Linux x64 and ARM64, and macOS x64 and ARM64. Node only selects and launches the matching binary; repository parsing and MCP handling stay in safe Rust.
| MCP tool | Evidence returned |
|---|---|
git_head | repository identity, hash kind, symbolic HEAD, exact target ID, pack count |
git_history | paginated commit IDs, trees, parents, signatures, timestamps, summaries |
git_diff | paginated added/deleted/modified/type-changed paths with old/new object IDs |
git_status | tracked index and worktree state; untracked files stay on Repository::worktree_safety() |
git_snapshot | canonical immutable path, mode, kind, and object-ID manifest for a revision |
git_worktree_safety | Clean / IgnoredOnly / HasUntracked / DirtyTracked / Unknown; untracked and ignored counts |
Every list tool returns nextCursor, exact object IDs, and a truncated flag.
Non-UTF-8 paths retain their exact bytes in pathHex; display text is never
silently presented as exact evidence.
The MCP binary uses mcport's controlled,
Tokio-free runtime:
Defaults are suitable for interactive stdio. --help exposes overrides for
byte budgets, concurrency, queues, deadline, and batch size. The server writes
only newline-delimited UTF-8 JSON-RPC to stdout; diagnostics go to stderr.
Native Cargo installation is also available:
A scanner discovers files. A code graph models relationships. This crate owns version-control evidence. Keeping that boundary independent lets any Rust application reuse Git intelligence without importing a larger product.
| Area | Support |
|---|---|
| Layouts | worktree, bare, .git indirection, linked worktree commondir |
| Hashes | SHA-1 and SHA-256 object identifiers |
| Refs | loose, symbolic, detached HEAD, packed refs, reflogs |
| Objects | commit, tree, blob, annotated tag |
| Loose storage | bounded zlib/DEFLATE decoded by this crate |
| Packed storage | PACK v2/v3, index v2, OFS_DELTA, REF_DELTA |
| Object lookup | alternates, classic MIDX, caches, shared zero-copy snapshots |
| Commit acceleration | monolithic and split commit-graph chains |
| Path acceleration | changed-path Bloom filters v1/v2 |
| Reachability | pack and MIDX EWAH bitmaps with RIDX ordering |
| Index | DIRC v2/v3/v4, auto-refreshing shared snapshots |
| Queries | typed reads, lazy revwalk, history, tracked status, worktree safety, tree diff |
| Immutable views | canonical commit snapshots with path, mode, and object evidence |
| Scale-out | parallel open, revision-aware timelines, change sets, correlation |
| Extension | ordered, thread-safe, read-only custom ODB backends |
All public reads are in-process. Library code contains no subprocess fallback. Unsupported data returns a typed error rather than an approximate answer.
Custom stores use the same object contract:
For cross-repository analysis, RepositorySet keeps object stores isolated and
returns deterministic serial or parallel results:
The diagnostic CLI uses the library:
Limits bounds object bytes, cache bytes, delta/ref/tree depth, tree and index
entries, reflog/history length, parent count, and bitmap expansion. The crate
forbids unsafe Rust. The default library feature set remains dependency-free;
only the separate mcp feature adds mcport.
The source tree follows explicit modular boundaries:
| Layer | Responsibility |
|---|---|
model | object IDs, typed Git objects, errors, and validation contracts |
storage | loose/pack/MIDX/commit-graph decoding, bounded inflate and caches |
repository | refs, history, diffs, status, snapshots, trees, and revwalks |
workspace | deterministic multi-repository queries and correlation |
mcp | optional read-only protocol adapter over the library |
facade / CLI | stable Rust exports and diagnostic command entry points |
The checked-in strict architecture contract rejects files over 300 physical
lines, functions over 100 physical lines, runtime cycles, mixed foo.rs plus
foo/ module ownership, and any dependency from the protocol-independent
library into the optional MCP adapter. It has no baseline or exceptions.
The suite creates real Git repositories and verifies:
git rev-list --objects;Current core line coverage is 85.27%. CI runs Rust 1.88 on Linux, Windows, and macOS, Clippy with warnings denied, coverage, audit, docs, and package verification.
Release measurements on Windows, 2026-07-27. Every row materializes the result and proves exact identifier, path, object-byte, or status parity before timing:
| Exact-parity operation | weavatrix-git p50 | git.exe p50 |
|---|---|---|
| 6,000-object bitmap reachability | 0.431 ms | 72.656 ms |
| one-entry index read | 0.033 ms | 60.758 ms |
| clean tracked status | 0.186 ms | 72.735 ms |
| cached commit lookup | 0.001 ms | 65.267 ms |
| 1,000-commit history, reused repository | 0.086 ms | 66.961 ms |
Direct in-process comparison on the same packed 2,000-commit fixture:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/weavatrix-git)<a href="https://allmcps.com/mcp/weavatrix-git"><img src="https://allmcps.com/api/badge/weavatrix-git?style=directory" alt="Weavatrix Git on AllMCPs" /></a>