Skip to content

Add ability to view "branches" for a repo #141

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

Closed
cstroliadavis opened this issue Apr 6, 2025 · 1 comment · Fixed by #205
Closed

Add ability to view "branches" for a repo #141

cstroliadavis opened this issue Apr 6, 2025 · 1 comment · Fixed by #205
Labels
enhancement New feature or request

Comments

@cstroliadavis
Copy link

Describe the feature or problem you’d like to solve

I ran into this today, I wanted to get a list of branches for one of the repos in my organization, but the server wasn't able to provide it. You had to already know what the branch was. Now, of course, I can use git to pull that information and look locally, but this feels like something that should be included.

Proposed solution

Add the following functionality to the MCP Server:

curl -L \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <TOKEN>" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/repos/OWNER/REPO/branches

Additional context

n/a

@cstroliadavis cstroliadavis added the enhancement New feature or request label Apr 6, 2025
@aryasoni98
Copy link
Contributor

Hi @cstroliadavis! I’d love to work on this issue. Could you please assign it to me?

aryasoni98 added a commit to aryasoni98/github-mcp-server that referenced this issue Apr 7, 2025
aryasoni98 added a commit to aryasoni98/github-mcp-server that referenced this issue Apr 9, 2025
juruen pushed a commit that referenced this issue Apr 11, 2025
* Add ability to view branches for a repo #141

* fix: update ListBranches test to use InputSchema and correct translation helper

* fix: update ListBranches test to use InputSchema and correct translation helper

* fix: update ListBranches test to handle errors in tool result

* fix: replace deprecated github.String with github.Ptr

* docs: add list_branches tool documentation to README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants