Content-Length: 266992 | pFad | http://github.com/github/github-mcp-server/commit/20afb0fd9e0966afc45808d975c8d620fc879f96

14 Adjust `create_or_update_file` description to try avoid incorrect sel… · github/github-mcp-server@20afb0f · GitHub
Skip to content

Commit 20afb0f

Browse files
Adjust create_or_update_file description to try avoid incorrect selection (#419)
* Adjust create_or_update_file description to try avoid incorrect selection * Update pkg/github/repositories.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 21389a4 commit 20afb0f

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
@@ -241,7 +241,7 @@ func ListBranches(getClient GetClientFn, t translations.TranslationHelperFunc) (
241241
// CreateOrUpdateFile creates a tool to create or update a file in a GitHub repository.
242242
func CreateOrUpdateFile(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
243243
return mcp.NewTool("create_or_update_file",
244-
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.")),
244+
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. Use this tool to create or update a file in a GitHub repository remotely; do not use it for local file operations.")),
245245
mcp.WithToolAnnotation(mcp.ToolAnnotation{
246246
Title: t("TOOL_CREATE_OR_UPDATE_FILE_USER_TITLE", "Create or update file"),
247247
ReadOnlyHint: ToBoolPtr(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/20afb0fd9e0966afc45808d975c8d620fc879f96

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy