Title: `get_tag` tool won't work on private repositories even if the sufficient permissions are granted · Issue #2297 · github/github-mcp-server · GitHub
Open Graph Title: `get_tag` tool won't work on private repositories even if the sufficient permissions are granted · Issue #2297 · github/github-mcp-server
X Title: `get_tag` tool won't work on private repositories even if the sufficient permissions are granted · Issue #2297 · github/github-mcp-server
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 ...
Open Graph 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 fro...
X 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...
Opengraph URL: https://github.com/github/github-mcp-server/issues/2297
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`get_tag` tool won't work on private repositories even if the sufficient permissions are granted","articleBody":"### Describe the bug\n\n`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](https://docs.github.com/en/rest/git/tags?apiVersion=2026-03-10#get-a-tag)). \n\n### Affected version\n\nI 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`.\n\n### Steps to reproduce the behavior\n\n1. Create a fine-grained PAT token which can access a private repository and uses `Contents` read permission.\n2. Using MCP inspector, connect to remote GitHub MCP server (be sure that `Authorization` -using Bearer ... format- and `X-MCP-Toolsets` headers are populated correctly)\n3. Click 'List tools' to get tool list\n4. Select `get_tag` tool\n5. Fill the arguments\n6. Observe 404 Not Found\n\nI 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).\n\n### Expected vs actual behavior\n\nIt should return 200 response with details seen [here](https://docs.github.com/en/rest/git/tags?apiVersion=2026-03-10#get-a-tag).","author":{"url":"https://github.com/orhanasan","@type":"Person","name":"orhanasan"},"datePublished":"2026-04-06T11:46:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2297/github-mcp-server/issues/2297"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:05def593-f4d6-e8b2-8ba7-916aab2bbd79 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC50:E41FA:725B89:A1A7B7:6A622B9B |
| html-safe-nonce | 35b54ee703d44bda060fea302d91aafe745ca36bc46edbce76555e975245c889 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzUwOkU0MUZBOjcyNUI4OTpBMUE3Qjc6NkE2MjJCOUIiLCJ2aXNpdG9yX2lkIjoiNTU1NjMzOTExODkxMjQ0OTQzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2cc01e4d15ec3aa7db72c6d142baa559a79682ea45d8042f399340d2791a062e |
| hovercard-subject-tag | issue:4211439426 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/2297/issue_layout |
| twitter:image | https://opengraph.githubassets.com/524ecc19de39346d4b68a1dcc36fb013c7171c9c131796b5ce4e0690e62a5772/github/github-mcp-server/issues/2297 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/524ecc19de39346d4b68a1dcc36fb013c7171c9c131796b5ce4e0690e62a5772/github/github-mcp-server/issues/2297 |
| og:image:alt | 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 fro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | orhanasan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e882415c7b47986d65f899389c870b31642bb1c6f36516eb042618596c60e62 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 230e2af5fc0870303dd4569d72d2bb393ed52c52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width