Content-Length: 262946 | pFad | http://github.com/github/github-mcp-server/commit/a7d741cc44e8f3bc146e9e2980bd0feaccaf66e5

55 fix: specify sha is required (#320) · github/github-mcp-server@a7d741c · GitHub
Skip to content

Commit a7d741c

Browse files
authored
fix: specify sha is required (#320)
1 parent 4e26dce commit a7d741c

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
@@ -228,7 +228,7 @@ func ListBranches(getClient GetClientFn, t translations.TranslationHelperFunc) (
228228
// CreateOrUpdateFile creates a tool to create or update a file in a GitHub repository.
229229
func CreateOrUpdateFile(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
230230
return mcp.NewTool("create_or_update_file",
231-
mcp.WithDescription(t("TOOL_CREATE_OR_UPDATE_FILE_DESCRIPTION", "Create or update a single file in a GitHub repository")),
231+
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.")),
232232
mcp.WithToolAnnotation(mcp.ToolAnnotation{
233233
Title: t("TOOL_CREATE_OR_UPDATE_FILE_USER_TITLE", "Create or update file"),
234234
ReadOnlyHint: false,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/github-mcp-server/commit/a7d741cc44e8f3bc146e9e2980bd0feaccaf66e5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy