github-mcp-server icon indicating copy to clipboard operation
github-mcp-server copied to clipboard

feat: add add_reply_to_pull_request_comment tool

Open plaskowski opened this issue 5 months ago • 2 comments

Add a new tool that allows AI agents to reply to existing pull request comments. This tool uses GitHub's CreateCommentInReplyTo REST API to create threaded conversations on pull requests.

Features:

  • Reply to any existing PR comment using its ID
  • Proper error handling for missing parameters and API failures
  • Comprehensive test coverage (8 test cases)
  • Follows project patterns and conventions
  • Registered in pull_requests toolset as a write operation

Parameters:

  • owner: Repository owner (required)
  • repo: Repository name (required)
  • pullNumber: Pull request number (required)
  • commentId: ID of comment to reply to (required)
  • body: Reply text content (required)

This tool complements the existing add_comment_to_pending_review tool by enabling responses to already-posted comments, enhancing AI-powered code review workflows.

Closes: #635

plaskowski avatar Jul 21 '25 19:07 plaskowski

Hi @plaskowski Thank you for creating this PR!

Is this PR ready for review? I'd love to be able to use this feature soon.

skanehira avatar Nov 20 '25 06:11 skanehira

@skanehira I have been using it for a while from my fork. To be honest I don't plan to work on this soon so feel free to pick up the work to bring it to mergable state.

plaskowski avatar Nov 20 '25 07:11 plaskowski