MCP server
by blade47
Access ShadowGit repositories securely with read-only git log, diff, blame, and grep to analyze commit history and debug
Provides AI assistants with secure read-only access to ShadowGit repositories for analyzing detailed commit history and code evolution. Includes session management to help AI create clean, organized commits instead of fragmented auto-commits.
ShadowGit is a community-built MCP server published by blade47 that provides AI assistants with tools and capabilities via the Model Context Protocol. Access ShadowGit repositories securely with read-only git log, diff, blame, and grep to analyze commit history and debug It is categorized under developer tools. This server exposes 5 tools that AI clients can invoke during conversations and coding sessions.
You can install ShadowGit in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
ShadowGit is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
We evaluated ShadowGit against two servers with overlapping tools; this profile had the clearer scope statement.
ShadowGit is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
ShadowGit has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
ShadowGit is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
We wired ShadowGit into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
We evaluated ShadowGit against two servers with overlapping tools; this profile had the clearer scope statement.
ShadowGit is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Strong directory entry: ShadowGit surfaces stars and publisher context so we could sanity-check maintenance before adopting.
ShadowGit is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
I recommend ShadowGit for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
showing 1-10 of 45
A Model Context Protocol (MCP) server that provides AI assistants with secure git access to your ShadowGit repositories, including the ability to create organized commits through the Session API. This enables powerful debugging, code analysis, and clean commit management by giving AI controlled access to your project's git history.
ShadowGit automatically captures every save as a git commit while also providing a Session API that allows AI assistants to pause auto-commits and create clean, organized commits. The MCP server provides both read access to your detailed development history and the ability to manage AI-assisted changes properly.
npm install -g shadowgit-mcp-server
# Add to Claude Code
claude mcp add shadowgit -- shadowgit-mcp-server
# Restart Claude Code to load the server
Add to your Claude Desktop MCP configuration:
macOS/Linux: ~/.config/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"shadowgit": {
"command": "shadowgit-mcp-server"
}
}
}
MCP servers are stateless and use stdio transport:
You can configure the server behavior using these optional environment variables:
SHADOWGIT_TIMEOUT - Command execution timeout in milliseconds (default: 10000)SHADOWGIT_SESSION_API - Session API URL (default: http://localhost:45289/api)SHADOWGIT_LOG_LEVEL - Log level: debug, info, warn, error (default: info)SHADOWGIT_HINTS - Set to 0 to disable workflow hints in git command outputs (default: enabled)Example:
export SHADOWGIT_TIMEOUT=30000 # 30 second timeout
export SHADOWGIT_LOG_LEVEL=debug # Enable debug logging
export SHADOWGIT_HINTS=0 # Disable workflow banners for cleaner output
The Session API (requires ShadowGit >= 0.3.0) allows AI assistants to temporarily pause ShadowGit's auto-commit feature and create clean, organized commits instead of having fragmented auto-commits during AI work.
IMPORTANT: AI assistants MUST follow this four-step workflow when making changes:
start_session({repo, description}) - Start work session BEFORE making changes (pauses auto-commits)checkpoint({repo, title, message?, author?}) - Create a clean commit AFTER completing workend_session({sessionId, commitHash?}) - End session when done (resumes auto-commits)This workflow ensures AI-assisted changes result in clean, reviewable commits instead of fragmented auto-saves.
list_repos()Lists all ShadowGit-tracked repositories.
await shadowgit.list_repos()
git_command({repo, command})Executes read-only git commands on a specific repository.
// View recent commits
await shadowgit.git_command({
repo: "my-project",
command: "log --oneline -10"
})
// Check what changed recently
await shadowgit.git_command({
repo: "my-project",
command: "diff HEAD~5 HEAD --stat"
})
// Find who changed a specific line
await shadowgit.git_command({
repo: "my-project",
command: "blame src/auth.ts"
})
start_session({repo, description})Starts an AI work session using the Session API. This pauses ShadowGit's auto-commit feature, allowing you to make multiple changes that will be grouped into a single clean commit.
const result = await shadowgit.start_session({
repo: "my-app",
description: "Fixing authentication bug"
})
// Returns: Session ID (e.g., "mcp-client-1234567890")
checkpoint({repo, title, message?, author?})Creates a checkpoint commit to save your work.
// After fixing a bug
const result = await shadowgit.checkpoint({
repo: "my-app",
title: "Fix null pointer exception in auth",
message: "Added null check before accessing user object",
author: "Claude"
})
// Returns formatted commit details including the commit hash
// After adding a feature
await shadowgit.checkpoint({
repo: "my-app",
title: "Add dark mode toggle",
message: "Implemented theme switching using CSS variables and localStorage persistence",
author: "GPT-4"
})
// Minimal usage (author defaults to "AI Assistant")
await shadowgit.checkpoint({
repo: "my-app",
title: "Update dependencies"
})
end_session({sessionId, commitHash?})Ends the AI work session via the Session API. This resumes ShadowGit's auto-commit functionality for regular development.
await shadowgit.end_session({
sessionId: "mcp-client-1234567890",
commitHash: "abc1234" // Optional: from checkpoint result
})
Parameters:
repo (required): Repository name or full pathtitle (required): Short commit title (max 50 characters)message (optional): Detailed description of changesauthor (optional): Your identifier (e.g., "Claude", "GPT-4", "Gemini") - defaults to "AI Assistant"Notes:
.gitignore patternscommit, push, merge are blockedbranch, tag, reflog are blocked to prevent deletionsexecFileSync with array arguments for secure execution--git-dir, --work-tree, --exec, -c, --config, -C and other risky flagsWhen using ShadowGit MCP Server, AI assistants should:
start_session() → make changes → checkpoint() → end_session()checkpoint() after completing each taskauthor parameter to identify which AI created the checkpointmessage parameter to explain what was changed and whyend_session() to resume auto-commits// 1. First, check available repositories
const repos = await shadowgit.list_repos()
// 2. Start session BEFORE making changes
const sessionId = await shadowgit.start_session({
repo: "my-app",
description: "Refactoring authentication module"
})
// 3. Examine recent history
await shadowgit.git_command({
repo: "my-app",
command: "log --oneline -5"
})
// 4. Make your changes to the code...
// ... (edit files, fix bugs, etc.) ...
// 5. IMPORTANT: Create a checkpoint after completing the task
const commitHash = await shadowgit.checkpoint({
repo: "my-app",
title: "Refactor authentication module",
message: "Simplified login flow and added better error handling",
author: "Claude"
})
// 6. End the session when done
await shadowgit.end_session({
sessionId: sessionId,
commitHash: commitHash // Optional but recommended
})
// Find what broke in the last hour
await shadowgit.git_command({
repo: "my-app",
command: "log --since='1 hour ago' --oneline"
})
// See how a function evolved
await shadowgit.git_command({
repo: "my-app",
command: "log -L :functionName:src/file.ts"
})
// Compare activity across projects
const repos = await shadowgit.list_repos()
for (const repo of repos) {
await shadowgit.git_command({
repo: repo.name,
command: "log --since='1 day ago' --oneline"
})
}
~/.shadowgit/repos.json existslist_repos() to see exact repository names.shadowgit.git directorygit --versionlist_repos()SHADOWGIT_HINTS=0 environment variable to disable workflow bannersIf you see "Session API is offline. Proceeding without session tracking":
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.