Agent MCP Server — Kavachh/agent-guard-mcp

Git-aware safe file ops for AI agents: delete anything except git-tracked source code.

Local serverstdioGo

What is the Agent MCP Server?

Git-aware safe file ops for AI agents: delete anything except git-tracked source code.

What it actually does

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.

Configuration

  • git on PATH - Go ≥ 1.24 (build only — the binary itself has zero dependencies)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
safe_deleteDelete files/dirs; refuses git-tracked files or dirs containing them. Supports dry_run.
check_protectionReport whether paths are protected and why.
guard_statusSummarize a directory: tracked (protected) vs untracked (deletable) counts.

Configuration

  • git on PATH - Go ≥ 1.24 (build only — the binary itself has zero dependencies)

Example prompts to try

  • “Use Agent to safe delete.”
  • “Use Agent to check protection.”
  • “Use Agent to guard status.”

Frequently asked questions

Git-aware safe file ops for AI agents: delete anything except git-tracked source code. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.