GitHub MCP 服务器
用于通过 Cline 与 GitHub 问题交互的模型上下文协议 (MCP) 服务器实现。
特征
列出存储库中的 GitHub 问题
创建新的 GitHub 问题
错误处理和验证
通过环境变量进行安全身份验证
安装
克隆存储库:
使用 uv 安装依赖项:
复制环境模板并配置你的 GitHub 令牌:
编辑.env并添加您的 GitHub 个人访问令牌:
要创建 GitHub 个人访问令牌:
转到 GitHub 设置 -> 开发者设置 -> 个人访问令牌
生成具有
repo范围的新令牌复制令牌并将其粘贴到您的
.env文件中
用法
运行 MCP 服务器:
服务器将启动并向 Cline 公开两个工具:
获取问题
从 GitHub 存储库获取问题列表:
创建问题
在 GitHub 存储库中创建新问题:
错误处理
服务器处理常见错误:
缺少 GitHub 令牌
存储库名称无效
缺少必需参数
GitHub API 错误
错误响应包括描述性消息以帮助解决问题。
发展
该项目使用 uv 进行依赖管理。要设置开发环境:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
通过模型上下文协议实现与 GitHub 问题的交互,允许用户通过安全身份验证列出和创建问题。
Related Resources
Related MCP Servers
- -security-license-qualityEnables management of development projects with GitHub integration, facilitating project tracking, repository linking, and metadata maintenance within the Model Context Protocol.
- Asecurity-licenseAqualityA Model Context Protocol server that enables AI models to interact with GitHub's API, allowing for repository creation and management with descriptions, topics, and website URLs through natural language commands.Last updated -
- -security-license-qualityProvides integration with Github through the Model Context Protocol (MCP), allowing Large Language Models to interact with Github's repositories, issues, pull requests and search functionality.Last updated -3,2642
- -security-license-qualityA Model Context Protocol server that supports remote connections and authenticates users via GitHub OAuth, allowing them to access tools based on their GitHub identity.Last updated -