
github cli mcp server
Unified MCP server for GitHub automation and Copilot CLI integration with structured prompt automation
Repository Info
About This Server
Unified MCP server for GitHub automation and Copilot CLI integration with structured prompt automation
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
GitHub CLI MCP Server
🚀 Unified MCP server for GitHub automation and Copilot CLI integration
A comprehensive Model Context Protocol (MCP) server that provides GitHub automation tools with structured prompt integration.
🎯 Key Features
- Repository Management: Create and setup repositories with proper structure
- Pull Request Reviews: Automated comprehensive code analysis
- Workflow Generation: GitHub Actions workflows for CI/CD
- Issue Triage: Automated issue management systems
- Repository Analysis: Health checks and improvement recommendations
- GitHub Copilot CLI: Command explanation and intelligent suggestions
🛠️ Tech Stack
- Runtime: Node.js 18+
- Protocol: Model Context Protocol (MCP)
- API: GitHub REST API with Octokit
- Validation: Zod schemas
- Testing: Node.js test runner
- Linting: ESLint + Prettier
🚀 Quick Start
- Clone the repository
- Install dependencies:
npm install - Configure environment: Copy
.env.exampleto.envand add your GitHub token - Test the server:
npm test - Run the server:
npm start
📖 Documentation
- See USAGE_EXAMPLES.md for detailed usage examples
- Check docs/ for comprehensive documentation
- Review examples/ for implementation examples
🔧 Configuration
The server requires a GitHub Personal Access Token with the following permissions:
repo(Full control of private repositories)workflow(Update GitHub Actions workflows)admin:repo_hook(Admin access to repository hooks)
🧪 Testing
npm test # Run all tests
npm run test:watch # Watch mode
npm run validate # Full validation (lint + test)
📦 Available Tools
- setup_repository - Create and configure new repositories
- review_pull_request - Comprehensive PR analysis
- create_workflow - Generate GitHub Actions workflows
- setup_issue_triage - Automated issue management
- analyze_repository - Repository health analysis
- copilot_explain - Command explanation via GitHub Copilot CLI
- copilot_suggest - Intelligent command suggestions
- copilot_check_setup - Verify Copilot CLI configuration
🎨 Project Structure
github-cli-mcp-server/
├── src/
│ ├── server.js # Legacy server implementation
│ └── unified-server.js # Main unified server (recommended)
├── test/
│ └── server.test.js # Comprehensive test suite
├── examples/
│ └── *.js # Usage examples
├── docs/
│ └── *.md # Documentation
├── scripts/
│ └── *.ps1 # Setup scripts
└── .github/
└── workflows/ # CI/CD workflows
🤝 Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and add tests
- Run validation:
npm run validate - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Model Context Protocol (MCP) for the protocol specification
- GitHub API for the comprehensive API
- Anthropic Claude for MCP support and AI assistance
Made with ❤️ for the developer community
Quick Start
Clone the repository
git clone https://github.com/joelfuller2016/github-cli-mcp-serverInstall dependencies
cd github-cli-mcp-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.