Server Github MCP (PR Comment)
@195440
关于 Server Github MCP (PR Comment)
what is GitHub MCP Server?
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@rz195440/server-github-mcp"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}工具
43`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
`owner` (string): Repository owner
Created comment details
`owner` (string): Repository owner
概览
What is GitHub MCP Server?
An MCP (Model Context Protocol) server that wraps the GitHub API, enabling file operations, repository management, search functionality, issue and pull request handling, and more. It is designed for developers and AI agents who need programmatic access to GitHub via the MCP protocol.
How to use GitHub MCP Server?
The server exposes 28 tools, each with defined inputs and outputs. Invoke it through an MCP client by calling the desired tool with the required parameters (owner, repo, branch, etc.). The README lists all tools and their complete parameter schemas.
Key features of GitHub MCP Server
- Automatic branch creation when missing
- Comprehensive error handling with clear messages
- Git history preservation (no force pushes)
- Batch file operations via
push_files - Advanced search for code, issues/PRs, and users
- Support for pull request reviews and comments
Use cases of GitHub MCP Server
- Automating repository file creation and updates across multiple files
- Managing issues and pull requests (create, update, comment, merge)
- Searching code repositories, issues, and users programmatically
- Adding line-specific or summary comments on pull requests
- Retrieving commit history and file changes in pull requests
FAQ from GitHub MCP Server
Is the development of this server still active here?
No. Development has moved to the repository at https://github.com/195440/server-github-mcp. The current repository is deprecated.
What tools does the server provide?
The server provides 28 tools covering file operations (create/update, push multiple files), repository management (create, fork, search), issues, pull requests (create, review, merge, get comments, update branch), and search (code, issues, users).
How are errors handled?
The server includes comprehensive error handling that returns clear, descriptive error messages for common issues such as missing parameters or authentication failures.
Does the server preserve Git history during file operations?
Yes. File creation and update operations maintain proper Git history and do not force push. Branches are automatically created if they do not already exist.
Can I perform batch operations?
Yes. The push_files tool allows pushing multiple files in a single commit, supporting batch file operations.
版本控制 分类下的更多 MCP 服务器
🚀 GitLab MR MCP
kopfrechnerInteract seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.
Linear MCP Server
jerhadfA server that integrates Linear's project management system with the Model Context Protocol (MCP) to allow LLMs to interact with Linear.

GitLab
modelcontextprotocolModel Context Protocol Servers
Atlassian Data Center MCP
b1ffMCP servers for the Atlassian products (Bitbucket, Confluence, JIRA) of the Data Center version
Test
skillsCreate a site or blog from your GitHub repositories with GitHub Pages.
评论