10000 feat: add ReadOnlyHint and DestructiveHint annotations to DeleteFile … · github/github-mcp-server@a5b1c9d · GitHub
[go: up one dir, main page]

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 <noreply@anthropic.com>

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)"),