mcp-gh-pr-mini
@y-hirakaw
关于 mcp-gh-pr-mini
A minimal MCP (Model Context Protocol) server for interacting with GitHub pull requests.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-gh-pr-mini": {
"command": "npx",
"args": [
"mcp-gh-pr-mini"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": ""
}
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is mcp-gh-pr-mini?
mcp-gh-pr-mini is a minimal MCP (Model Context Protocol) server for interacting with GitHub pull requests. It runs in your local environment and works with MCP-compatible clients like Copilot Agent, enabling creation, listing, diff viewing, reviewer requests, and commenting on PRs.
How to use mcp-gh-pr-mini?
Configure the server in your VSCode settings.json using the command npx mcp-gh-pr-mini and set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable. You need Node.js and a VSCode extension that supports MCP (e.g., Copilot Agent). The server is invoked automatically by your MCP client when you use the provided tools.
Key features of mcp-gh-pr-mini
- Create a pull request in a GitHub repository
- List open pull requests
- Get the diff for a pull request
- Request reviewers for a pull request
- Add comments (prefixes with "[AI] Generated using MCP")
- Get comments and file changes with comment positions
Use cases of mcp-gh-pr-mini
- Automate pull request creation from AI-assisted workflows
- Review diffs of open PRs directly in your editor
- Request specific reviewers without leaving the chat
- Add code review comments at file or position-specific levels
- Retrieve existing comments and changed file details for analysis
FAQ from mcp-gh-pr-mini
What type of GitHub token is required?
A fine-grained personal access token with Pull requests (Read and write), Issues (Read and write), and Contents (Read and write) permissions.
Can I add both general and position-specific comments?
Yes. The server supports general PR comments and position-specific code review comments, both automatically prefixed with "[AI] Generated using MCP".
Where does mcp-gh-pr-mini run?
It runs as an MCP server in your local environment. There is no hosted or remote service; you configure it in VSCode's settings.json and it uses your local Node.js installation.
What are the dependencies?
Node.js is required. For use with VSCode, you need an MCP-compatible extension such as Copilot Agent.
Is this a full-featured GitHub client?
No. This is a minimal, focused implementation for essential pull request tasks (create, list, diff, reviewers, comments, file changes). It is intended as a simple reference and learning tool.
版本控制 分类下的更多 MCP 服务器
MCP Atlassian Server (by phuc-nt)
phuc-ntMCP server connecting AI assistants with Jira & Confluence for smart project management.
GitMCP
idosalPut an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
Git MCP Server
cyanheadsA Git MCP server for AI agents. STDIO & Streamable HTTP.
MCP Git Ingest
adhikaspA Model Context Protocol (MCP) server that helps read GitHub repository structure and important files.
Linear MCP Server
clinea private MCP server for accessing Linear
评论