Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2118e2a

Browse files
committed
Enumerate strings in schema
1 parent26a1583 commit2118e2a

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)

[8]ページ先頭

©2009-2025 Movatter.jp