Github

Github

An MCP server offering 29 Git operations plus 11 workflow combinations for AI assistants and developers.

6
Stars
0
Forks
2
Releases

Overview

Github MCP Server is a Model Context Protocol (MCP) server that exposes Git repository management through a standardized interface. It implements 29 Git operations and supports a broad set of workflow combinations (the overview states 11 workflow combinations; the features section references broader workflow sets up to 31). The server provides safe, validated version control actions via the MCP API, designed for AI assistants and developers to orchestrate complex workflows without shell-level exposure. It employs Zod-based input validation, enhanced error handling, timeout protection (30 seconds), and input sanitization to prevent command injection. The project architecture includes a dedicated Git operations engine (src/github.ts) and an MCP core that registers 29 tools with comprehensive JSON schemas (src/index.ts). It categorizes operations into Basic Git Operations (17) and Advanced Git Operations (12) and features a two-tier toolset for discovery through a CLI wrapper and categorized help. The server integrates with VS Code and Copilot, offering a CLI interface for automation (gstatus, glist) and a focus on reliability, safety, and progressive learning.

Details

Owner
0xshariq
Language
JavaScript
License
Updated
2025-12-07

Features

Safe MCP Git operations

Provides 29 MCP-registered Git tools with input validation and error handling to prevent unsafe commands.

Comprehensive Git capabilities

Supports core and advanced Git features including tag, merge, rebase, cherry-pick, blame, and bisect.

Extensive workflow combinations

Offers a broad set of workflow combinations to automate and simplify common to complex Git processes.

Advanced developer tools

Includes backup, cleanup, and workflow automation utilities for project maintenance and reliability.

Robust error handling and validation

Uses strict validation, 30-second timeouts, descriptive errors, and repository checks to prevent failures.

Integration with development tools

Direct integration with VS Code and AI assistants like GitHub Copilot.

Enhanced CLI and tool discovery

CLI wrapper and categorized commands (gstatus, glist) streamline terminal automation.

Security-oriented design

Prevents command injection through input sanitization and secure operation handling.

Audience

AI assistantsenables AI models to safely orchestrate Git workflows through MCP.
Developersempowers developers to manage Git repositories and workflows via MCP.