Back to Home
bajpainaman icon

DeltaMCP

Verified Safe

by bajpainaman

Overview

Enhances AI assistants with syntax-highlighted and colorized Git diffs, blame, and grep output via Model Context Protocol.

Installation

Run Command
uv --directory /path/to/DeltaMCP run server.py

Environment Variables

  • GIT_CONFIG_GLOBAL

Security Notes

The server demonstrates strong security practices. Input validation is rigorously applied to file paths (preventing path traversal) and commit ranges (using regex patterns). Grep tools are whitelisted to prevent arbitrary command execution. Subprocess execution (`asyncio.create_subprocess_exec`) is used with command lists, not shell strings, mitigating command injection. The server operates over STDIO, minimizing network attack surface, and generated HTML files for browser viewing are local (`file://` URLs). No hardcoded secrets were found. Logging is directed to stderr to prevent interference with STDIO communication.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens15000
Stars0
Forks0
Last Update2025-12-14

Tags

GitDiffSyntax HighlightingAI AssistantMCP