Provides comprehensive Git operations including repository management, commits, branches, files, tags, and advanced features like cherry-pick, submodules, and worktrees.
Enables integration with Gitea platform for managing repositories, issues, pull requests, releases, webhooks, and user operations.
Offers full GitHub integration including repository operations, issues, pull requests, plus GitHub-exclusive features like workflows, actions, deployments, security, analytics, code review, codespaces, gists, and projects.
Git MCP Server v2.6.1
🚀 Complete MCP Server for Gitea Self-Hosted - 18 tools with 100+ actions including AI code review, enhanced validation and automated DevOps workflows
🎯 Overview
Git MCP Server v2.6.1 é um servidor MCP moderno em TypeScript, focado em Gitea self-hosted e com suporte completo a multi-provedor (GitHub + Gitea simultaneamente). Inclui arquitetura de providers unificada, documentação abrangente, boas práticas, validações aprimoradas, nova tool de code-review com IA e guia para uso individual (solo).
✨ Features
🛠️ 18 Tools
repositories - Complete repository management with cloning, archiving, templates
branches - Branch operations with enhanced validation
files - File and directory management with search capabilities
commits - Commit operations with search and creation
issues - Issue management with advanced search
pulls - Pull request management with reviews
releases - Release management with enhanced validation
tags - Tag management with search
users - User operations with search
webhooks - Webhook management with testing
code-review - AI-powered code analysis and review suggestions ⭐ NEW
git-sync - Cross-provider repository synchronization with bidirectional sync
version-control - Versioning, backup and change tracking system with semantic versioning
workflows - CI/CD workflow management
actions - GitHub Actions management
deployments - Deployment tracking and rollbacks
security - Security scanning and compliance
analytics - Repository insights and analytics
🚀 Multi-Provider Complete (GitHub + Gitea simultaneamente)
🔧 Technical Features
✅ TypeScript: Full type safety and modern development
✅ Zod Validation: Input/output schema validation
✅ Axios Client: Robust HTTP client with interceptors
✅ Error Handling: Comprehensive error management
✅ Debug Mode: Detailed logging for development
✅ Self-Hosted Focus: Optimized for Gitea instances
📦 Installation
NPX (Recommended)
Global Installation
⚙️ Configuration
Demo Mode
Para testar o servidor sem configurar providers reais:
O modo demo permite:
✅ Testar todas as funcionalidades sem APIs reais
✅ Desenvolvimento e debugging
✅ Demonstrações e tutoriais
⚠️ Não executa operações reais nos repositórios
Environment Variables
MCP Configuration
Single Provider (Gitea)
Single Provider (GitHub)
Multi-Provider (GitHub + Gitea Simultaneamente)
Multi-Provider com Variáveis Separadas
🚀 Usage Examples
Repository Management
Issue Creation
File Operations
🔐 Authentication
Personal Access Token
Go to your Gitea instance
Navigate to Settings → Applications
Generate a new Personal Access Token
Grant necessary permissions:
repo
- Repository accessuser
- User informationwrite:repo_hook
- Webhook management
Permissions Required
Read: Repository content, issues, pull requests
Write: Create/update repositories, files, issues, PRs
Admin: Webhook management, repository settings
🏗️ Architecture
Project Structure
Design Principles
Modular: Each tool is self-contained
Type-Safe: Full TypeScript coverage
Validated: Zod schemas for all inputs/outputs
Consistent: Uniform API across all tools
Documented: Comprehensive JSDoc comments
🐛 Debugging
Enable Debug Mode
Debug Output
HTTP request/response logging
Configuration validation
Error stack traces
Performance metrics
🤝 Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
Development Setup
📄 License
MIT License - see LICENSE file for details.
🔗 Links
NPM Package: @andrebuzeli/gitea-mcp-v2
GitHub Repository: gitea-mcp-v2
Gitea Official: gitea.io
MCP Protocol: modelcontextprotocol.io
🆚 Comparison
vs Official Gitea MCP (Go)
Feature | Gitea MCP v2.0 (Node.js) | Official (Go) |
Tools | 10 multifunctional | 40+ single-purpose |
Actions | 65+ total | 40+ total |
Language | TypeScript/Node.js | Go |
Type Safety | Full Zod validation | Go types |
Installation | NPM/NPX | Binary download |
Configuration | Environment variables | CLI arguments |
Debugging | Rich logging | Basic logging |
Maintenance | Community | Official |
Advantages
✅ Organized: Logical tool grouping
✅ Modern: TypeScript ecosystem
✅ Flexible: Multiple actions per tool
✅ Validated: Input/output validation
✅ Documented: Comprehensive documentation
🎉 Changelog
v2.1.2
📄 Added solo usage guide (docs/guia-gitea-solo.md)
📝 Updated docs and descriptions
🔖 Prepared release and tagging guidance for solo users
v2.1.1
📚 Enhanced tool documentation - All 10 tools now have comprehensive JSDoc comments with parameters, actions, and direct instructions
🗑️ Removed emojis from console logs and code comments
📖 Added detailed instructions and recommendations for each tool and method
🔧 Improved code structure with better organization and clarity
🎯 Enhanced developer experience with clear usage examples and best practices
v2.1.0
📚 Comprehensive code documentation
🧹 Removed emojis for professional use
📖 Added detailed usage instructions
🔧 Enhanced code comments and recommendations
📋 Improved development guidelines
🎯 Better error handling documentation
🚀 Enhanced developer experience
v2.0.0
🎯 Complete rewrite from scratch
🛠️ 10 multifunctional tools
🔧 TypeScript implementation
✅ Zod validation
📚 Basic documentation
🐛 Debug mode support
🚀 NPM package distribution
Made with ❤️ for the Gitea community
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables comprehensive Git and GitHub operations through 30 DevOps tools including repository management, file operations, workflows, and advanced Git features. Provides complete Git functionality without external dependencies for seamless integration with Gitea and GitHub platforms.