-
securityF
license-
qualityProvides tools for interacting with GitHub's API through the MCP protocol, allowing users to create repositories, push content, and retrieve user information.
Last updated -
JavaScript
GitHub API 的 MCP 服务器,支持文件操作、存储库管理、搜索功能等。
create_or_update_file
owner
(字符串):存储库所有者(用户名或组织)repo
(字符串):存储库名称path
(字符串):创建/更新文件的路径content
(字符串):文件的内容message
(字符串):提交消息branch
(字符串):创建/更新文件的分支sha
(可选字符串):被替换文件的 SHA(用于更新)push_files_content
owner
(字符串):存储库所有者repo
(字符串):存储库名称branch
(字符串):要推送到的分支files
(数组):要推送的文件,每个文件都有path
和content
message
(字符串):提交消息push_files_from_path
owner
(字符串):存储库所有者repo
(字符串):存储库名称branch
(字符串):要推送到的分支files
(数组):要推送的文件,每个文件包含:path
(字符串):存储库中的目标路径filepath
(字符串):要读取的源文件系统路径message
(字符串):提交消息search_repositories
query
(字符串):搜索查询page
(可选数字):分页的页码perPage
(可选数字):每页结果数(最多 100 条)create_repository
name
(字符串):存储库名称description
(可选字符串):存储库描述private
(可选布尔值):repo 是否应为私有autoInit
(可选布尔值):使用 README 初始化get_file_contents
owner
(字符串):存储库所有者repo
(字符串):存储库名称path
(字符串):文件/目录的路径branch
(可选字符串):从中获取内容的分支create_issue
owner
(字符串):存储库所有者repo
(字符串):存储库名称title
(字符串):问题标题body
(可选字符串):问题描述assignees
(可选字符串[]):要分配的用户名labels
(可选字符串[]):要添加的标签milestone
(可选数字):里程碑编号create_pull_request
owner
(字符串):存储库所有者repo
(字符串):存储库名称title
(字符串):PR 标题body
(可选字符串):PR 描述head
(字符串):包含更改的分支base
(字符串):要合并到的分支draft
(可选布尔值):创建为 PR 草稿maintainer_can_modify
(可选布尔值):允许维护者编辑fork_repository
owner
(字符串):存储库所有者repo
(字符串):存储库名称organization
(可选字符串):要分叉的组织create_branch
owner
(字符串):存储库所有者repo
(字符串):存储库名称branch
(字符串):新分支的名称from_branch
(可选字符串):源分支(默认为 repo default)list_issues
owner
(字符串):存储库所有者repo
(字符串):存储库名称state
(可选字符串):按状态过滤('打开','关闭','全部')labels
(可选字符串[]):按标签过滤sort
(可选字符串):按('创建','更新','评论')排序direction
(可选字符串):排序方向('asc','desc')since
(可选字符串):按日期过滤(ISO 8601 时间戳)page
(可选数字):页码per_page
(可选数字):每页结果数update_issue
owner
(字符串):存储库所有者repo
(字符串):存储库名称issue_number
(数字):要更新的问题编号title
(可选字符串):新标题body
(可选字符串):新的描述state
(可选字符串):新状态(“打开”或“关闭”)labels
(可选字符串[]):新标签assignees
(可选字符串[]):新受让人milestone
(可选数字):新的里程碑编号add_issue_comment
owner
(字符串):存储库所有者repo
(字符串):存储库名称issue_number
(数字):要评论的问题编号body
(字符串):评论文本search_code
q
(字符串):使用 GitHub 代码搜索语法的搜索查询sort
(可选字符串):排序字段(仅限“索引”)order
(可选字符串):排序顺序('asc' 或 'desc')per_page
(可选数字):每页结果数(最多 100 条)page
(可选数字):页码search_issues
q
(字符串):使用 GitHub 问题搜索语法进行搜索查询sort
(可选字符串):排序字段(评论、反应、创建等)order
(可选字符串):排序顺序('asc' 或 'desc')per_page
(可选数字):每页结果数(最多 100 条)page
(可选数字):页码search_users
q
(字符串):使用 GitHub 用户搜索语法的搜索查询sort
(可选字符串):排序字段(关注者、存储库、加入)order
(可选字符串):排序顺序('asc' 或 'desc')per_page
(可选数字):每页结果数(最多 100 条)page
(可选数字):页码list_commits
owner
(字符串):存储库所有者repo
(字符串):存储库名称page
(可选字符串):页码per_page
(可选字符串):每页记录数sha
(可选字符串):分支名称get_issue
owner
(字符串):存储库所有者repo
(字符串):存储库名称issue_number
(数字):要检索的问题编号get_pull_request
owner
(字符串):存储库所有者repo
(字符串):存储库名称pull_number
(数字):拉取请求编号list_pull_requests
owner
(字符串):存储库所有者repo
(字符串):存储库名称state
(可选字符串):按状态过滤('打开','关闭','全部')head
(可选字符串):按主管用户/组织和分支进行过滤base
(可选字符串):按基本分支过滤sort
(可选字符串):按('创建','更新','受欢迎程度','长期运行')排序direction
(可选字符串):排序方向('asc','desc')per_page
(可选数字):每页结果数(最多 100 条)page
(可选数字):页码create_pull_request_review
owner
(字符串):存储库所有者repo
(字符串):存储库名称pull_number
(数字):拉取请求编号body
(字符串):评论文本event
(字符串):审查操作('APPROVE','REQUEST_CHANGES','COMMENT')commit_id
(可选字符串):提交审核的 SHAcomments
(可选数组):特定于行的注释,每行包含:path
(字符串):文件路径position
(数字):差异中的行位置body
(字符串):评论文本merge_pull_request
owner
(字符串):存储库所有者repo
(字符串):存储库名称pull_number
(数字):拉取请求编号commit_title
(可选字符串):合并提交的标题commit_message
(可选字符串):合并提交的额外详细信息merge_method
(可选字符串):合并方法('merge','squash','rebase')get_pull_request_files
owner
(字符串):存储库所有者repo
(字符串):存储库名称pull_number
(数字):拉取请求编号get_pull_request_status
owner
(字符串):存储库所有者repo
(字符串):存储库名称pull_number
(数字):拉取请求编号update_pull_request_branch
owner
(字符串):存储库所有者repo
(字符串):存储库名称pull_number
(数字):拉取请求编号expected_head_sha
(可选字符串):拉取请求的 HEAD ref 的预期 SHAget_pull_request_comments
owner
(字符串):存储库所有者repo
(字符串):存储库名称pull_number
(数字):拉取请求编号get_pull_request_reviews
owner
(字符串):存储库所有者repo
(字符串):存储库名称pull_number
(数字):拉取请求编号language:javascript
:按编程语言搜索repo:owner/name
:在特定存储库中搜索path:app/src
:在特定路径中搜索extension:js
:按文件扩展名搜索q: "import express" language:typescript path:src/
is:issue
或is:pr
:按类型过滤is:open
或is:closed
:按状态过滤label:bug
:按标签搜索author:username
:按作者搜索q: "memory leak" is:issue is:open label:bug
type:user
或type:org
:按帐户类型过滤followers:>1000
:按关注者过滤location:London
:按地点搜索q: "fullstack developer" location:London followers:>100
有关详细的搜索语法,请参阅GitHub 的搜索文档。
repo
范围的令牌(“完全控制私有存储库”)public_repo
范围要将其与 Claude Desktop 一起使用,请将以下内容添加到您的claude_desktop_config.json
中:
Docker 构建:
此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。
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 API 的 MCP 服务器,提供文件操作、存储库管理和高级搜索功能,具有自动分支创建和全面的错误处理功能。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PhialsBasement/mcp-github-server-plus'
If you have feedback or need assistance with the MCP directory API, please join our Discord server