Home / Servers / GitHub API / pulls_create_review_comment

Create a review comment for a pull request

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

Create a review comment for a pull request Creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see "Create an issue comment." If your comment applies to more than one line in… [POST /repos/{owner}/{repo}/pulls/{pull_number}/comments]

Name on the gateway: github_api__pulls_create_review_comment · may change things.

Parameters

NameTypeDescription
owner requiredstringThe account owner of the repository. The name is not case…
repo requiredstringThe name of the repository without the .git extension. The…
pull_number requiredintegerThe number that identifies the pull request.
body requiredstringThe text of the review comment.
commit_id requiredstringThe SHA of the commit needing a comment. Not using the latest commit SHA may…
path requiredstringThe relative path to the file that necessitates a comment.
positioninteger**This parameter is closing down. Use line instead**. The position in the diff…
sideLEFT | RIGHTIn a split diff view, the side of the diff that the pull request's changes…
lineinteger**Required unless using subject_type:file**. The line of the blob in the pull…
start_lineinteger**Required when using multi-line comments unless using in_reply_to**. The…
start_sideLEFT | RIGHT | side**Required when using multi-line comments unless using in_reply_to**. The…
in_reply_tointegerThe ID of the review comment to reply to. To find the ID of a review comment…
subject_typeline | fileThe level at which the comment is targeted.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "github_api__pulls_create_review_comment",
  "arguments": {
    "owner": "…",
    "repo": "…",
    "pull_number": 0,
    "body": "…",
    "commit_id": "…",
    "path": "…"
  }
}

Or connect the GitHub API server directly, which lists 1,221 tools including this one:

Run in your terminal
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a review comment for a pull request tool with owner set to ….

More from GitHub API