Enterprise-grade fork parity management with AI-powered analysis and automated workflows
A comprehensive MCP server that revolutionizes how you maintain fork parity with upstream repositories. Features intelligent commit analysis, automated conflict detection, GitHub Actions integration, and advanced notification systems. Built for teams and organizations managing complex fork relationships.
- π Smart Commit Triage - Automatically categorize commits by impact and priority
- π― Advanced Analysis - Deep dependency chain analysis, breaking change detection
- π‘οΈ Security Assessment - Automated security impact evaluation
- β‘ Performance Impact - Predict performance implications of upstream changes
- π€ GitHub Actions Workflows - Complete CI/CD integration with automated checks
- π Real-time Dashboards - Comprehensive parity status with actionable insights
- π Multi-channel Notifications - Slack, Discord, email, and webhook support
- π Migration Planning - Automated conflict resolution and integration roadmaps
- π Analytics & Metrics - Track integration velocity and technical debt
- π Batch Processing - Handle multiple commits with intelligent prioritization
- π¨ Customizable Workflows - Adapt to your team's specific processes
- π Multi-repository Support - Manage multiple forks from a single interface
- π‘ Learning System - Adapts to your integration patterns over time
- π§ Conflict Simulation - Preview merge conflicts before integration
- π Review Templates - Structured commit review and documentation
- π― Impact Analysis - Understand downstream effects of changes
npm install -g @moikas/fork-parity-mcp
- Configure your Git remotes:
# Add upstream remote (if not already added)
git remote add upstream https://github.com/original/repository.git
# Verify remotes
git remote -v
- Add to your MCP configuration:
{
"mcpServers": {
"fork-parity": {
"command": "node",
"args": ["/path/to/fork-parity-mcp/src/enhanced-server.js"],
"env": {
"REPO_PATH": "/path/to/your/fork"
}
}
}
}
- Optional: Set up GitHub Actions automation:
# Generate workflow files
fork-parity setup-github-actions --workflows=daily_sync,pr_checks,critical_alerts
- Start tracking:
# Fetch latest upstream changes
git fetch upstream
# You're ready to go! π
"Auto-triage the last 20 upstream commits"
"Run advanced analysis on commit abc123 including security assessment"
"Batch analyze commits from the last sprint"
"Generate a comprehensive parity dashboard"
"Show me actionable items with high priority"
"Get detailed status since last month"
"Create an integration plan for the next quarter"
"Generate migration plan for commits abc123, def456, ghi789"
"Analyze potential conflicts for commit xyz890"
"Sync with upstream and run full analysis"
"Set up GitHub Actions with daily sync and PR checks"
"Configure Slack notifications for critical alerts"
"Create a review template for commit abc123"
"Update commit def456 status to integrated with adaptation notes"
"Learn from this successful integration pattern"
Tool | Description |
---|---|
fork_parity_auto_triage_commits |
AI-powered commit categorization and prioritization |
fork_parity_advanced_analysis |
Deep dependency, security, and performance analysis |
fork_parity_batch_analyze_commits |
Process multiple commits with intelligent triage |
Tool | Description |
---|---|
fork_parity_get_detailed_status |
Comprehensive parity status with analytics |
fork_parity_generate_dashboard |
Real-time dashboard with metrics and insights |
fork_parity_get_actionable_items |
Prioritized list of commits requiring action |
Tool | Description |
---|---|
fork_parity_update_commit_status |
Update commit status with rich metadata |
fork_parity_create_review_template |
Generate structured review templates |
fork_parity_generate_integration_plan |
Create integration roadmap with effort estimates |
fork_parity_migration_plan |
Detailed migration planning for complex changes |
Tool | Description |
---|---|
fork_parity_sync_and_analyze |
Automated upstream sync with analysis |
fork_parity_setup_github_actions |
Configure GitHub Actions workflows |
fork_parity_conflict_analysis |
Advanced conflict detection and resolution |
Tool | Description |
---|---|
fork_parity_setup_notifications |
Configure multi-channel notification system |
fork_parity_learn_adaptation |
Machine learning from successful integrations |
Variable | Default | Description |
---|---|---|
UPSTREAM_REMOTE_NAME |
upstream |
Name of upstream remote |
UPSTREAM_BRANCH |
main |
Upstream branch to track |
REPO_PATH |
process.cwd() |
Path to Git repository |
{
"mcpServers": {
"fork-parity": {
"command": "fork-parity-mcp",
"env": {
"UPSTREAM_REMOTE_NAME": "origin-upstream",
"UPSTREAM_BRANCH": "develop",
"REPO_PATH": "/home/user/my-fork"
}
}
}
}
Track multiple forks simultaneously:
{
"mcpServers": {
"project-a-parity": {
"command": "fork-parity-mcp",
"env": {
"REPO_PATH": "/home/user/project-a"
}
},
"project-b-parity": {
"command": "fork-parity-mcp",
"env": {
"REPO_PATH": "/home/user/project-b",
"UPSTREAM_BRANCH": "development"
}
}
}
}
The server creates a .parity-status.json
file to track:
{
"commits": {
"abc123": {
"status": "integrated",
"notes": "Applied with modifications for our auth system",
"timestamp": "2024-01-15T10:30:00Z"
},
"def456": {
"status": "skipped",
"notes": "Not applicable to our fork",
"timestamp": "2024-01-15T11:00:00Z"
}
},
"lastUpdated": "2024-01-15T11:00:00Z"
}
- β integrated - Successfully merged/applied
- π reviewed - Analyzed but not yet integrated
- βοΈ skipped - Not applicable to your fork
β οΈ conflict - Requires manual resolution- βΈοΈ deferred - Postponed for future integration
- π pending - Awaiting analysis or review
- Node.js 18+
- Git repository with upstream remote
# Clone the repository
git clone https://github.com/moikas-code/fork-parity-mcp.git
cd parity-mcp
# Install dependencies
npm install
# Run the enhanced server
node src/enhanced-server.js
# Or run the CLI
node src/cli.js --help
# Check syntax
npm run check-syntax
# Lint code (ESLint configured)
npx eslint src/*.js --ignore-pattern="*-old.js"
# Test server startup
node src/enhanced-server.js
# Check package
npm pack --dry-run
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- π§ AI-Powered Commit Triage - Intelligent categorization and prioritization
- π Advanced Analysis Engine - Deep dependency chains, security assessment, performance impact
- π€ GitHub Actions Integration - Complete workflow automation with customizable templates
- π Real-time Dashboards - Comprehensive analytics and actionable insights
- π Multi-channel Notifications - Slack, Discord, email, and webhook support
- π― Conflict Simulation - Preview and resolve conflicts before integration
- π Learning System - Adapts to your integration patterns over time
- π Enterprise Features - Batch processing, migration planning, and team workflows
- Built with Model Context Protocol (MCP)
- Inspired by the need to maintain fork parity in open source projects
- Thanks to the MCP community for the excellent SDK
- Special thanks to contributors who helped reach v2.0.0 production readiness
- MCP SDK Documentation
- Claude Desktop MCP Guide
- Git Remote Management
- GitHub Actions Documentation
- Complete Implementation Guide
π Homepage β’ π Setup Guide β’ π Implementation Details β’ π Report Bug β’ β¨ Request Feature
Made with β€οΈ for the open source community β’ v2.0.0 Production Ready π