You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement starred repository functionality with comprehensive tests
- Add ListStarredRepositories tool for listing starred repos
- Add StarRepository tool for starring repositories
- Add UnstarRepository tool for unstarring repositories
- Update MinimalRepository struct with StarredAt field
- Add comprehensive test coverage for all new functionality
- Register new tools in the repos toolset
Co-authored-by: tonytrg <40869903+tonytrg@users.noreply.github.com>
"description": "List repositories starred by the authenticated user or a specified user",
7
+
"inputSchema": {
8
+
"properties": {
9
+
"direction": {
10
+
"description": "The direction to sort the results by.",
11
+
"enum": [
12
+
"asc",
13
+
"desc"
14
+
],
15
+
"type": "string"
16
+
},
17
+
"page": {
18
+
"description": "Page number for pagination (min 1)",
19
+
"minimum": 1,
20
+
"type": "number"
21
+
},
22
+
"perPage": {
23
+
"description": "Results per page for pagination (min 1, max 100)",
24
+
"maximum": 100,
25
+
"minimum": 1,
26
+
"type": "number"
27
+
},
28
+
"sort": {
29
+
"description": "How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to).",
30
+
"enum": [
31
+
"created",
32
+
"updated"
33
+
],
34
+
"type": "string"
35
+
},
36
+
"username": {
37
+
"description": "Username to list starred repositories for. If not provided, lists starred repositories for the authenticated user.",
mcp.Description("Username to list starred repositories for. If not provided, lists starred repositories for the authenticated user."),
1697
+
),
1698
+
mcp.WithString("sort",
1699
+
mcp.Description("How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to)."),
1700
+
mcp.Enum("created", "updated"),
1701
+
),
1702
+
mcp.WithString("direction",
1703
+
mcp.Description("The direction to sort the results by."),
0 commit comments