mait.sh1.132.1

Private beta: features and content may change. No warranty; use at your own risk.

Tools

The eight Git tools grouped by step of the work loop, with their parameters, the git_manual prompt and the limits.

Beta
Overview

Eight tools that follow a look, change, share loop.

MCP Git gives your agent eight tools that follow a simple loop: look at the checkout, change it, share the result. Every tool uses a strict schema, so an argument it does not define fails the call instead of being ignored.

Look

See the checkout without changing it.

ToolSourceUse it toParameters
git_inspectMAITSee the branch, how far it is ahead of or behind its upstream, and the staged and unstaged paths. Ask for the diff to also get size-limited line-level changes in place of the simple clean flag.with_diff (optional, default false)
git_logMAITPage through a branch's history, or read one commit in full.branch, max_count, offset, commit_id (all optional)
git_diffMAITCompare two refs with size-limited output. By default it covers a limited number of files, lines and bytes, and it marks the result as truncated so you know when something was left out.from (required), to (required), max_files (default 50), max_lines (default 2,000), max_bytes (default 65,536)

Why: read first, and read the structured fields. To list the files in a commit, call git_diff with the commit and its parent.

Change

Branch, commit and manage repositories.

ToolSourceUse it toParameters
git_branchMAITList branches, create one or check one out. Creating works only from the develop branch, and a checkout needs a clean working tree.action (required), name
git_repoMAITClone a repository, start a new one, or manage submodules. A clone or init does not move the running service into the new folder.action (required), url, path, ref, name
git_commitMAITStage the paths you name and commit them in one call. The subject must follow the conventional commit format; during a rebase it only stages.subject (required), bullets, patterns

Why: git_commit records the whole staged snapshot, including anything already staged, so review first. A rejected message can leave the staging changed. Worktree actions are not offered.

Share

Publish and keep up with develop.

ToolSourceUse it toParameters
git_remoteMAITList remotes, fetch, or push a branch. Pushing the main, master or develop branches is refused, and force push is not available.action (required: list, fetch or push), remote, branch
git_rebaseMAITPlan and run a rebase of your branch onto fetched origin/develop, then bring develop forward to it. You work through it step by step and can check the status or abort at any point.action (required: plan, start, continue, abort, status or merge), plan (required for start)

Why: the rebase target is fixed at origin/develop, and a conflict comes back as a result with the file paths. A rewritten published branch can be refused as non-fast-forward; there is no force-push option. Verify the remote relationship before choosing publication.

Manual

A manual the agent can fetch.

git_manual is a prompt, not a tool. Fetch it with prompts/get. It returns one message with every tool's arguments, the standard workflows and the operating rules, such as inspecting before changing and fetching before a rebase. It teaches the agent; it adds no enforcement.

Limits

What to expect when a call fails.

A refusal can arrive as a tool error, or as a successful result with type: "error"; an agent checks both. The limits that matter:

LimitValue
Callsgit_repo capacity 5, refill 5/min; other tools capacity 30, refill 30/min; shared by clients
One call60-second response deadline including queues; active work retains capacity and exclusive write access until completion
Execution capacityFour calls; reads also wait when these slots are occupied
CheckoutOne per server: every client shares it, and writes run one at a time
Protected branchesPushes to main, master and develop are refused; there is no force push
Diff50 files, 2,000 lines and 65,536 line-content bytes returned by default; oversized collections and results are refused

Zero ahead and behind counts do not prove a branch is published. See Troubleshooting for every refusal and its fix.