GitHub 集成
GitHub完整的 GitHub API 集成,支持仓库管理、Issue、PR、代码搜索等操作。
安装命令
npx -y @modelcontextprotocol/server-github 配置示例
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "你的 GitHub Token"
}
}
}
} 包含工具
create_repositorysearch_codecreate_issuecreate_pull_requestlist_commits
常见问题(FAQ)
GitHub 集成 MCP 是做什么的?
GitHub 集成 是一个 MCP 服务器,主要能力是:完整的 GitHub API 集成,支持仓库管理、Issue、PR、代码搜索等操作。
GitHub 集成 如何安装到 Claude Code?
执行安装命令并加入 MCP 配置即可:npx -y @modelcontextprotocol/server-github
GitHub 集成 提供哪些工具?
当前包含工具:create_repository、search_code、create_issue、create_pull_request、list_commits
GitHub 集成 适合新手吗?
适合程度取决于你的使用场景。当前难度标记为 beginner,建议先用只读或测试环境验证。