Skip to content

Commit 2118e2a

Browse files
committed
Enumerate strings in schema
1 parent 26a1583 commit 2118e2a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

pkg/github/issues.go

Lines changed: 14 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)"),

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