Skip to content

Commit 12e506d

Browse files
committed
add annotations
1 parent f674068 commit 12e506d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pkg/github/issues.go

+4
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ func AddIssueComment(getClient GetClientFn, t translations.TranslationHelperFunc
154154
func UpdateIssueComment(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
155155
return mcp.NewTool("update_issue_comment",
156156
mcp.WithDescription(t("TOOL_UPDATE_ISSUE_COMMENT_DESCRIPTION", "Update a comment on an issue")),
157+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
158+
Title: t("TOOL_UPDATE_ISSUE_COMMENT_USER_TITLE", "Update issue comment"),
159+
ReadOnlyHint: false,
160+
}),
157161
mcp.WithString("owner",
158162
mcp.Required(),
159163
mcp.Description("Repository owner"),

pkg/github/pullrequests.go

+4
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,10 @@ func CreatePullRequestReview(getClient GetClientFn, t translations.TranslationHe
11361136
func UpdatePullRequestComment(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
11371137
return mcp.NewTool("update_pull_request_comment",
11381138
mcp.WithDescription(t("TOOL_UPDATE_PULL_REQUEST_COMMENT_DESCRIPTION", "Update a review comment on a pull request")),
1139+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
1140+
Title: t("TOOL_UPDATE_PULL_REQUEST_COMMENT_USER_TITLE", "Update pull request comment"),
1141+
ReadOnlyHint: false,
1142+
}),
11391143
mcp.WithString("owner",
11401144
mcp.Required(),
11411145
mcp.Description("Repository owner"),

0 commit comments

Comments
 (0)