Back to MCP directory
publicPublicdnsLocal runtime

github-mcp-server-cli-extension

GitHub MCP Server CLI扩展,提供简化的安装和认证流程,支持VS Code集成。

article

README

🚀 GitHub MCP 服务器 CLI 扩展

本项目是一个 GitHub CLI 扩展,专为 GitHub MCP Server 打造,具备简化的安装和身份验证功能,能有效提升使用效率。

🚀 快速开始

本扩展可助力你快速启动 GitHub MCP Server。

📦 安装指南

在终端中运行以下命令,即可完成扩展的安装:

gh extension install MayorFaj/gh-github-mcp-server

💻 使用示例

基础用法

启动 GitHub MCP Server 并使用 stdio 模式。若你使用的是 VS Code,可按如下步骤操作:

VS Code 集成

将以下内容添加到你的 VS Code 用户设置 (JSON) 中:

{
  "mcp": {
    "servers": {
      "github": {
        "command": "gh",
        "args": [
          "github-mcp-server",
          "stdio"
        ]
      }
    }
  }
}

你可以通过按 Ctrl+Shift+P(或 Cmd+Shift+P 在 macOS 上)并输入 "Preferences: Open User Settings (JSON)" 来编辑设置。

高级用法

本扩展具有以下显著的功能特点:

  • 零配置:使用现有的 GitHub CLI 身份验证
  • 自动安装:下载适用于你平台的正确二进制文件
  • 无额外依赖:无需 Docker 或手动令牌管理

📄 许可证

本项目采用 MIT 许可证。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client