Skip to content

Commit a5b1c9d

Browse files
ashwin-antclaude
andcommitted
feat: add ReadOnlyHint and DestructiveHint annotations to DeleteFile tool
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 84f5607 commit a5b1c9d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/github/repositories.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,11 @@ func ForkRepository(getClient GetClientFn, t translations.TranslationHelperFunc)
560560
func DeleteFile(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
561561
return mcp.NewTool("delete_file",
562562
mcp.WithDescription(t("TOOL_DELETE_FILE_DESCRIPTION", "Delete a file from a GitHub repository")),
563+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
564+
Title: t("TOOL_DELETE_FILE_USER_TITLE", "Delete file"),
565+
ReadOnlyHint: false,
566+
DestructiveHint: true,
567+
}),
563568
mcp.WithString("owner",
564569
mcp.Required(),
565570
mcp.Description("Repository owner (username or organization)"),

0 commit comments

Comments
 (0)