github-cli-mcp-server

joelfuller2016/github-cli-mcp-server

3.2

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.

Tools
8
Resources
0
Prompts
0

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

  1. Clone the repository
  2. Install dependencies: npm install
  3. Configure environment: Copy .env.example to .env and add your GitHub token
  4. Test the server: npm test
  5. 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

  1. setup_repository - Create and configure new repositories
  2. review_pull_request - Comprehensive PR analysis
  3. create_workflow - Generate GitHub Actions workflows
  4. setup_issue_triage - Automated issue management
  5. analyze_repository - Repository health analysis
  6. copilot_explain - Command explanation via GitHub Copilot CLI
  7. copilot_suggest - Intelligent command suggestions
  8. 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

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and add tests
  4. Run validation: npm run validate
  5. Commit your changes: git commit -m 'Add amazing feature'
  6. Push to the branch: git push origin feature/amazing-feature
  7. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the file for details.

๐Ÿ™ Acknowledgments


Made with โค๏ธ for the developer community