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
| Name | Type | Description |
|---|---|---|
owner required | string | The account owner of the repository. The name is not case… |
repo required | string | The name of the repository without the .git extension. The… |
pull_number required | integer | The number that identifies the pull request. |
body required | string | The text of the review comment. |
commit_id required | string | The SHA of the commit needing a comment. Not using the latest commit SHA may… |
path required | string | The relative path to the file that necessitates a comment. |
position | integer | **This parameter is closing down. Use line instead**. The position in the diff… |
side | LEFT | RIGHT | In a split diff view, the side of the diff that the pull request's changes… |
line | integer | **Required unless using subject_type:file**. The line of the blob in the pull… |
start_line | integer | **Required when using multi-line comments unless using in_reply_to**. The… |
start_side | LEFT | RIGHT | side | **Required when using multi-line comments unless using in_reply_to**. The… |
in_reply_to | integer | The ID of the review comment to reply to. To find the ID of a review comment… |
subject_type | line | file | The 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:
{
"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:
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 ….