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
Copy file name to clipboardExpand all lines: pkg/github/issues.go
+84-37Lines changed: 84 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -2160,7 +2160,7 @@ func DeleteLabel(getGQLClient GetGQLClientFn, t translations.TranslationHelperFu
2160
2160
// CRUDLabel consolidates Create/Get/Update/Delete label operations into a single tool.
2161
2161
funcCRUDLabel(getGQLClientGetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
2162
2162
returnmcp.NewTool("crud_label",
2163
-
mcp.WithDescription(t("TOOL_CRUD_LABEL_DESCRIPTION", "Create, read, update, or delete a label in a GitHub repository. Used in context of labels in relation to GitHub resources, they are organizational tags used to categorize and filter issues and pull requests. The use of parameters depends on the specific method selected.")),
2163
+
mcp.WithDescription(t("TOOL_CRUD_LABEL_DESCRIPTION", "Create, read, update, or delete a label in a GitHub repository. Used in context of labels in relation to GitHub resources, they are organizational tags used to categorize and filter issues and pull requests. For 'get' method: if name is provided, retrieves a specific label; if name is omitted, lists all labels in the repository. The use of parameters depends on the specific method selected.")),
2164
2164
mcp.WithToolAnnotation(mcp.ToolAnnotation{
2165
2165
Title: t("TOOL_CRUD_LABEL_TITLE", "CRUD label"),
2166
2166
ReadOnlyHint: ToBoolPtr(false),
@@ -2177,7 +2177,7 @@ func CRUDLabel(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc
2177
2177
mcp.Description("Repository name"),
2178
2178
),
2179
2179
mcp.WithString("name",
2180
-
mcp.Description("Label name (for get/update/delete or to create with this name)"),
2180
+
mcp.Description("Label name (for get/update/delete or to create with this name). For 'get' method: optional - if provided, gets specific label; if omitted, lists all labels."),
2181
2181
),
2182
2182
mcp.WithString("new_name",
2183
2183
mcp.Description("New name for the label (update only)"),
@@ -2276,48 +2276,94 @@ func CRUDLabel(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc
2276
2276
ifrepo=="" {
2277
2277
returnmcp.NewToolResultError("repo is required for get"), nil
2278
2278
}
2279
-
ifname=="" {
2280
-
returnmcp.NewToolResultError("name is required for get"), nil
0 commit comments