-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add starred repository support to GitHub MCP server #1078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tonytrg
merged 9 commits into
main
from
copilot/fix-8d6e5df9-0eeb-4cf4-8638-d63fe34060bb
Sep 12, 2025
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7912b96
Initial plan
Copilot 4742fa6
Initial exploration and planning for starred repository support
Copilot 4460948
Implement starred repository functionality with comprehensive tests
Copilot 0a6bc99
Update README documentation with starred repository tools
Copilot 4599a2b
Add starred repository support to GitHub MCP server
Copilot 3f201f3
remove starredat from minimal view
tonytrg 1cd7b74
update descriptions
tonytrg 9145f8d
remove bin
tonytrg bee9324
dont commit the binary
tonytrg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,7 @@ vendor | |
bin/ | ||
|
||
# macOS | ||
.DS_Store | ||
.DS_Store | ||
|
||
# binary | ||
github-mcp-server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"annotations": { | ||
"title": "List starred repositories", | ||
"readOnlyHint": true | ||
}, | ||
"description": "List starred repositories", | ||
"inputSchema": { | ||
"properties": { | ||
"direction": { | ||
"description": "The direction to sort the results by.", | ||
"enum": [ | ||
"asc", | ||
"desc" | ||
], | ||
"type": "string" | ||
}, | ||
"page": { | ||
"description": "Page number for pagination (min 1)", | ||
"minimum": 1, | ||
"type": "number" | ||
}, | ||
"perPage": { | ||
"description": "Results per page for pagination (min 1, max 100)", | ||
"maximum": 100, | ||
"minimum": 1, | ||
"type": "number" | ||
}, | ||
"sort": { | ||
"description": "How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to).", | ||
"enum": [ | ||
"created", | ||
"updated" | ||
], | ||
"type": "string" | ||
}, | ||
"username": { | ||
"description": "Username to list starred repositories for. Defaults to the authenticated user.", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"name": "list_starred_repositories" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"annotations": { | ||
"title": "Star repository", | ||
"readOnlyHint": false | ||
}, | ||
"description": "Star a GitHub repository", | ||
"inputSchema": { | ||
"properties": { | ||
"owner": { | ||
"description": "Repository owner", | ||
"type": "string" | ||
}, | ||
"repo": { | ||
"description": "Repository name", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"owner", | ||
"repo" | ||
], | ||
"type": "object" | ||
}, | ||
"name": "star_repository" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"annotations": { | ||
"title": "Unstar repository", | ||
"readOnlyHint": false | ||
}, | ||
"description": "Unstar a GitHub repository", | ||
"inputSchema": { | ||
"properties": { | ||
"owner": { | ||
"description": "Repository owner", | ||
"type": "string" | ||
}, | ||
"repo": { | ||
"description": "Repository name", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"owner", | ||
"repo" | ||
], | ||
"type": "object" | ||
}, | ||
"name": "unstar_repository" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
MinimalRepository
struct is missing aStarredAt
field that should be populated fromstarredRepo.StarredAt
. The PR description mentions adding astarred_at
field to track when repositories were starred, but this field is not being set in the conversion logic.Copilot uses AI. Check for mistakes.