GitHub CLI MCP server

GitHub CLI MCP server

mcp-githubcli•bychenlong-tao

An MCP server that exposes GitHub CLI capabilities through tools for repositories, issues, pull requests and gists.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Offers repository tools to list, view and create GitHub repositories.
  • •Provides issue tools for listing, viewing and creating issues.
  • •Supports pull request listing, viewing, diff viewing and creation.
  • •Includes gist tools to list and create gists.

BEST FOR

  • •Reviewing the full code changes of a pull request.
  • •Creating and inspecting issues through MCP.
  • •Managing repositories and gists from an MCP client.

ABOUT MCP-GITHUBCLI

GitHub CLI MCP server is cataloged as an MCP server attributed to chenlong-tao. An MCP server that exposes GitHub CLI capabilities through tools for repositories, issues, pull requests and gists. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for GitHub CLI MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the PR diff tool truncate the output?

No, it outputs all diff content without truncation.

What resources does the server expose?

It exposes repository and user resources.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 826ecf1bbb2f · 采集于 2026-11-13 13:27:04 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

GitHub CLI MCP服务器

这个MCP服务器为GitHub CLI提供了简单友好的接口,让你可以通过MCP协议访问GitHub的功能。

功能特点

  • 仓库管理:查看、创建仓库
  • Issue管理:查看、创建issue
  • PR管理:查看、创建、查看差异
  • Gist管理:查看、创建gist

安装要求

  1. 安装GitHub CLI (gh)

    # MacOS
    brew install gh
    
    # Ubuntu/Debian
    apt install gh
    
    # 其他系统请参考GitHub CLI官方文档
    
  2. 通过gh auth login完成GitHub认证

参数类型说明

本服务对参数类型有以下要求:

  • PR编号必须使用整数类型:pr_view(123, "owner/repo")
  • Issue编号必须使用整数类型:issue_view(456, "owner/repo")
  • PR基础分支名称使用字符串类型:pr_create("owner/repo", "标题", "内容", "main")

所有整数参数在内部都会被自动转换为字符串,确保命令正确执行。

使用示例

# 查看PR差异
diff = pr_diff(2543, "qianshouapp/kyc")

# 查看仓库
repo_info = repo_view("microsoft/vscode")

# 创建issue
issue_create("owner/repo", "标题", "这是issue的内容")

PR差异查看

PR差异查看功能支持完整输出所有差异内容,不会进行截断,确保您可以查看到完整的代码变更。

使用示例:

diff = pr_diff(2543, "qianshouapp/kyc")
print(diff)  # 显示完整差异

开发说明

如果需要扩展功能,可以修改main.py文件,添加新的工具函数并注册到MCP服务器。

可用工具

仓库操作

  • repo_list() - 列出你拥有或参与的GitHub仓库
  • repo_view(repo) - 查看仓库详细信息
  • repo_create(name, description, private) - 创建新仓库

Issue操作

  • issue_list(repo, state) - 列出仓库中的issue
  • issue_view(issue, repo) - 查看特定issue详情
  • issue_create(repo, title, body) - 创建新issue

PR操作

  • pr_list(repo, state) - 列出仓库中的PR
  • pr_view(pr, repo) - 查看特定PR详情
  • pr_diff(pr, repo) - 查看特定PR的代码差异
  • pr_create(repo, title, body, base) - 创建新PR

Gist操作

  • gist_list() - 列出你的Gist
  • gist_create(files, description, public) - 创建新Gist

可用资源

  • repo://{owner}/{name} - 获取仓库信息
  • user://{username} - 获取用户信息

故障排除

如果遇到问题:

  1. 确保GitHub CLI已正确安装,可通过运行 gh --version 验证
  2. 确保已通过 gh auth login 进行身份验证
  3. 检查是否有权限访问相应的仓库或资源
  4. 如果使用JSON格式输出有问题,尝试使用标准输出格式

示例

查看PR:

from main import pr_view
result = pr_view(pr="123", repo="owner/repo")
print(result)

查看PR代码差异:

from main import pr_diff
result = pr_diff(pr="123", repo="owner/repo")
print(result)

创建Issue:

from main import issue_create
result = issue_create(
    repo="owner/repo",
    title="测试Issue",
    body="这是通过MCP创建的测试Issue"
)
print(result)

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for GitHub CLI MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-githubcli)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools