Skip to content

Commit 26a1583

Browse files
committed
Use arrays rather than comma separated lists
1 parent e9bf1f1 commit 26a1583

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/github/issues.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ func listIssues(client *github.Client, t translations.TranslationHelperFunc) (to
322322
),
323323
mcp.WithString("state",
324324
mcp.Description("Filter by state ('open', 'closed', 'all')"),
325+
mcp.Enum("open", "closed", "all"),
325326
),
326327
mcp.WithArray("labels",
327328
mcp.Description("Filter by labels"),
@@ -333,9 +334,11 @@ func listIssues(client *github.Client, t translations.TranslationHelperFunc) (to
333334
),
334335
mcp.WithString("sort",
335336
mcp.Description("Sort by ('created', 'updated', 'comments')"),
337+
mcp.Enum("created", "updated", "comments"),
336338
),
337339
mcp.WithString("direction",
338340
mcp.Description("Sort direction ('asc', 'desc')"),
341+
mcp.Enum("asc", "desc"),
339342
),
340343
mcp.WithString("since",
341344
mcp.Description("Filter by date (ISO 8601 timestamp)"),

0 commit comments

Comments
 (0)