MCP Server Policy
GIT MCP POLICY
Enforce policies on every tool call to the Git MCP Server. 14 tools listed, categorised, and ready for rules.
GET STARTED
Download this policy scaffold and add your rules. Intercept enforces them on every tool call before it reaches Git.
# Download policy scaffold
curl -o git.yaml https://raw.githubusercontent.com/policylayer/intercept/main/policies/git.yaml
# Run with Intercept
intercept --policy git.yaml -- npx -y @modelcontextprotocol/server-git Server documentation: https://github.com/modelcontextprotocol/servers/tree/main/src/git
READ TOOLS
1WRITE TOOLS
2OTHER TOOLS
11POLICY YAML
This scaffold lists every tool with empty rules. Add conditions — rate limits, argument validation, deny rules — then deploy with Intercept.
version: "1"
description: "Policy for modelcontextprotocol/server-git"
default: "allow"
tools:
git_show:
rules: []
git_add:
rules: []
git_create_branch:
rules: []
git_branch:
rules: []
git_checkout:
rules: []
git_clone:
rules: []
git_commit:
rules: []
git_diff:
rules: []
git_diff_staged:
rules: []
git_diff_unstaged:
rules: []
git_init:
rules: []
git_log:
rules: []
git_reset:
rules: []
git_status:
rules: [] RELATED POLICIES
FREQUENTLY ASKED QUESTIONS
What tools does the Git MCP server expose?
The Git MCP Server exposes 14 tools across 3 categories: Read, Write, Other. Each tool can be individually controlled with Intercept policies.
How do I enforce policies on Git?
Download the policy scaffold, add rules (rate limits, argument validation, deny rules), then run Intercept as a proxy in front of the Git MCP server. Every tool call is evaluated against your YAML policy before execution.
Is the Git policy free to use?
Yes. All Intercept policies are open source under the Apache 2.0 licence. Download, modify, and deploy without restrictions.
ENFORCE POLICIES ON GIT
Open source. One binary. Zero dependencies.