Skip to content

Commit 76e3ff4

Browse files
committed
Use arrays rather than comma separated lists
1 parent e9bf1f1 commit 76e3ff4

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

pkg/github/issues.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,23 @@ func searchIssues(client *github.Client, t translations.TranslationHelperFunc) (
144144
),
145145
mcp.WithString("sort",
146146
mcp.Description("Sort field (comments, reactions, created, etc.)"),
147+
mcp.Enum(
148+
"comments",
149+
"reactions",
150+
"reactions-+1",
151+
"reactions--1",
152+
"reactions-smile",
153+
"reactions-thinking_face",
154+
"reactions-heart",
155+
"reactions-tada",
156+
"interactions",
157+
"created",
158+
"updated",
159+
),
147160
),
148161
mcp.WithString("order",
149162
mcp.Description("Sort order ('asc' or 'desc')"),
163+
mcp.Enum("asc", "desc"),
150164
),
151165
mcp.WithNumber("per_page",
152166
mcp.Description("Results per page (max 100)"),
@@ -322,6 +336,7 @@ func listIssues(client *github.Client, t translations.TranslationHelperFunc) (to
322336
),
323337
mcp.WithString("state",
324338
mcp.Description("Filter by state ('open', 'closed', 'all')"),
339+
mcp.Enum("open", "closed", "all"),
325340
),
326341
mcp.WithArray("labels",
327342
mcp.Description("Filter by labels"),
@@ -333,9 +348,11 @@ func listIssues(client *github.Client, t translations.TranslationHelperFunc) (to
333348
),
334349
mcp.WithString("sort",
335350
mcp.Description("Sort by ('created', 'updated', 'comments')"),
351+
mcp.Enum("created", "updated", "comments"),
336352
),
337353
mcp.WithString("direction",
338354
mcp.Description("Sort direction ('asc', 'desc')"),
355+
mcp.Enum("asc", "desc"),
339356
),
340357
mcp.WithString("since",
341358
mcp.Description("Filter by date (ISO 8601 timestamp)"),

pkg/github/search.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ func searchCode(client *github.Client, t translations.TranslationHelperFunc) (to
8484
),
8585
mcp.WithString("order",
8686
mcp.Description("Sort order ('asc' or 'desc')"),
87+
mcp.Enum("asc", "desc"),
8788
),
8889
mcp.WithNumber("per_page",
8990
mcp.Description("Results per page (max 100)"),
@@ -156,9 +157,11 @@ func searchUsers(client *github.Client, t translations.TranslationHelperFunc) (t
156157
),
157158
mcp.WithString("sort",
158159
mcp.Description("Sort field (followers, repositories, joined)"),
160+
mcp.Enum("followers", "repositories", "joined"),
159161
),
160162
mcp.WithString("order",
161163
mcp.Description("Sort order ('asc' or 'desc')"),
164+
mcp.Enum("asc", "desc"),
162165
),
163166
mcp.WithNumber("per_page",
164167
mcp.Description("Results per page (max 100)"),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy