Title: Fix GHES hostnames detection to use exact match for github.com · Issue #661 · github/github-mcp-server · GitHub
Open Graph Title: Fix GHES hostnames detection to use exact match for github.com · Issue #661 · github/github-mcp-server
X Title: Fix GHES hostnames detection to use exact match for github.com · Issue #661 · 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. The fix changes the public github hostname check from a suffix match to an exa...
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. The fix changes the public github 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. The fix changes th...
Opengraph URL: https://github.com/github/github-mcp-server/issues/661
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix GHES hostnames detection to use exact match for github.com","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`. \n\nThe fix changes the public github hostname check from a suffix match to an exact match:\n\nBefore: strings.HasSuffix(u.Hostname(), \"github.com\")\nAfter: u.Hostname() == \"github.com\"\n\nThis ensures that GHES hostnames like \"slack-github.com\" are correctly identified as GitHub Enterprise Server instances rather than being treated as the public GitHub.com.\nAlternative approaches:\n1. I am not sure if public github hosts can have subdomains, but if needed a regex can be used to match host name patterns.\n2. Add extra optional parameter like `IS_GHES` to explicitly indicate that this is a GHES instance.\n\nFixes #662 ","author":{"url":"https://github.com/jtquip88","@type":"Person","name":"jtquip88"},"datePublished":"2025-07-11T05:43:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/661/github-mcp-server/issues/661"}
| 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:c7818fb7-7cd4-7ef7-aa17-5add2ab976a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E758:2C6C7D:9B710:D2FCF:6A60F9B5 |
| html-safe-nonce | 53274e3018bedb822c6654816d4578b6fdceb24d45a27a2f1c544e19c6d73573 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzU4OjJDNkM3RDo5QjcxMDpEMkZDRjo2QTYwRjlCNSIsInZpc2l0b3JfaWQiOiI2NTkwODk5NDEyMjY0ODc2NDcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ee31784e9814b6dc5fc246cb1a485f552d9481b140b384fb56113dc6e0edfd68 |
| hovercard-subject-tag | issue:3221619002 |
| 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/661/issue_layout |
| twitter:image | https://opengraph.githubassets.com/95eb471e440fec9f83df158aea80c84b66d0480293e620789efc756e75e1116c/github/github-mcp-server/issues/661 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/95eb471e440fec9f83df158aea80c84b66d0480293e620789efc756e75e1116c/github/github-mcp-server/issues/661 |
| 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. The fix changes the public github 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