Skip to content

Commit 90cc813

Browse files
committed
specify sha is required
1 parent 614f226 commit 90cc813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/repositories.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func ListBranches(getClient GetClientFn, t translations.TranslationHelperFunc) (
216216
// CreateOrUpdateFile creates a tool to create or update a file in a GitHub repository.
217217
func CreateOrUpdateFile(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
218218
return mcp.NewTool("create_or_update_file",
219-
mcp.WithDescription(t("TOOL_CREATE_OR_UPDATE_FILE_DESCRIPTION", "Create or update a single file in a GitHub repository")),
219+
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.")),
220220
mcp.WithString("owner",
221221
mcp.Required(),
222222
mcp.Description("Repository owner (username or organization)"),

0 commit comments

Comments
 (0)