Skip to content

Commit 5e41f6f

Browse files
committed
rename to labels
1 parent 4e16587 commit 5e41f6f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ The following sets of tools are available (all are on by default):
551551
- `owner`: Repository owner (username or organization name) - required for all operations (string, required)
552552
- `repo`: Repository name - required for all operations (string, required)
553553

554-
- **label** - Manage label operations - create, read, update, delete
554+
- **labels** - Manage label operations - create, read, update, delete
555555
- `color`: Label color as 6-character hex code without '#' prefix, e.g. 'f29513' for orange. REQUIRED for 'create', OPTIONAL for 'update'. (string, optional)
556556
- `description`: Label description text. OPTIONAL for both 'create' and 'update' operations. (string, optional)
557557
- `method`: Create/Read/Update/Delete a github label. (string, required)

pkg/github/issues.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,11 +1771,11 @@ func AssignCodingAgentPrompt(t translations.TranslationHelperFunc) (tool mcp.Pro
17711771
// Label Management
17721772

17731773
// Label consolidates Create/Get/Update/Delete label operations into a single tool.
1774-
func Label(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
1775-
return mcp.NewTool("label",
1776-
mcp.WithDescription(t("TOOL_LABEL_DESCRIPTION", "Create, read, update, or delete repository labels 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'.")),
1774+
func Labels(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, server.ToolHandlerFunc) {
1775+
return mcp.NewTool("labels",
1776+
mcp.WithDescription(t("TOOL_LABELS_DESCRIPTION", "Create, read, update, or delete repository labels 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'.")),
17771777
mcp.WithToolAnnotation(mcp.ToolAnnotation{
1778-
Title: t("TOOL_LABEL_TITLE", "Manage label operations - create, read, update, delete"),
1778+
Title: t("TOOL_LABELS_TITLE", "Manage label operations - create, read, update, delete"),
17791779
ReadOnlyHint: ToBoolPtr(false),
17801780
}),
17811781
mcp.WithString("method",

pkg/github/tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
7070
toolsets.NewServerTool(AddSubIssue(getClient, t)),
7171
toolsets.NewServerTool(RemoveSubIssue(getClient, t)),
7272
toolsets.NewServerTool(ReprioritizeSubIssue(getClient, t)),
73-
toolsets.NewServerTool(Label(getGQLClient, t)),
73+
toolsets.NewServerTool(Labels(getGQLClient, t)),
7474
toolsets.NewServerTool(IssueLabel(getClient, t)),
7575
).AddPrompts(
7676
toolsets.NewServerPrompt(AssignCodingAgentPrompt(t)),

0 commit comments

Comments
 (0)