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
// CRUDLabel consolidates Create/Get/Update/Delete label operations into a single tool.
1774
-
funcCRUDLabel(getGQLClientGetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
1775
-
returnmcp.NewTool("crud_label",
1776
-
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.")),
1773
+
// Label consolidates Create/Get/Update/Delete label operations into a single tool.
1774
+
funcLabel(getGQLClientGetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
1775
+
returnmcp.NewTool("label",
1776
+
mcp.WithDescription(t("TOOL_LABEL_DESCRIPTION", "Create, read, update, or delete repositorylabels in GitHub. Labels are organizational tags used to categorize and filter issues and pull requests. METHODS: 'create', 'get' - if label parameter name is omitted, lists all labels, 'update', 'delete'.")),
mcp.Description("Operation to perform: create, get, update or delete"),
1783
+
mcp.Description("Create/Read/Update/Delete a github label."),
1784
1784
mcp.Enum("create", "get", "update", "delete"),
1785
1785
),
1786
1786
mcp.WithString("owner",
1787
-
mcp.Description("Repository owner"),
1787
+
mcp.Description("Repository owner (username or organization name) - required for all operations"),
1788
1788
),
1789
1789
mcp.WithString("repo",
1790
-
mcp.Description("Repository name"),
1790
+
mcp.Description("Repository name - required for all operations"),
1791
1791
),
1792
1792
mcp.WithString("name",
1793
-
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."),
1793
+
mcp.Description("Label name. REQUIRED for: create, update, delete operations. OPTIONAL for: get operation (if omitted, lists all repository labels; if provided, gets specific label details)."),
1794
1794
),
1795
1795
mcp.WithString("new_name",
1796
-
mcp.Description("New name for the label (update only)"),
1796
+
mcp.Description("New name for the label (used only with 'update' method to rename a label)"),
1797
1797
),
1798
1798
mcp.WithString("color",
1799
-
mcp.Description("Label color as a 6-character hex code without '#', e.g. 'f29513' (create/update)"),
1799
+
mcp.Description("Label color as 6-character hex code without '#' prefix, e.g. 'f29513' for orange. REQUIRED for 'create', OPTIONAL for 'update'."),
@@ -2108,30 +2108,30 @@ func CRUDLabel(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc
2108
2108
// IssueLabel manages labels on GitHub issues with list, add, and remove operations.
2109
2109
funcIssueLabel(getClientGetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
2110
2110
returnmcp.NewTool("issue_label",
2111
-
mcp.WithDescription(t("TOOL_ISSUE_LABEL_DESCRIPTION", "Manage labels on GitHub issues. Use 'list' to get current labels on an issue, 'add' to add labels to an issue, or 'remove' to remove labels from an issue.")),
2111
+
mcp.WithDescription(t("TOOL_ISSUE_LABEL_DESCRIPTION", "Manage labels attached to specific GitHub issues. METHODS: 'list', 'add', 'remove'.")),
0 commit comments