fix mcp-go bump breaking change · github/github-mcp-server@33d0402 · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit 33d0402

Browse files
committed
fix mcp-go bump breaking change
1 parent 36833ff commit 33d0402

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/github/repositories.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -558,17 +558,17 @@ func ForkRepository(getClient GetClientFn, t translations.TranslationHelperFunc)
558558

559559
// DeleteFile creates a tool to delete a file in a GitHub repository.
560560
// This tool uses a more roundabout way of deleting a file than just using the client.Repositories.DeleteFile.
561-
// This is because REST file deletion endpoint (and client.Repositories.DeleteFile) don't add commit signing to the deletion commit,
562-
// unlike how the endpoint backing the create_or_update_files tool does. This appears to be a quirk of the API.
563-
// The approach implemented here gets automatic commit signing when used with either the github-actions user or as an app,
561+
// This is because REST file deletion endpoint (and client.Repositories.DeleteFile) don't add commit signing to the deletion commit,
562+
// unlike how the endpoint backing the create_or_update_files tool does. This appears to be a quirk of the API.
563+
// The approach implemented here gets automatic commit signing when used with either the github-actions user or as an app,
564564
// both of which suit an LLM well.
565565
func DeleteFile(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
566566
return mcp.NewTool("delete_file",
567567
mcp.WithDescription(t("TOOL_DELETE_FILE_DESCRIPTION", "Delete a file from a GitHub repository")),
568568
mcp.WithToolAnnotation(mcp.ToolAnnotation{
569569
Title: t("TOOL_DELETE_FILE_USER_TITLE", "Delete file"),
570-
ReadOnlyHint: false,
571-
DestructiveHint: true,
570+
ReadOnlyHint: toBoolPtr(false),
571+
DestructiveHint: toBoolPtr(true),
572572
}),
573573
mcp.WithString("owner",
574574
mcp.Required(),

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.