@@ -1199,15 +1199,15 @@ func GranularSetIssueFields(t translations.TranslationHelperFunc) inventory.Serv
11991199 return st
12001200}
12011201
1202- // AddIssueReaction adds a reaction to an issue.
1202+ // AddIssueReaction adds a reaction to an issue or pull request .
12031203func AddIssueReaction (t translations.TranslationHelperFunc ) inventory.ServerTool {
12041204 st := NewTool (
12051205 ToolsetMetadataIssues ,
12061206 mcp.Tool {
12071207 Name : "add_issue_reaction" ,
1208- Description : t ("TOOL_ADD_ISSUE_REACTION_DESCRIPTION" , "Add a reaction to an issue." ),
1208+ Description : t ("TOOL_ADD_ISSUE_REACTION_DESCRIPTION" , "Add a reaction to an issue or pull request ." ),
12091209 Annotations : & mcp.ToolAnnotations {
1210- Title : t ("TOOL_ADD_ISSUE_REACTION_USER_TITLE" , "Add Issue Reaction " ),
1210+ Title : t ("TOOL_ADD_ISSUE_REACTION_USER_TITLE" , "Add Reaction to Issue or Pull Request " ),
12111211 ReadOnlyHint : false ,
12121212 DestructiveHint : jsonschema .Ptr (false ),
12131213 OpenWorldHint : jsonschema .Ptr (true ),
@@ -1268,7 +1268,8 @@ func AddIssueReaction(t translations.TranslationHelperFunc) inventory.ServerTool
12681268 defer func () { _ = resp .Body .Close () }()
12691269
12701270 r , err := json .Marshal (MinimalResponse {
1271- ID : fmt .Sprintf ("%d" , reaction .GetID ()),
1271+ ID : fmt .Sprintf ("%d" , reaction .GetID ()),
1272+ URL : fmt .Sprintf ("%srepos/%s/%s/issues/%d/reactions/%d" , client .BaseURL (), owner , repo , issueNumber , reaction .GetID ()),
12721273 })
12731274 if err != nil {
12741275 return utils .NewToolResultErrorFromErr ("failed to marshal response" , err ), nil , nil
@@ -1279,15 +1280,15 @@ func AddIssueReaction(t translations.TranslationHelperFunc) inventory.ServerTool
12791280 return st
12801281}
12811282
1282- // AddIssueCommentReaction adds a reaction to an issue comment.
1283+ // AddIssueCommentReaction adds a reaction to an issue or pull request comment.
12831284func AddIssueCommentReaction (t translations.TranslationHelperFunc ) inventory.ServerTool {
12841285 st := NewTool (
12851286 ToolsetMetadataIssues ,
12861287 mcp.Tool {
12871288 Name : "add_issue_comment_reaction" ,
1288- Description : t ("TOOL_ADD_ISSUE_COMMENT_REACTION_DESCRIPTION" , "Add a reaction to an issue comment." ),
1289+ Description : t ("TOOL_ADD_ISSUE_COMMENT_REACTION_DESCRIPTION" , "Add a reaction to an issue or pull request comment." ),
12891290 Annotations : & mcp.ToolAnnotations {
1290- Title : t ("TOOL_ADD_ISSUE_COMMENT_REACTION_USER_TITLE" , "Add Issue Comment Reaction " ),
1291+ Title : t ("TOOL_ADD_ISSUE_COMMENT_REACTION_USER_TITLE" , "Add Reaction to Issue or Pull Request Comment " ),
12911292 ReadOnlyHint : false ,
12921293 DestructiveHint : jsonschema .Ptr (false ),
12931294 OpenWorldHint : jsonschema .Ptr (true ),
@@ -1348,7 +1349,8 @@ func AddIssueCommentReaction(t translations.TranslationHelperFunc) inventory.Ser
13481349 defer func () { _ = resp .Body .Close () }()
13491350
13501351 r , err := json .Marshal (MinimalResponse {
1351- ID : fmt .Sprintf ("%d" , reaction .GetID ()),
1352+ ID : fmt .Sprintf ("%d" , reaction .GetID ()),
1353+ URL : fmt .Sprintf ("%srepos/%s/%s/issues/comments/%d/reactions/%d" , client .BaseURL (), owner , repo , commentID , reaction .GetID ()),
13521354 })
13531355 if err != nil {
13541356 return utils .NewToolResultErrorFromErr ("failed to marshal response" , err ), nil , nil
0 commit comments