Token导航 LogoToken导航TokenDH.com
GitHub PR Comments MCP Server logo
开发工具stdio官方级别未说明来源级核验

GitHub PR Comments MCP Server

MCP Server

@smithery/cli

MCP server that fetches GitHub Pull Request comments

工具数

1

提示词数

0

GitHub Stars

3

资源数

0
GitHub代码审查TypeScriptClaude开发工具Claude DesktopClaudeCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

shaileshahuja

提供方

shaileshahuja

最后核验

2026/5/18 04:06

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx -y @smithery/cli install github-pr-mcp --client claude

详细介绍

GitHub PR评论MCP服务器

](https://smithery.ai/server/github-pr-mcp)

这是一个模型上下文协议(MCP)服务器,使用GitHub个人访问令牌获取GitHub Pull Request注释。

特性

  • 获取带有文件路径、行范围和回复的PR注释
  • 通过Octokit使用GitHub API
  • 使用StdioServerTransport实现MCP服务器
  • 以结构化JSON格式返回注释

安装

通过Smithery安装

通过以下方式自动安装Claude Desktop的github pr mcp 史密瑟里:

npx -y @smithery/cli install github-pr-mcp --client claude

手动安装

  1. 克隆存储库
  1. 安装依赖项:
   npm install
  1. 创建一个 .env 使用您的GitHub令牌的文件:
   GITHUB_TOKEN=your_github_token_here

用法

  1. 构建项目:
   npm run build
  1. 运行服务器:
   npm start

或者直接使用GitHub代币:

   node dist/server.js your_github_token_here
  1. 服务器公开了一个名为 get_pr_comments 它接受以下参数:

- owner:存储库所有者(用户名或组织) - repo:存储库名称 - pull_number:拉取请求号

与Cursor集成

要与Cursor集成,请在Cursor的MCP服务器配置中使用以下命令:

node /path/to/dist/server.js your_github_token_here

替换 /path/to 了解项目的实际路径,以及 your_github_token_here 使用您的GitHub个人访问令牌。

测试

包含一个测试客户端来验证服务器功能:

  1. 构建项目:
   npm run build
  1. 运行测试客户端:
   npm test

测试客户端将启动服务器,连接到服务器,并调用 get_pr_comments 带有示例参数的工具。

响应格式

服务器以以下格式返回注释:

{
  "comments": [
    {
      "id": 123456789,
      "path": "src/example.js",
      "body": "This is a comment on a specific line",
      "line": 42,
      "start_line": 40,
      "user": {
        "login": "username"
      },
      "created_at": "2023-01-01T00:00:00Z",
      "replies": [
        {
          "id": 987654321,
          "body": "This is a reply to the comment",
          "user": {
            "login": "another-username"
          },
          "created_at": "2023-01-02T00:00:00Z"
        }
      ]
    }
  ]
}

发展

要在开发模式下运行服务器,请执行以下操作:

npm run dev

许可证

国际协调委员会

目录标签

目录标签

GitHub代码审查TypeScriptClaude开发工具developer-toolspull-requestcommentsmcpserverGitHub集成本地部署MCP协议API服务

支持客户端

Claude DesktopClaudeCursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

部署方式(deploymentType,部署类型)

remote-capable

来源包(packageName,安装包名)

@smithery/cli

工具数量(toolCount,工具数)

1

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiononeremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP