Skip to content

GitHub access for Claude Code covering issues, pull requests, Actions, and code search via a hosted server.

CCM score
42 of 100
GitHub stars
201
View on GitHub

Own this plugin? Claim it

What it does

  • Adds create-issue, create-pr, review-pr, and search-code skills plus PR context-loading and resume skills
  • Covers repository management, file operations, issues, pull requests, GitHub Actions, and code search through the hosted GitHub MCP server
  • Connects to GitHub's hosted endpoint with OAuth sign-in, so no tokens or local Docker setup are needed
  • Designed for developers on GitHub.com who want zero-configuration access to repositories, pull requests, and workflow runs

MCP server configuration for GitHub integration providing repository management, issues, pull requests, actions, and code search.

Add marketplace

/plugin marketplace add TheBushidoCollective/han

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install hashi-github@han

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Create GitHub Issue

Name

github:create-issue - Create a new issue in a GitHub repository

Synopsis

/create-issue [arguments]

Description

Create a new issue in a GitHub repository

Implementation

Create a new issue in a GitHub repository with title, body, and labels.

Usage

/create-issue [owner/repo]

This command helps you create a well-structured GitHub issue.

What This Command Does

  1. Asks for the repository (owner/repo format)
  2. Prompts for issue title
  3. Requests issue body/description
  4. Asks for labels (optional)
  5. Creates the issue using the GitHub MCP create_issue tool
  6. Returns the issue number and URL

Prerequisites

  • GitHub MCP server must be installed and configured
  • You must have permission to create issues in the target repository
  • OAuth authentication must be completed

Example Interaction

User: /create-issue

Claude: I'll help you create a GitHub issue. What repository? (owner/repo format)

User: my-org/my-repo

Claude: What should the issue title be?

User: Fix memory leak in image processor

Claude: Please provide a description for the issue:

User: Memory usage increases continuously when processing large images.
After processing 100+ images, the application crashes due to OOM errors.

## Steps to reproduce
1. Start the image processor
2. Process 100+ large images (>5MB each)
3. Observe memory usage climbing

Claude: Any labels to add? (comma-separated, or press Enter to skip):

User: bug, high-priority

Claude: Creating issue in my-org/my-repo...

Issue created successfully!
#42 - Fix memory leak in image processor
https://github.com/my-org/my-repo/issues/42

Tips

  • Use owner/repo format for repository identification
  • Write clear, actionable issue titles
  • Include reproduction steps in the description
  • Use GitHub-flavored Markdown in descriptions
  • Reference related issues with #123 syntax
  • Mention users with @username for notifications

Related Commands

  • /search-code: Find related code before filing
  • /create-pr: Create a pull request to fix the issue
  • /review-pr: Review existing PRs related to the issue

Readme

GitHub

Connect Claude Code to the GitHub API for comprehensive repository management, issue tracking, pull request workflows, GitHub Actions, and code search.

Zero Configuration: Uses GitHub Copilot's hosted MCP server - no installation, no Docker, no authentication setup required!

What This Plugin Provides

MCP Server: github

This plugin connects to GitHub's hosted GitHub MCP Server via https://api.githubcopilot.com/mcp to provide direct access to the GitHub API with 100+ tools for:

  • Repository Management: Create, fork, and manage repositories
  • File Operations: Read, create, update, and delete files with automatic branch creation
  • Issues & Pull Requests: Full lifecycle management of issues and PRs
  • GitHub Actions: View workflow runs, trigger workflows, manage artifacts
  • Code Search: Search across repositories, code, issues, and users
  • Code Security: Access Dependabot alerts and security advisories

Available Tools

Once installed, Claude Code gains access to these tool categories:

Repository Tools
  • create_repository: Create a new GitHub repository
  • fork_repository: Fork an existing repository
  • get_repository: Get repository details
  • list_repositories: List repositories for a user/org
File Operations
  • get_file_contents: Read file contents from a repository
  • create_or_update_file: Create or update a single file
  • push_files: Push multiple files in a single commit
  • create_branch: Create a new branch
Issues
  • create_issue: Create a new issue
  • get_issue: Get issue details
  • list_issues: List issues with filters
  • update_issue: Update issue title, body, labels, assignees
  • add_issue_comment: Add a comment to an issue
Pull Requests
  • create_pull_request: Create a new pull request
  • get_pull_request: Get PR details including diff
  • list_pull_requests: List PRs with filters
  • merge_pull_request: Merge a pull request
  • update_pull_request: Update PR title, body, base branch
GitHub Actions
  • list_workflow_runs: List workflow runs
  • get_workflow_run: Get details of a workflow run
  • trigger_workflow: Manually trigger a workflow
  • list_artifacts: List workflow artifacts
Search
  • search_code: Search for code across GitHub
  • search_issues: Search issues and pull requests
  • search_users: Search for users

Installation

han plugin install github

Usage

Example 1: Create an Issue

User: Create an issue in my-org/my-repo titled "Bug: Login fails on mobile"
      with description "Users report login button is unresponsive on iOS Safari"

Claude: [Uses create_issue tool to create the issue and returns the issue URL]

Example 2: Review a Pull Request

User: Show me the changes in PR #42 on my-org/my-repo

Claude: [Uses get_pull_request to fetch PR details, files changed, and diff]

Example 3: Search Code

User: Find all uses of "deprecated_function" across my organization

Claude: [Uses search_code to find matching code across repositories]

Example 4: Trigger a Workflow

User: Run the deploy workflow on my-org/my-repo main branch

Claude: [Uses trigger_workflow to start the workflow and returns run details]

Example 5: Create a Branch and Push Changes

User: Create a feature branch and add a new config file

Claude: [Uses create_branch then push_files to create branch and commit file]

Tool Reference

create_repository

Purpose: Create a new GitHub repository

Parameters:

  • name (required): Repository name
  • description (optional): Repository description
  • private (optional): Whether the repository is private
  • auto_init (optional): Initialize with README

get_file_contents

Purpose: Read file contents from a repository

Parameters:

  • owner (required): Repository owner
  • repo (required): Repository name
  • path (required): File path
  • ref (optional): Branch, tag, or commit SHA

create_pull_request

Purpose: Create a new pull request

Parameters:

  • owner (required): Repository owner
  • repo (required): Repository name
  • title (required): PR title
  • head (required): Source branch
  • base (required): Target branch
  • body (optional): PR description
  • draft (optional): Create as draft PR

search_code

Purpose: Search for code across GitHub

Parameters:

  • q (required): Search query (supports GitHub search syntax)
  • per_page (optional): Results per page (max 100)
  • page (optional): Page number

Security Considerations

  • OAuth Authentication: Uses GitHub OAuth via Claude Code - authentication handled securely by GitHub
  • Hosted Server: Connects to GitHub's official hosted MCP endpoint at api.githubcopilot.com
  • No Token Management: No need to create or manage Personal Access Tokens
  • Revoke Access: Manage OAuth authorizations at github.com/settings/applications

Limitations

  • API rate limits apply (5000 requests/hour for authenticated requests)
  • Requires Claude Code 2.1+ with HTTP MCP transport support
  • Large file operations may timeout
  • GitHub Enterprise Server is not supported (GitHub.com only)

Troubleshooting

Issue: MCP connection failed

Solution: Ensure you're using Claude Code 2.1+ which supports HTTP MCP transport. Restart Claude Code if the plugin was just installed.

Issue: Authentication required

Solution: The first time you use a GitHub tool, Claude Code will prompt you to authenticate via GitHub OAuth. Follow the browser authorization flow.

Issue: Rate limit exceeded

Solution: Wait for rate limit reset (shown in error message). Authenticated requests have higher limits (5000/hour).

Related Plugins

  • gitlab: GitLab integration via MCP
  • git: Git workflow hooks and validation
  • plugin-authoring: Plugin linting includes git operations

Details

Marketplace
TheBushidoCollective/han
Source
plugins/services/github
Category
Integration
Keywords
mcp, github, git, repository, issues, pull-requests, actions, code-search, server
Listed since
Apr 7, 2026

More from TheBushidoCollective/han

All 340

Similar to hashi-github

More Git & Releases