From 90cc813d492735d4a804d9dc51bd1a6a2b4affd1 Mon Sep 17 00:00:00 2001 From: Camila Rondinini Date: Wed, 16 Apr 2025 13:44:02 +0400 Subject: [PATCH] specify sha is required --- pkg/github/repositories.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/github/repositories.go b/pkg/github/repositories.go index 51948730..ec678da2 100644 --- a/pkg/github/repositories.go +++ b/pkg/github/repositories.go @@ -216,7 +216,7 @@ func ListBranches(getClient GetClientFn, t translations.TranslationHelperFunc) ( // CreateOrUpdateFile creates a tool to create or update a file in a GitHub repository. func CreateOrUpdateFile(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) { return mcp.NewTool("create_or_update_file", - mcp.WithDescription(t("TOOL_CREATE_OR_UPDATE_FILE_DESCRIPTION", "Create or update a single file in a GitHub repository")), + mcp.WithDescription(t("TOOL_CREATE_OR_UPDATE_FILE_DESCRIPTION", "Create or update a single file in a GitHub repository. If updating, you must provide the SHA of the file you want to update.")), mcp.WithString("owner", mcp.Required(), mcp.Description("Repository owner (username or organization)"),