Skip to content

Commit a7b8827

Browse files
Add enums for list_repositories parameters
1 parent 3c53e71 commit a7b8827

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: pkg/github/organizations.go

+8-3
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@ func ListRepositories(getClient GetClientFn, t translations.TranslationHelperFun
2121
mcp.Description("Organization name"),
2222
),
2323
mcp.WithString("type",
24-
mcp.Description("Type of repositories to list. Possible values are: all, public, private, forks, sources, member. Default is 'all'."),
24+
mcp.Description("Type of repositories to list."),
25+
mcp.Enum("all", "public", "private", "forks", "sources", "member"),
26+
mcp.DefaultString("all"),
2527
),
2628
mcp.WithString("sort",
27-
mcp.Description("How to sort the repository list. Can be one of created, updated, pushed, full_name. Default is 'created'"),
29+
mcp.Description("How to sort the repository list."),
30+
mcp.Enum("created", "updated", "pushed", "full_name"),
31+
mcp.DefaultString("created"),
2832
),
2933
mcp.WithString("direction",
30-
mcp.Description("Direction in which to sort repositories. Can be one of asc or desc. Default when using full_name: asc; otherwise desc."),
34+
mcp.Description("Direction in which to sort repositories. Default when using full_name: asc; otherwise desc."),
35+
mcp.Enum("asc", "desc"),
3136
),
3237
WithPagination(),
3338
),

0 commit comments

Comments
 (0)