Claude-skill-registry github-mcp
GitHub API operations - repositories, issues, pull requests, actions, code security, discussions, gists, and more. Use for GitHub-related tasks like managing PRs, issues, searching code, and monitoring workflows.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/github-mcp" ~/.claude/skills/majiayu000-claude-skill-registry-github-mcp && rm -rf "$T"
manifest:
skills/data/github-mcp/SKILL.mdsource content
GitHub Skill
Overview
This skill provides access to the official GitHub MCP server with progressive disclosure for optimal context usage.
Context Savings: ~95% reduction
- MCP Mode: ~50,000 tokens always loaded (80+ tools)
- Skill Mode: ~500 tokens metadata + on-demand loading
Requirements
- Docker installed and running
environment variable setGITHUB_PERSONAL_ACCESS_TOKEN
Toolsets
The server provides 80+ tools across 19 toolsets:
| Toolset | Description |
|---|---|
| Workflow management, runs, jobs, artifacts |
| Scanning alerts, code analysis |
| Forum interactions |
| Code snippets management |
| Issue creation, updates, commenting |
| Label management and filtering |
| GitHub Projects board management |
| PR creation, review, merging |
| Code search, commits, releases, branches |
| User search and management |
| Organization and team management |
| Notification management |
| Secret scanning alerts |
| Context about the user |
Quick Reference
Use the
gh CLI for GitHub operations:
# Get repository info gh repo view anthropics/claude-code # List issues gh issue list --repo anthropics/claude-code # Search code gh search code "language:python MCP" # Create issue gh issue create --repo me/myrepo --title "Bug" --body "Description" # List pull requests gh pr list --repo anthropics/claude-code
Common Tools (Default Toolsets: 40 tools)
Repository Operations
- Search for repositoriessearch_repositories
- Create a new repositorycreate_repository
- Fork a repositoryfork_repository
- List repository commitslist_commits
- Get commit detailsget_commit
- Get file contents from a repositoryget_file_contents
- Create or update a filecreate_or_update_file
- Delete a filedelete_file
- Push multiple filespush_files
- Search for code across GitHubsearch_code
- List repository brancheslist_branches
- Create a new branchcreate_branch
- List repository tagslist_tags
- Get tag detailsget_tag
- List releaseslist_releases
- Get latest releaseget_latest_release
- Get release by tagget_release_by_tag
Issue Operations
- List repository issueslist_issues
- Read issue detailsissue_read
- Create/update issuesissue_write
- Add a comment to an issueadd_issue_comment
- Search for issuessearch_issues
- List issue types (for organizations)list_issue_types
- Get label detailsget_label
- Manage sub-issuessub_issue_write
- Assign Copilot to an issueassign_copilot_to_issue
Pull Request Operations
- List repository pull requestslist_pull_requests
- Read PR detailspull_request_read
- Create a new PRcreate_pull_request
- Update a PRupdate_pull_request
- Update PR branchupdate_pull_request_branch
- Merge a PRmerge_pull_request
- Search for pull requestssearch_pull_requests
- Create/submit PR reviewspull_request_review_write
- Add comments to pending reviewadd_comment_to_pending_review
- Request Copilot reviewrequest_copilot_review
User & Team Operations
- Get current authenticated userget_me
- Search for userssearch_users
- Get organization teamsget_teams
- Get team membersget_team_members
Configuration
The skill uses Docker to run the official GitHub MCP server:
- Image:
ghcr.io/github/github-mcp-server - Auth:
environment variableGITHUB_PERSONAL_ACCESS_TOKEN
Environment Variables
| Variable | Required | Description |
|---|---|---|
| Yes | GitHub PAT for authentication |
| No | For GitHub Enterprise (default: github.com) |
| No | Comma-separated toolsets to enable |
| No | Set to 1 for read-only mode |
Limiting Toolsets
When using MCP, configure toolsets via environment variables:
# Only repos and issues GITHUB_TOOLSETS=repos,issues # Only pull requests and code security GITHUB_TOOLSETS=pull_requests,code_security
Error Handling
If operations fail:
- Verify Docker is running:
docker ps - Check GitHub token is set:
echo $GITHUB_PERSONAL_ACCESS_TOKEN - Ensure token has required permissions for the operation
- Use
to verify authenticationgh auth status
Related
- Official GitHub MCP Server: https://github.com/github/github-mcp-server
- GitHub API Documentation: https://docs.github.com/en/rest
Memory Protocol (MANDATORY)
Before starting: Read
.claude/context/memory/learnings.md
After completing:
- New pattern ->
.claude/context/memory/learnings.md - Issue found ->
.claude/context/memory/issues.md - Decision made ->
.claude/context/memory/decisions.md
ASSUME INTERRUPTION: If it's not in memory, it didn't happen.