Skip to content

feat(git): Add optional tamper-evident execution audit logging via GE… - #4734

Open
viruswami5511 wants to merge 3 commits into
modelcontextprotocol:mainfrom
viruswami5511:main
Open

feat(git): Add optional tamper-evident execution audit logging via GE…#4734
viruswami5511 wants to merge 3 commits into
modelcontextprotocol:mainfrom
viruswami5511:main

Conversation

@viruswami5511

Copy link
Copy Markdown

Summary

This PR adds optional tamper-evident execution audit logging to mcp-server-git via the GIT_MCP_AUDIT_DIR environment variable, implementing the open GEF-SPEC-1.0 standard (RFC 8785 canonicalization + Ed25519 hash chaining).

Why This is Useful

When autonomous AI agents (Claude Desktop, Cursor, Cline) execute Git operations (git_commit, git_reset, git_checkout), users need forensic proof of what actions were taken without relying on mutable logs.

  • 100% Optional & Zero Overhead: If GIT_MCP_AUDIT_DIR is not set or guardclaw is not installed, the server operates with zero overhead and zero forced dependencies.
  • Offline Verifiable: Ledgers can be verified anytime with guardclaw verify <DIR>.

Verification

  • Verified standard execution works with 0 changes when unconfigured.
  • Added test_audit_logging_when_enabled in tests/test_server.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant