Title: Custom GHES host names are not supported · Issue #662 · github/github-mcp-server · GitHub
Open Graph Title: Custom GHES host names are not supported · Issue #662 · github/github-mcp-server
X Title: Custom GHES host names are not supported · Issue #662 · github/github-mcp-server
Description: Describe the bug Currently, any hostname ending with "github.com" (such as "slack-github.com") is incorrectly identified as the public GitHub host github.com. This is because in parsAPiHost(), host's suffix is matched with github.com . A...
Open Graph Description: Describe the bug Currently, any hostname ending with "github.com" (such as "slack-github.com") is incorrectly identified as the public GitHub host github.com. This is because in parsAPiHost(), host...
X Description: Describe the bug Currently, any hostname ending with "github.com" (such as "slack-github.com") is incorrectly identified as the public GitHub host github.com. This is because in...
Opengraph URL: https://github.com/github/github-mcp-server/issues/662
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Custom GHES host names are not supported","articleBody":"### Describe the bug\nCurrently, any hostname ending with \"github.com\" (such as \"slack-github.com\") is incorrectly identified as the public GitHub host github.com. This is because in `parsAPiHost()`, host's suffix is matched with `github.com` . As a result, all hosts that end with `github.com` are characterized as public github.com hosts instead of GHES.\n\n\n### Steps to reproduce the behavior\n\n1. In the mcp tool's config, set GITHUB_HOST to custom GHES host. Eg `abcd-github.com`\n2.Run any tool. Eg. `list_pull_requests`\n\n### Expected vs actual behavior\nExpected: MCP tool should use `abcd-github.com/api/v3` rest api url.\nActual: MCP tool uses `github.com/api/v3` rest api url.\n","author":{"url":"https://github.com/jtquip88","@type":"Person","name":"jtquip88"},"datePublished":"2025-07-11T05:52:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/662/github-mcp-server/issues/662"}
| 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:dbf86914-8d0f-8048-237e-efc0fd844004 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBAA:8CB7F:8E691:C5E57:6A60F9B6 |
| html-safe-nonce | 99905061caea16fd8455d8b18b8847ee289455a999ce6b321835275834c48633 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkFBOjhDQjdGOjhFNjkxOkM1RTU3OjZBNjBGOUI2IiwidmlzaXRvcl9pZCI6Ijc5MzUwNzg4ODQ2NDE5ODA3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9d0f6cf1631637a2d7f79e66128588400f544811ff2e642cc676791d933eb3c0 |
| hovercard-subject-tag | issue:3221645191 |
| 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/662/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ce8fbb0a90b45f3b7d9041c9cbade15b44d1950ce8870b0cfb4749f2b193275f/github/github-mcp-server/issues/662 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ce8fbb0a90b45f3b7d9041c9cbade15b44d1950ce8870b0cfb4749f2b193275f/github/github-mcp-server/issues/662 |
| og:image:alt | Describe the bug Currently, any hostname ending with "github.com" (such as "slack-github.com") is incorrectly identified as the public GitHub host github.com. This is because in parsAPiHost(), host... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jtquip88 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 40a35f8d38abec207dcde39ffae0c0d14012c6d27b769f13fdac3ab78dc77ebe |
| 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 | ef41e0ca8cf502957b8d49077bbe7c8dcdcbb037 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width