feat: add update_issue_comment tool - #3284
Merged
Merged
Conversation
Add an issues tool for replacing the body of an existing issue or pull request comment, with schema, scope, behavioral, snapshot, and generated documentation coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9acf9c83-49aa-41af-a42d-ad75de34d132
Register nil-safe response body cleanup before handling go-github errors from issue comment updates. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9acf9c83-49aa-41af-a42d-ad75de34d132
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Empty bodies bypass runtime validation, and the documentation ambiguously includes pull request review comments.
Get a fresh assessment by requesting another Copilot review.
Review tier: Balanced (auto)
Findings: 1
Note
Copilot is running an experiment and ran this review at Balanced.
Open (2)
RossTarrant
reviewed
Sep 15, 2026
Reject explicitly empty comment bodies at runtime and distinguish issue and pull request conversation comments from pull request review comments in the tool schema and generated docs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9acf9c83-49aa-41af-a42d-ad75de34d132
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The implementation, validation, scope handling, documentation, snapshots, and tests are consistent and complete.
Review tier: Balanced (auto)
Findings: None
Note
Copilot is running an experiment and ran this review at Balanced.
Resolved since last review (2)
RossTarrant
approved these changes
Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Adds an
update_issue_commentMCP tool that replaces the body of an existing issue or pull request comment and returns the standard minimal ID/URL response.Why
Agents can currently create issue comments but cannot correct or revise them through the MCP server.
Fixes #1083
What changed
update_issue_commentusing the GitHub RESTIssues.EditCommentAPI.MCP impact
The new tool accepts
owner,repo,comment_id, andbody. The REST endpoint identifies the target comment directly, so an issue number is not required.Prompts tested (tool changes only)
Security / limits
The tool uses the same repository/public-repository write-scope behavior as
add_issue_comment; GitHub continues to enforce comment-edit permissions.Tool renaming
deprecated_tool_aliases.goLint & tests
./script/lint./script/testDocs