You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnmcp.NewToolResultError(fmt.Sprintf("failed to marshal matching files: %s", err)), nil
634
+
}
635
+
returnmcp.NewToolResultText(fmt.Sprintf("Provided path did not match a file or directory, but possible matches are: %s", matchingFilesJSON)), nil
636
+
}
637
+
613
638
returnmcp.NewToolResultError("Failed to get file contents. The path does not point to a file or directory, or the file does not exist in the repository."), nil
614
639
}
615
640
}
@@ -1293,3 +1318,22 @@ func GetTag(getClient GetClientFn, t translations.TranslationHelperFunc) (tool m
1293
1318
returnmcp.NewToolResultText(string(r)), nil
1294
1319
}
1295
1320
}
1321
+
1322
+
// filterPaths filters the entries in a GitHub tree to find paths that
0 commit comments