feat: add reply_to_review_comment tool for inline PR comment replies #98
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/OpenSpec
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
RFC - Request For Comments
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
hermes-attempted
hermes-needs-clarification
hermes-ready
hermes-review
hermes-wip
human-required
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
agentic-forges/forgejo-mcp#98
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Currently the MCP server supports creating general PR comments via create_issue_comment, but there is no way to post a threaded reply to a specific inline review comment (the "reply" button visible under each diff comment
in the Forgejo UI).
The Forgejo API supports this via:
POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments
with a reply_id field pointing to the comment being replied to.
Motivation
In a code review workflow, the PR author needs to respond directly to each inline reviewer comment — explaining why feedback was addressed, why it was skipped, or why it was incorrect. Without threaded replies, these
responses land as top-level PR comments and lose their context.
This is especially important for AI-assisted review workflows where responses need to be traceable back to specific inline comments.
Acceptance Criteria
How to Test
Thanks for the feature request!
After investigation, the forgejo-sdk (all versions including the new v3.0.0) does not expose a method for posting threaded replies to inline review comments. The
CreatePullReviewCommentstruct lacks areply_to/in_reply_tofield, and there is no dedicated SDK method forPOST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/commentswith reply threading.We'd prefer to implement this via the SDK rather than making raw HTTP calls, to stay consistent with the rest of the codebase and benefit from SDK-level validation and versioning.
Marking this as blocked until upstream forgejo-sdk adds support. An issue/contribution to mvdkleijn/forgejo-sdk would unblock this.
I believe a precedent in the codebase has been created a while ago to work around SDK limitations, so maybe that could be unblocked now and implemented directly?