GitHub PR MCP Server
GitHub PR MCP 服务器
使用 TypeScript 构建的 MCP(模型上下文协议)服务器,用于分析 GitHub Pull 请求。
先决条件
Related MCP server: Drone CI MCP Server
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 GitHub PR MCP 服务器:
npx -y @smithery/cli install @gourav221b/Github-PR-MCP-server --client claude手动安装
克隆存储库:
git clone https://github.com/gourav221b/Github-PR-MCP-server.git导航到项目目录:
cd Github-PR-MCP-server安装依赖项:
npm install构建项目:
npm run build添加 MCP 客户端配置的路径:
command: node args: path/to/build/index.js
项目结构
src/:包含 TypeScript 源代码。build/:保存已编译的 JavaScript 文件。package.json:列出项目依赖项和脚本。tsconfig.json:TypeScript 配置文件。
脚本
npm run build:将 TypeScript 文件编译为 JavaScript。npm start:运行已编译的 JavaScript 服务器。
贡献
欢迎贡献代码!请 fork 此代码库并创建 Pull 请求,包含你的修改。
执照
该项目已获得 MIT 许可。
Available Tools
1 toolget-pull-request-dataC
Get detailed information about a GitHub Pull Request including files, diff, comments, and reviews
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | GitHub repository owner | |
| pullNumber | Yes | Pull request number | |
| repo | Yes | GitHub repository name | |
| token | No | GitHub personal access token (optional) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions what data is retrieved but fails to describe critical behaviors such as authentication requirements (though the token parameter is optional in the schema), rate limits, error handling, or response format. For a tool with no annotations, this leaves the agent with insufficient operational context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core action and details without waste. Every word earns its place by specifying the resource and the scope of information retrieved, making it highly concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of retrieving detailed PR data and the lack of annotations and output schema, the description is incomplete. It does not cover behavioral aspects like authentication, rate limits, or response structure, which are crucial for an agent to use the tool effectively. The description alone is insufficient for safe and informed tool invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, so the schema already documents all parameters (owner, repo, pullNumber, token). The description does not add any meaning beyond what the schema provides, such as explaining parameter interactions or constraints. Baseline 3 is appropriate as the schema handles parameter documentation adequately.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('Get') and resource ('detailed information about a GitHub Pull Request'), and specifies what information is included ('files, diff, comments, and reviews'). It distinguishes the scope of data retrieved, though without sibling tools, differentiation isn't applicable. The purpose is specific and actionable.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives, prerequisites, or context for invocation. It lacks any mention of when-not-to-use scenarios or comparisons to other tools, which is a significant gap despite the absence of sibling tools. Usage is implied by the name and description but not explicitly stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.0.0- First observed
get-pull-request-data
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined as retrieving detailed pull request data, making it distinct by default.
The single tool name follows a clear verb_noun pattern ('get-pull-request-data'), which is consistent within this minimal set. There are no other tools to compare against, so no inconsistency can arise.
A server named 'GitHub PR MCP Server' implies a focus on pull requests, but having only one tool is too few for this domain. It lacks essential operations like creating, updating, merging, or listing pull requests, making it severely limited in scope.
The tool surface is severely incomplete for a GitHub PR server. It only provides read access to pull request data, missing core functionalities such as creating, updating, commenting on, or merging pull requests, which are critical for typical workflows.
Maintenance
Related MCP Connectors
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Ship production-ready TypeScript code in half the time, at half the cost.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Node.js/TypeScript server implementing the Model Context Protocol that provides integrations with GitHub and Notion, allowing automated workflow between these platforms via API endpoints.1,106 npmMIT
- AlicenseBqualityCmaintenanceA TypeScript-based MCP server scaffold designed for monitoring and interacting with Drone CI environments. It provides tools for webhook parsing, HMAC signature verification, and state management for CI/CD pipelines.6Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA TypeScript MCP server that validates codebases against configurable rules. It analyzes files for violations and generates JSON reports, supporting custom rule definitions and file extensions.-
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that exposes tools and resources for fetching GitHub user profiles and weather data, with a React interface and clean architecture.2 npm-