Github mcp

From oimiragieo/agent-studio · View interactive version

Github mcp is an AI agent skill from the GitHub repository oimiragieo/agent-studio. 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.

How to use this skill

Skill file

Mode: Cognitive/Prompt-Driven — No standalone utility script; use via agent context.

GitHub Skill

Overview

This skill provides access to the official GitHub MCP server with progressive disclosure for optimal context usage.

Context Savings: ~95% reduction

Requirements

Toolsets

The server provides 80+ tools across 19 toolsets:

| Toolset | Description |

| ----------------- | ------------------------------------------ |

| actions | Workflow management, runs, jobs, artifacts |

| code_security | Scanning alerts, code analysis |

| discussions | Forum interactions |

| gists | Code snippets management |

| issues | Issue creation, updates, commenting |

| labels | Label management and filtering |

| projects | GitHub Projects board management |

| pull_requests | PR creation, review, merging |

| repos | Code search, commits, releases, branches |

| users | User search and management |

| orgs | Organization and team management |

| notifications | Notification management |

| secret_scanning | Secret scanning alerts |

| context | 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

Issue Operations

Pull Request Operations

User & Team Operations

Configuration

The skill uses Docker to run the official GitHub MCP server:

Environment Variables

| Variable | Required | Description |

| ------------------------------ | -------- | ------------------------------------------- |

| GITHUB_PERSONAL_ACCESS_TOKEN | Yes | GitHub PAT for authentication |

| GITHUB_HOST | No | For GitHub Enterprise (default: github.com) |

| GITHUB_TOOLSETS | No | Comma-separated toolsets to enable |

| GITHUB_READ_ONLY | 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:

  1. Verify Docker is running: docker ps
  2. Check GitHub token is set: echo $GITHUB_PERSONAL_ACCESS_TOKEN
  3. Ensure token has required permissions for the operation
  4. Use gh auth status to verify authentication

Related

Memory Protocol (MANDATORY)

Before starting:

Read .claude/context/memory/learnings.md

After completing:

ASSUME INTERRUPTION: If it's not in memory, it didn't happen.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.