How to let Cursor read Github PR comments in Chat in local cursor agent

I have two PRs. PR A has been merged into main branch, but there are some follow up comments later.

I am working on PR B with active feature branch. I want to let local Cursor agent mode to read PR A comments. I tried to refer it with @PR but cursor keeps telling me that it can not read summary/comments from Github PR.

I want to know if it is possible to let local cursor IDE to read Github PR with enough permission? If so, how did you set it up? I have enabled Github integration in cursor dashboard, but I think that is for using cursor directly on Github webpages.

Thanks.

1 Like

i think its possible, perhaps its related into Github MCP and access of your Github MCP since i use Gitlab and Github MCP, its able to doing it.

Check on here :

Also, do you use Github MCP? and whcih one do you use ?

Thanks for the reply. I am using Github, but I am not very familiar with Github MCP. I will take a further look into it. I have signed into my Github account so I thought Cursor would already be accessing them.

if you have problem setup Github MCP, just ask here, maybe i can help you

1 Like

This used to work natively in Cursor and it was awesome. It got “disabled due to performance issues” in 1.5 and Cursor never commented on if they would bring it back or not

I think the only way to do it now is MCP.

I workaround this by running:

gh api repos/:owner/:repo/pulls/$(gh pr view --json number -q .number)/comments --jq ‘. | “File: (.path):(.line)\nAuthor: (.user.login)\n(.body)\n—\n”’ > PR_comments.md

Then I have Cursor look at that outputted file and address the comments

1 Like

Both GitHub MCP and the gh CLI call are good. Though the cli call would be much more token effective though the MCP may be more automated.