GIT TOOLS

28 tools from the Git MCP Server, categorised by risk level.

View the Git policy →

READ TOOLS

8

WRITE TOOLS

16
add Stages files for commit. Returns structured data with count and list of staged files, including how many were newly staged. 3/5 archive Creates an archive of files from a git repository. Supports tar, tar.gz, and zip formats. Returns structured data with success status, format, outp... 3/5 checkout Switches branches or restores files. Returns structured data with ref, previous ref, whether a new branch was created, and detached HEAD status. 3/5 cherry-pick Applies specific commits to the current branch. Returns structured data with applied commits, any conflicts, and new commit hash. 2/5 commit Creates a commit with the given message. Returns structured data with hash, message, and change statistics. 3/5 config Manages git configuration values. Supports get, set, list, and unset actions. Operates at local, global, system, or worktree scope. 3/5 diff Returns file-level diff statistics as structured data. Use full=true for patch content. 2/5 log Returns commit history as structured data. 2/5 log-graph Returns visual branch topology as structured data. Wraps `git log --graph --oneline --decorate`. 2/5 merge Merges a branch into the current branch. Supports abort, continue, and quit actions. Returns structured data with merge status, fast-forward detect... 3/5 pull Pulls changes from a remote repository. Returns structured data with success status, summary, change statistics, conflicts, up-to-date and fast-for... 2/5 push Pushes commits to a remote repository. Returns structured data with success status, remote, branch, summary, and whether the remote branch was newl... 3/5 rebase Rebases the current branch onto a target branch. Supports abort, continue, skip, and quit for conflict resolution. Returns structured data with suc... 3/5 reflog Returns reference log entries as structured data, useful for recovery operations. Also supports checking if a reflog exists. 2/5 restore Discards working tree changes or restores files from a specific commit. Returns structured data with restored files, source ref, and staged flag. 3/5 submodule Manages git submodules. Supports list (default), add, update, sync, and deinit actions. List returns structured submodule data with path, SHA, bran... 3/5

DESTRUCTIVE TOOLS

4
How many tools does the Git MCP server have? +

The Git MCP server exposes 28 tools across 3 categories: Read, Write, Destructive.

How do I enforce policies on Git tools? +

Use Intercept, the open-source MCP proxy. Write YAML rules for each tool — rate limits, argument validation, or deny rules — then run Intercept in front of the Git server.

What risk categories do Git tools fall into? +

Git tools are categorised as Read (8), Write (16), Destructive (4). Each category has a recommended default policy.

Enforce policies on Git

Open source. One binary. Zero dependencies.

npx -y @policylayer/intercept
github.com/policylayer/intercept →
// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.