agent-guard-mcp MCP Server
Git-aware safe file ops for AI agents: delete anything except git-tracked source code.
agent-guard-mcp scores 56 (Fair), licensed MIT and written in Go. It installs as a local process. It declares 3 tools. Filed under Version control. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
56 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
81/100 for listing completeness. Lost points: short README, short summary, no docs link.
How quality is graded
Where the 56 comes from
22 + 10 + 0 + 10 + 4 + 10 = 56. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "kavachh-agent-guard-mcp": { "command": "npx", "args": [ "-y", "https://github.com/Kavachh/agent-guard-mcp/releases/download/v0.2.0/agent-guard-mcp_darwin_arm64" ] } }}
Environment variables
This server does not declare environment variables.
Tools3Tool docs quality grade C
All capabilitiescheck_protectiontoolReport whether paths are protected and why.
guard_statustoolSummarize a directory: tracked (protected) vs untracked (deletable) counts.
safe_deletetoolDelete files/dirs; refuses git-tracked files or dirs containing them. Supports dryrun.
About
agent-guard-mcp
MCP server (written in Go, single static binary) for git-aware safe file operations. Give your AI agents (Claude Code, GitHub Copilot CLI, Cursor, …) free rein to delete what they build — while making it impossible for them to delete your git-tracked source code.
Policy: anything is deletable until it's tracked by a git repository.
Tools
| Tool | Purpose |
|---|---|
safe_delete | Delete files/dirs; refuses git-tracked files or dirs containing them. Supports dry_run. |
check_protection | Report whether paths are protected and why. |
guard_status | Summarize a directory: tracked (protected) vs untracked (deletable) counts. |
Install
Build the single static binary (no runtime dependencies):
go build -o agent-guard-mcp .
Or install directly:
go install github.com/kavachh/agent-guard-mcp@latest
Claude Code
claude mcp add agent-guard -- /path/to/agent-guard-mcp
GitHub Copilot CLI
In ~/.copilot/mcp-config.json:
{
"mcpServers": {
"agent-guard": { "command": "/path/to/agent-guard-mcp", "args": [] }
}
}
Any MCP client (generic stdio config)
{ "command": "/path/to/agent-guard-mcp", "args": [] }
Recommended agent instructions
Add to your CLAUDE.md / AGENTS.md / .github/copilot-instructions.md:
Never use
rmin the shell. Always delete files with thesafe_deleteMCP tool, which protects git-tracked source code.
Since safe_delete can never destroy tracked source, it is safe to auto-approve this server's tools in your client's permission settings.
Example
safe_delete { "paths": ["build/", "scratch.txt"] }
→ deleted (untracked)
safe_delete { "paths": ["src/main/java/App.java"] }
→ BLOCKED: git-tracked source file — use `git rm` deliberately if intended
Requirements
giton PATH- Go ≥ 1.24 (build only — the binary itself has zero dependencies)
Testing
24-case edge suite (tracked/staged/ignored files, nested repos, symlinks, dry-run, …):
go build -o agent-guard-mcp . && npm test
Frequently asked questions
What is agent-guard-mcp MCP Server?
Git-aware safe file ops for AI agents: delete anything except git-tracked source code.
How do I install agent-guard-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. agent-guard-mcp MCP Server runs locally from the MCP bundle https://github.com/Kavachh/agent-guard-mcp/releases/download/v0.2.0/agent-guard-mcp_darwin_arm64 with the command npx -y https://github.com/Kavachh/agent-guard-mcp/releases/download/v0.2.0/agent-guard-mcp_darwin_arm64.
Is agent-guard-mcp MCP Server free and open source?
Yes. agent-guard-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does agent-guard-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for agent-guard-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does agent-guard-mcp MCP Server provide?
agent-guard-mcp MCP Server provides 3 tools: check_protection, guard_status, and safe_delete. See the full tool list for descriptions and parameters.
How is agent-guard-mcp MCP Server's trust score calculated?
agent-guard-mcp MCP Server scores 56 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.