Skip to content

Commit 3670d14

Browse files
committed
add annotations
1 parent d875c74 commit 3670d14

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pkg/github/issues.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ func AddIssueComment(getClient GetClientFn, t translations.TranslationHelperFunc
157157
func UpdateIssueComment(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
158158
return mcp.NewTool("update_issue_comment",
159159
mcp.WithDescription(t("TOOL_UPDATE_ISSUE_COMMENT_DESCRIPTION", "Update a comment on an issue")),
160+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
161+
Title: t("TOOL_UPDATE_ISSUE_COMMENT_USER_TITLE", "Update issue comment"),
162+
ReadOnlyHint: toBoolPtr(false),
163+
}),
160164
mcp.WithString("owner",
161165
mcp.Required(),
162166
mcp.Description("Repository owner"),

pkg/github/pullrequests.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,10 @@ func CreateAndSubmitPullRequestReview(getGQLClient GetGQLClientFn, t translation
963963
func UpdatePullRequestComment(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
964964
return mcp.NewTool("update_pull_request_comment",
965965
mcp.WithDescription(t("TOOL_UPDATE_PULL_REQUEST_COMMENT_DESCRIPTION", "Update a review comment on a pull request")),
966+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
967+
Title: t("TOOL_UPDATE_PULL_REQUEST_COMMENT_USER_TITLE", "Update pull request comment"),
968+
ReadOnlyHint: toBoolPtr(false),
969+
}),
966970
mcp.WithString("owner",
967971
mcp.Required(),
968972
mcp.Description("Repository owner"),

0 commit comments

Comments
 (0)