Skip to content

Commit a92e445

Browse files
committed
Remove redundant listing of additional enums in descriptions.
1 parent 784e8b1 commit a92e445

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

Diff for: pkg/github/code_scanning.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ func ListCodeScanningAlerts(getClient GetClientFn, t translations.TranslationHel
8686
mcp.Description("The Git reference for the results you want to list."),
8787
),
8888
mcp.WithString("state",
89-
mcp.Description("Filter code scanning alerts by state ('open', 'closed', 'dismissed', 'fixed'). Default: open"),
89+
mcp.Description("Filter code scanning alerts by state. Defaults to open"),
9090
mcp.DefaultString("open"),
9191
mcp.Enum("open", "closed", "dismissed", "fixed"),
9292
),
9393
mcp.WithString("severity",
94-
mcp.Description("If provided, filter code scanning alerts by severity ('critical', 'high', 'medium', 'low', 'warning', 'note', 'error')"),
94+
mcp.Description("Filter code scanning alerts by severity"),
9595
mcp.Enum("critical", "high", "medium", "low", "warning", "note", "error"),
9696
),
9797
),

Diff for: pkg/github/issues.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func AddIssueComment(getClient GetClientFn, t translations.TranslationHelperFunc
9090
),
9191
mcp.WithString("body",
9292
mcp.Required(),
93-
mcp.Description("Comment text"),
93+
mcp.Description("Comment content"),
9494
),
9595
),
9696
func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
@@ -151,7 +151,7 @@ func SearchIssues(getClient GetClientFn, t translations.TranslationHelperFunc) (
151151
mcp.Description("Search query using GitHub issues search syntax"),
152152
),
153153
mcp.WithString("sort",
154-
mcp.Description("Sort field (comments, reactions, created, etc.)"),
154+
mcp.Description("Sort field by number of matches of categories, defaults to best match"),
155155
mcp.Enum(
156156
"comments",
157157
"reactions",
@@ -167,7 +167,7 @@ func SearchIssues(getClient GetClientFn, t translations.TranslationHelperFunc) (
167167
),
168168
),
169169
mcp.WithString("order",
170-
mcp.Description("Sort order ('asc' or 'desc')"),
170+
mcp.Description("Sort order"),
171171
mcp.Enum("asc", "desc"),
172172
),
173173
WithPagination(),
@@ -357,7 +357,7 @@ func ListIssues(getClient GetClientFn, t translations.TranslationHelperFunc) (to
357357
mcp.Description("Repository name"),
358358
),
359359
mcp.WithString("state",
360-
mcp.Description("Filter by state ('open', 'closed', 'all')"),
360+
mcp.Description("Filter by state"),
361361
mcp.Enum("open", "closed", "all"),
362362
),
363363
mcp.WithArray("labels",
@@ -369,11 +369,11 @@ func ListIssues(getClient GetClientFn, t translations.TranslationHelperFunc) (to
369369
),
370370
),
371371
mcp.WithString("sort",
372-
mcp.Description("Sort by ('created', 'updated', 'comments')"),
372+
mcp.Description("Sort order"),
373373
mcp.Enum("created", "updated", "comments"),
374374
),
375375
mcp.WithString("direction",
376-
mcp.Description("Sort direction ('asc', 'desc')"),
376+
mcp.Description("Sort direction"),
377377
mcp.Enum("asc", "desc"),
378378
),
379379
mcp.WithString("since",
@@ -485,7 +485,7 @@ func UpdateIssue(getClient GetClientFn, t translations.TranslationHelperFunc) (t
485485
mcp.Description("New description"),
486486
),
487487
mcp.WithString("state",
488-
mcp.Description("New state ('open' or 'closed')"),
488+
mcp.Description("New state"),
489489
mcp.Enum("open", "closed"),
490490
),
491491
mcp.WithArray("labels",

Diff for: pkg/github/pullrequests.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func UpdatePullRequest(getClient GetClientFn, t translations.TranslationHelperFu
9494
mcp.Description("New description"),
9595
),
9696
mcp.WithString("state",
97-
mcp.Description("New state ('open' or 'closed')"),
97+
mcp.Description("New state"),
9898
mcp.Enum("open", "closed"),
9999
),
100100
mcp.WithString("base",
@@ -201,7 +201,7 @@ func ListPullRequests(getClient GetClientFn, t translations.TranslationHelperFun
201201
mcp.Description("Repository name"),
202202
),
203203
mcp.WithString("state",
204-
mcp.Description("Filter by state ('open', 'closed', 'all')"),
204+
mcp.Description("Filter by state"),
205205
mcp.Enum("open", "closed", "all"),
206206
),
207207
mcp.WithString("head",
@@ -211,11 +211,11 @@ func ListPullRequests(getClient GetClientFn, t translations.TranslationHelperFun
211211
mcp.Description("Filter by base branch"),
212212
),
213213
mcp.WithString("sort",
214-
mcp.Description("Sort by ('created', 'updated', 'popularity', 'long-running')"),
214+
mcp.Description("Sort by category"),
215215
mcp.Enum("created", "updated", "popularity", "long-running"),
216216
),
217217
mcp.WithString("direction",
218-
mcp.Description("Sort direction ('asc', 'desc')"),
218+
mcp.Description("Sort direction"),
219219
),
220220
WithPagination(),
221221
),
@@ -315,7 +315,7 @@ func MergePullRequest(getClient GetClientFn, t translations.TranslationHelperFun
315315
mcp.Description("Extra detail for merge commit"),
316316
),
317317
mcp.WithString("merge_method",
318-
mcp.Description("Merge method ('merge', 'squash', 'rebase')"),
318+
mcp.Description("Merge method"),
319319
mcp.Enum("merge", "squash", "rebase"),
320320
),
321321
),
@@ -674,21 +674,21 @@ func AddPullRequestReviewComment(getClient GetClientFn, t translations.Translati
674674
mcp.Description("The relative path to the file that necessitates a comment. Required unless in_reply_to is specified."),
675675
),
676676
mcp.WithString("subject_type",
677-
mcp.Description("The level at which the comment is targeted ('line', 'file')"),
677+
mcp.Description("The level at which the comment is targeted"),
678678
mcp.Enum("line", "file"),
679679
),
680680
mcp.WithNumber("line",
681681
mcp.Description("The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range"),
682682
),
683683
mcp.WithString("side",
684-
mcp.Description("The side of the diff to comment on ('LEFT', 'RIGHT')"),
684+
mcp.Description("The side of the diff to comment on"),
685685
mcp.Enum("LEFT", "RIGHT"),
686686
),
687687
mcp.WithNumber("start_line",
688688
mcp.Description("For multi-line comments, the first line of the range that the comment applies to"),
689689
),
690690
mcp.WithString("start_side",
691-
mcp.Description("For multi-line comments, the starting side of the diff that the comment applies to ('LEFT', 'RIGHT')"),
691+
mcp.Description("For multi-line comments, the starting side of the diff that the comment applies to"),
692692
mcp.Enum("LEFT", "RIGHT"),
693693
),
694694
mcp.WithNumber("in_reply_to",
@@ -896,7 +896,7 @@ func CreatePullRequestReview(getClient GetClientFn, t translations.TranslationHe
896896
),
897897
mcp.WithString("event",
898898
mcp.Required(),
899-
mcp.Description("Review action ('APPROVE', 'REQUEST_CHANGES', 'COMMENT')"),
899+
mcp.Description("Review action to perform"),
900900
mcp.Enum("APPROVE", "REQUEST_CHANGES", "COMMENT"),
901901
),
902902
mcp.WithString("commitId",

Diff for: pkg/github/repositories.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func ListCommits(getClient GetClientFn, t translations.TranslationHelperFunc) (t
9393
mcp.Description("Repository name"),
9494
),
9595
mcp.WithString("sha",
96-
mcp.Description("Branch name"),
96+
mcp.Description("SHA or Branch name"),
9797
),
9898
WithPagination(),
9999
),

Diff for: pkg/github/search.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func SearchCode(getClient GetClientFn, t translations.TranslationHelperFunc) (to
7878
mcp.Description("Sort field ('indexed' only)"),
7979
),
8080
mcp.WithString("order",
81-
mcp.Description("Sort order ('asc' or 'desc')"),
81+
mcp.Description("Sort order"),
8282
mcp.Enum("asc", "desc"),
8383
),
8484
WithPagination(),
@@ -147,11 +147,11 @@ func SearchUsers(getClient GetClientFn, t translations.TranslationHelperFunc) (t
147147
mcp.Description("Search query using GitHub users search syntax"),
148148
),
149149
mcp.WithString("sort",
150-
mcp.Description("Sort field (followers, repositories, joined)"),
150+
mcp.Description("Sort field by category"),
151151
mcp.Enum("followers", "repositories", "joined"),
152152
),
153153
mcp.WithString("order",
154-
mcp.Description("Sort order ('asc' or 'desc')"),
154+
mcp.Description("Sort order="),
155155
mcp.Enum("asc", "desc"),
156156
),
157157
WithPagination(),

0 commit comments

Comments
 (0)