Critical-risk tools in Git MCP Server
4 of the 32 tools in Git MCP Server are classified as critical risk. This page profiles those tools specifically, with recommended policy actions and the attack patterns that target them.
Every operation listed below is an action PolicyLayer recommends controlling at the transport layer. Open any tool to see the full profile, risk score, and YAML policy snippet.
Tools at critical risk
-
git_branch_deleteDestructiveDelete a branch. Removes the specified branch from the repository. By default, only fully merged branches can be deleted unless force is set to true.
-
git_cleanDestructiveRemove untracked files from the working directory. Deletes files that aren
-
git_reset_commitDestructiveReset the current branch to a specific commit. This changes where the branch HEAD points to, with different modes affecting the working directory and index differently (hard: di...
-
git_stash_popDestructiveApply and remove a stash. Applies the specified stash to the working directory and then removes it from the stash stack. Combines the apply and drop operations.
Attacks that target this class
Critical-risk tools in any server share these documented attack patterns. Each links to the full case and the defensive policy.