diff --git a/pkg/github/repositories.go b/pkg/github/repositories.go index 6c7c65a5f..b1fe5bf72 100644 --- a/pkg/github/repositories.go +++ b/pkg/github/repositories.go @@ -560,7 +560,7 @@ func GetFileContents(getClient GetClientFn, getRawClient raw.GetRawClientFn, t t ), nil } if fileContent == nil || fileContent.SHA == nil { - return mcp.NewToolResultError("file content SHA is nil"), nil + return mcp.NewToolResultError("file content SHA is nil, if a directory was requested, path parameters should end with a trailing slash '/'"), nil } fileSHA = *fileContent.SHA