New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

git-mcp-wizard

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-mcp-wizard

Git MCP Wizard - A comprehensive Model Context Protocol server for Git operations

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Git MCP Wizard

TypeScript Model Context Protocol License Node.js

A comprehensive, type-safe Model Context Protocol (MCP) server for Git operations with enhanced safety features, modular architecture, and extensive tool coverage.

🚀 Key Improvements Over Original

This enhanced version provides significant improvements over the original mcp-server-git:

  • 🔷 TypeScript Implementation: Full type safety with Zod schema validation
  • 🏗️ Modular Architecture: Clean separation of concerns with extensible tool categories
  • 🛡️ Enhanced Security: Path validation, operation restrictions, and configurable safety controls
  • 📊 Comprehensive Tool Set: 40+ Git operations vs 12 in the original
  • 💾 Session Management: Persistent working directory across operations
  • 🔍 Better Error Handling: Detailed error messages with recovery suggestions
  • 📝 Extensive Documentation: Full API docs, security guide, and examples
  • 🧪 Testing Infrastructure: Jest setup with comprehensive test coverage
  • 🔧 Advanced Features: Worktrees, bisect, reflog, cherry-pick, and more

📋 Feature Comparison

FeatureOriginalEnhanced
LanguagePythonTypeScript
Number of Tools1240+
Type SafetyNoYes (Zod)
Session ManagementNoYes
Security ControlsBasicAdvanced
DocumentationREADME onlyFull docs
TestingNoneJest
ArchitectureSingle fileModular
Error HandlingBasicComprehensive
LoggingBasicStructured (Winston)

🛠️ Installation

Prerequisites

  • Node.js >= 18.0.0
  • Git installed and accessible in PATH
  • npm or yarn

Install from npm

npm install -g git-mcp-wizard

Install from source

git clone https://github.com/jevenson76/git-mcp-wizard.git
cd git-mcp-wizard
npm install
npm run build

⚙️ Configuration

Quick Start with Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "git-wizard": {
      "command": "npx",
      "args": ["git-mcp-wizard"],
      "env": {
        "LOG_LEVEL": "info"
      }
    }
  }
}

Environment Variables

See .env.example for all configuration options:

  • Transport: stdio or SSE (HTTP)
  • Logging: Levels and format
  • Git Settings: Default branch, signing, timeouts
  • Security: Path restrictions, operation controls

📚 Available Tools

Repository Management (4 tools)

  • git_init - Initialize repositories
  • git_clone - Clone repositories
  • git_set_working_dir - Set session directory
  • git_clear_working_dir - Clear session directory

Basic Operations (5 tools)

  • git_status - Working tree status
  • git_add - Stage changes
  • git_commit - Commit changes
  • git_reset - Reset changes
  • git_clean - Remove untracked files

Branching & Merging (5 tools)

  • git_branch - Manage branches
  • git_checkout - Switch branches
  • git_merge - Merge branches
  • git_rebase - Rebase branches
  • git_cherry_pick - Apply commits

Remote Operations (4 tools)

  • git_remote - Manage remotes
  • git_fetch - Fetch updates
  • git_pull - Pull changes
  • git_push - Push changes

History & Inspection (4 tools)

  • git_log - View history
  • git_diff - Show differences
  • git_show - Show objects
  • git_blame - Show authorship

Advanced Features (3 tools)

  • git_stash - Stash changes
  • git_tag - Manage tags
  • git_worktree - Multiple worktrees

Utilities (2 tools)

  • git_config - Configuration
  • git_rev_parse - Parse revisions

See API Documentation for detailed usage of each tool.

🔒 Security Features

  • Path Validation: Prevent unauthorized directory access
  • Operation Restrictions: Block dangerous operations
  • Confirmation Requirements: For destructive actions
  • Audit Logging: Track all operations
  • Configurable Limits: Timeouts and size restrictions

See Security Guide for details.

📖 Documentation

🏗️ Architecture

src/
├── tools/          # Tool implementations
│   ├── base.ts    # Base tool class
│   ├── repository/
│   ├── operations/
│   ├── branching/
│   ├── remote/
│   ├── history/
│   └── advanced/
├── utils/         # Utilities
├── config/        # Configuration
└── types/         # TypeScript types

🧪 Development

npm run dev        # Development mode
npm run build      # Build project
npm run test       # Run tests
npm run lint       # Lint code
npm run format     # Format code
npm run inspector  # MCP inspector

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

📄 License

MIT License - see LICENSE for details.

🙏 Acknowledgments

Keywords

mcp

FAQs

Package last updated on 10 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts