You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep the standalone reaction tools behind granular feature flags to avoid expanding the default tool count. Add optional reaction support to the existing issue comment and pull request comment reply tools, requiring at least one of body or reaction.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+7-26Lines changed: 7 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -841,23 +841,10 @@ The following sets of tools are available:
841
841
842
842
-**add_issue_comment** - Add comment to issue or pull request
843
843
-**Required OAuth Scopes**: `repo`
844
-
-`body`: Comment content(string, required)
845
-
-`issue_number`: Issue number to comment on (number, required)
844
+
-`body`: Comment content. Required unless reaction is provided. (string, optional)
845
+
-`issue_number`: Issue number to comment on or react to (number, required)
846
846
-`owner`: Repository owner (string, required)
847
-
-`repo`: Repository name (string, required)
848
-
849
-
-**add_issue_comment_reaction** - Add Reaction to Issue or Pull Request Comment
850
-
-**Required OAuth Scopes**: `repo`
851
-
-`comment_id`: The issue comment ID (number, required)
852
-
-`content`: The emoji reaction type (string, required)
853
-
-`owner`: Repository owner (username or organization) (string, required)
854
-
-`repo`: Repository name (string, required)
855
-
856
-
-**add_issue_reaction** - Add Reaction to Issue or Pull Request
857
-
-**Required OAuth Scopes**: `repo`
858
-
-`content`: The emoji reaction type (string, required)
859
-
-`issue_number`: The issue number (number, required)
860
-
-`owner`: Repository owner (username or organization) (string, required)
847
+
-`reaction`: Emoji reaction to add. Required unless body is provided. (string, optional)
861
848
-`repo`: Repository name (string, required)
862
849
863
850
-**get_label** - Get a specific label from a repository
@@ -1109,19 +1096,13 @@ The following sets of tools are available:
1109
1096
-`startSide`: For multi-line comments, the starting side of the diff that the comment applies to. LEFT indicates the previous state, RIGHT indicates the new state (string, optional)
1110
1097
-`subjectType`: The level at which the comment is targeted (string, required)
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/add_issue_comment.snap
+18-5Lines changed: 18 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,35 @@
2
2
"annotations": {
3
3
"title": "Add comment to issue or pull request"
4
4
},
5
-
"description": "Add a comment to a specific issue in a GitHub repository. Use this tool to add comments to pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add review comments.",
5
+
"description": "Add a comment and/or reaction to a specific issue in a GitHub repository. Use this tool with pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add or react to review comments. At least one of body or reaction is required.",
6
6
"inputSchema": {
7
7
"properties": {
8
8
"body": {
9
-
"description": "Comment content",
9
+
"description": "Comment content. Required unless reaction is provided.",
10
10
"type": "string"
11
11
},
12
12
"issue_number": {
13
-
"description": "Issue number to comment on",
13
+
"description": "Issue number to comment on or react to",
14
14
"type": "number"
15
15
},
16
16
"owner": {
17
17
"description": "Repository owner",
18
18
"type": "string"
19
19
},
20
+
"reaction": {
21
+
"description": "Emoji reaction to add. Required unless body is provided.",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/add_reply_to_pull_request_comment.snap
+19-7Lines changed: 19 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,39 @@
2
2
"annotations": {
3
3
"title": "Add reply to pull request comment"
4
4
},
5
-
"description": "Add a reply to an existing pull request comment. This creates a new comment that is linked as a reply to the specified comment.",
5
+
"description": "Add a reply and/or reaction to an existing pull request comment. This can create a new comment linked as a reply to the specified comment, add an emoji reaction to the specified comment, or do both. At least one of body or reaction is required.",
6
6
"inputSchema": {
7
7
"properties": {
8
8
"body": {
9
-
"description": "The text of the reply",
9
+
"description": "The text of the reply. Required unless reaction is provided.",
10
10
"type": "string"
11
11
},
12
12
"commentId": {
13
-
"description": "The ID of the comment to reply to",
13
+
"description": "The ID of the comment to reply or react to",
14
14
"type": "number"
15
15
},
16
16
"owner": {
17
17
"description": "Repository owner",
18
18
"type": "string"
19
19
},
20
20
"pullNumber": {
21
-
"description": "Pull request number",
21
+
"description": "Pull request number. Required when body is provided.",
22
22
"type": "number"
23
23
},
24
+
"reaction": {
25
+
"description": "Emoji reaction to add. Required unless body is provided.",
Description: t("TOOL_ADD_ISSUE_COMMENT_DESCRIPTION", "Add a comment to a specific issue in a GitHub repository. Use this tool to add comments to pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add review comments."),
1060
+
Description: t("TOOL_ADD_ISSUE_COMMENT_DESCRIPTION", "Add a comment and/or reaction to a specific issue in a GitHub repository. Use this tool with pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add or react to review comments. At least one of body or reaction is required."),
1061
1061
Annotations: &mcp.ToolAnnotations{
1062
1062
Title: t("TOOL_ADD_ISSUE_COMMENT_USER_TITLE", "Add comment to issue or pull request"),
0 commit comments