Skip to main content
Glama

GitHub MCP Server

GitHub MCP 服务器

用于 GitHub 集成的模型上下文协议 (MCP) 服务器实现。该服务器提供通过 MCP 协议与 GitHub API 交互的工具。

特征

  • 创建 GitHub 存储库
  • 将内容推送到存储库
  • 获取用户信息
  • 正确的错误处理和 TypeScript 类型安全
  • 自动安装脚本

先决条件

  • Node.js(v18 或更高版本)
  • npm(v8 或更高版本)
  • PowerShell(用于 Windows 安装)
  • 具有 repo 范围的 GitHub 个人访问令牌

安装

视窗

  1. 克隆此存储库:
git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git
  1. 运行安装脚本:
.\install.ps1

该脚本将:

  • 创建必要的目录
  • 安装依赖项
  • 构建 TypeScript 代码
  • 配置 MCP 设置

手动安装

  1. 创建 MCP 目录:
mkdir -p "$env:APPDATA\Roo-Code\MCP\github-mcp"
  1. 将此存储库克隆到该目录中:
git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git "$env:APPDATA\Roo-Code\MCP\github-mcp"
  1. 安装依赖项:
cd "$env:APPDATA\Roo-Code\MCP\github-mcp" npm install
  1. 构建 TypeScript 代码:
npm run build
  1. 将服务器配置添加到您的 MCP 设置文件中: %APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
{ "mcpServers": { "github": { "command": "node", "args": [ "%APPDATA%\Roo-Code\MCP\github-mcp\build\index.js" ], "env": { "GITHUB_TOKEN": "your-github-token-here" }, "disabled": false, "alwaysAllow": [] } } }

可用工具

获取用户

获取 GitHub 用户信息。

{ "username": "octocat" }

创建仓库

创建一个新的 GitHub 存储库。

{ "repo_name": "my-new-repo", "description": "A new repository", "private": false }

推送到仓库

将内容推送到 GitHub 存储库。

{ "repo_name": "my-repo", "file_path": "docs/README.md", "content": "# My Project\nThis is a test file.", "message": "Add README file" }

发展

  1. 克隆存储库
  2. 安装依赖项: npm install
  3. 修改src/index.ts
  4. 构建: npm run build
  5. 测试您的更改

贡献

  1. 分叉存储库
  2. 创建功能分支
  3. 提交你的更改
  4. 推送到分支
  5. 创建拉取请求

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

提供通过 MCP 协议与 GitHub 的 API 交互的工具,允许用户创建存储库、推送内容和检索用户信息。

  1. 特征
    1. 先决条件
      1. 安装
        1. 视窗
        2. 手动安装
      2. 可用工具
        1. 获取用户
        2. 创建仓库
        3. 推送到仓库
      3. 发展
        1. 贡献
          1. 执照

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              Provides tools for mapping and analyzing GitHub repositories. It allows users to set a GitHub Personal Access Token and retrieve detailed information about a specified repository, including its structure and summary statistics.
              Last updated -
              2
              17
              TypeScript
            • -
              security
              F
              license
              -
              quality
              An MCP service that enables creating GitHub Pull Requests and adding code review comments using GitHub CLI, eliminating the need to manually handle authentication and permissions.
              Last updated -
              JavaScript
              • Apple
              • Linux
            • A
              security
              F
              license
              A
              quality
              An MCP server that enables integration with GitHub Enterprise API, allowing users to access repository information, manage issues, pull requests, workflows, and other GitHub features through Cursor.
              Last updated -
              16
              33
              14
              TypeScript
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              A MCP server that provides access to GitHub trending repositories and developers data through a simple API interface.
              Last updated -
              2
              1
              Python
              MIT License
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/oghenetejiriorukpegmail/github-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server