GitHub PR Comments MCP Server
by shaileshahuja
This is a Model Context Protocol (MCP) server that fetches GitHub Pull Request comments using a GitHub personal access token. It allows you to retrieve comments with file paths, line ranges, and replies in a structured JSON format.
Last updated: N/A
What is GitHub PR Comments MCP Server?
The GitHub PR Comments MCP Server is a tool that retrieves comments from GitHub Pull Requests. It uses the GitHub API via Octokit and implements an MCP server with StdioServerTransport to provide comments in a structured JSON format.
How to use GitHub PR Comments MCP Server?
- Install the server using npm or Smithery. 2. Configure a GitHub personal access token. 3. Build and run the server. 4. Call the
get_pr_comments
tool with the repository owner, repository name, and pull request number. 5. Integrate with tools like Cursor by providing the server path and token.
Key features of GitHub PR Comments MCP Server
Fetches PR comments with file paths, line ranges, and replies
Uses GitHub API via Octokit
Implements MCP server with StdioServerTransport
Returns comments in a structured JSON format
Use cases of GitHub PR Comments MCP Server
Analyzing code review feedback
Integrating PR comments into development workflows
Automating comment processing
Providing context to AI tools
FAQ from GitHub PR Comments MCP Server
What is a GitHub personal access token?
What is a GitHub personal access token?
A GitHub personal access token is a credential that allows you to access the GitHub API on behalf of your account.
How do I get a GitHub personal access token?
How do I get a GitHub personal access token?
You can generate a personal access token in your GitHub settings under 'Developer settings' -> 'Personal access tokens'.
What permissions does the token need?
What permissions does the token need?
The token needs the 'repo' scope to access private repositories and 'public_repo' scope for public repositories.
How do I specify the repository owner, name, and pull request number?
How do I specify the repository owner, name, and pull request number?
These parameters are passed to the get_pr_comments
tool when calling the server.
What is the format of the returned comments?
What is the format of the returned comments?
The server returns comments in a structured JSON format, including the comment ID, file path, body, line number, user information, and replies.