MCP Server for GitHub API integration - repository management, issue tracking, pull requests, labels, milestones, and pagination support
|
All checks were successful
Publish Package / publish (push) Successful in 26s
Complete refactor with comprehensive improvements: ✨ New Features: - Pagination support for all list operations - Label management (list, create) - Milestone management (list, create) - Enhanced issue creation with assignees 🏗️ Architecture: - Modular structure (types, handlers, tool-definitions, github-service) - 100% TypeScript type safety - Complete JSDoc documentation - index.ts: 382 → 102 lines (74% reduction) 🧪 Testing: - 14 comprehensive unit tests - Full test coverage with Vitest 📦 Dependencies: - MCP SDK upgraded to 1.20.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| src | ||
| .gitignore | ||
| CHANGELOG.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vitest.config.ts | ||
🐙 github-mcp
MCP Server for GitHub API integration - manage repositories, issues, and pull requests.
Features
Repository Operations
- 🔍
search_repos- Search repositories - 📋
list_repos- List user/org repositories - 🔍
get_repo- Get repository details
Issue Management
- 📝
list_issues- List issues in a repository - ➕
create_issue- Create new issue - 💬
comment_issue- Add comment to issue - 🏷️
add_labels- Add labels to issue - ✅
close_issue- Close an issue
Pull Request Operations
- 🔀
list_prs- List pull requests - ➕
create_pr- Create pull request - 💬
comment_pr- Comment on pull request - 📄
get_pr_diff- Get PR diff - ✅
merge_pr- Merge pull request
GitHub Actions
- 🚦
list_workflows- List repository workflows - 🔄
trigger_workflow- Trigger workflow run - 📊
get_workflow_runs- Get workflow run status
Commits & Branches
- 📝
list_commits- List commits - 🌿
list_branches- List branches - ➕
create_branch- Create new branch
Installation
npm install
npm run build
Configuration
Set environment variables:
GITHUB_TOKEN- Personal Access Token (required)GITHUB_API_URL- API URL (default: https://api.github.com)
Usage
export GITHUB_TOKEN="your-token-here"
npm start
API Reference
GitHub REST API v3: https://docs.github.com/en/rest
License
MIT