-
Notifications
You must be signed in to change notification settings - Fork 3.9k
get_tag tool won't work on private repositories even if the sufficient permissions are granted #2297
Copy link
Copy link
Open
Labels
Description
Describe the bug
get_tag tool won't work for private repositories, both with providing tag name and SHA of it. Tried this with both fine grained PAT tokens and also installation token generated from a GitHub app with correct permissions (Contents read - see here).
Affected version
I am currently using remote MCP server, using the endpoint https://api.githubcopilot.com/mcp/x/all/ with header: X-MCP-Toolsets: actions,context,repos,issues,pull_requests,users.
Steps to reproduce the behavior
- Create a fine-grained PAT token which can access a private repository and uses
Contentsread permission. - Using MCP inspector, connect to remote GitHub MCP server (be sure that
Authorization-using Bearer ... format- andX-MCP-Toolsetsheaders are populated correctly) - Click 'List tools' to get tool list
- Select
get_tagtool - Fill the arguments
- Observe 404 Not Found
I also tested this with GitHub Rest API and that is also not working, so it might be a problem related with Rest API (and it affected GitHub MCP server since requests are forwarded to that endpoint by a conversion layer).
Expected vs actual behavior
It should return 200 response with details seen here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.