MCP.so
登录

GitHub MCP Server

@AlexKissiJr

关于 GitHub MCP Server

暂无概览

基本信息

分类

版本控制

运行时

node

传输方式

stdio

发布者

AlexKissiJr

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "unreal-mcp-server": {
      "command": "docker",
      "args": [
        "build",
        "-t",
        "mcp/github",
        "-f",
        "src/github/Dockerfile",
        "."
      ]
    }
  }
}

工具

40

`owner` (string): Repository owner (username or organization)

File content and commit details

`owner` (string): Repository owner

Updated branch reference

`query` (string): Search query

Repository search results

`name` (string): Repository name

Created repository details

`owner` (string): Repository owner

File/directory contents

`owner` (string): Repository owner

Created issue details

`owner` (string): Repository owner

Created pull request details

`owner` (string): Repository owner

Forked repository details

`owner` (string): Repository owner

Created branch reference

`owner` (string): Repository owner

List of commits

`owner` (string): Repository owner

Github Issue object & details

`owner` (string): Repository owner

Pull request details including diff and review status

`owner` (string): Repository owner

Array of pull request details

`owner` (string): Repository owner

Created review details

`owner` (string): Repository owner

Merge result details

`owner` (string): Repository owner

Array of changed files with patch and status details

`owner` (string): Repository owner

Combined status check results and individual check details

`owner` (string): Repository owner

Success message when branch is updated

`owner` (string): Repository owner

Array of pull request review comments with details like the comment text, author, and location in the diff

`owner` (string): Repository owner

Array of pull request reviews with details like the review state (APPROVED, CHANGES_REQUESTED, etc.), reviewer, and review body

概览

What is GitHub MCP Server?

MCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.

How to use GitHub MCP Server?

Key features of GitHub MCP Server

  • Automatic branch creation when creating/updating files
  • Comprehensive error handling with clear messages
  • Git history preservation without force pushing
  • Batch operations for single and multi-file commits
  • Advanced search for code, issues/PRs, and users

Use cases of GitHub MCP Server

  • Automate file creation and updates across repositories
  • Manage issues, pull requests, and reviews programmatically
  • Search for code, issues, or users with advanced queries
  • Fork repositories and create branches via API
  • Batch push multiple files in a single commit

FAQ from GitHub MCP Server

How do I search for code across repositories?

Use the search_code tool with a query using GitHub code search syntax (e.g., language:javascript to filter by language).

Can I create a repository with this server?

Yes, use the create_repository tool with a required name and optional description, private, and autoInit parameters.

What is the maximum number of results per page for search?

The maximum is 100 for search tools like search_repositories, search_code, search_issues, and search_users, as well as for list_pull_requests.

How do I update an existing file without overwriting?

Use create_or_update_file and provide the sha of the file being replaced; the server will update the file instead of creating a new one.

How can I filter issues by labels and state?

Use the list_issues tool with state (open/closed/all) and labels (array of label names) parameters to filter the results.

评论

版本控制 分类下的更多 MCP 服务器