Skip to content

Commit 9845c73

Browse files
ashwin-antclaude
authored andcommitted
feat: add ReadOnlyHint and DestructiveHint annotations to DeleteFile tool
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 27d6ba6 commit 9845c73

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy