joelfuller2016/github-cli-mcp-server
If you are the rightful owner of github-cli-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
GitHub CLI MCP Server is a unified server designed for GitHub automation and Copilot CLI integration, leveraging the Model Context Protocol (MCP) for structured prompt integration.
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.example
to.env
and add your GitHub token - Test the server:
npm test
- Run the server:
npm start
๐ Documentation
- See for detailed usage examples
- Check for comprehensive documentation
- Review 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 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