diff --git a/internal/ghmcp/server.go b/internal/ghmcp/server.go index 568af10d1..d33ca246c 100644 --- a/internal/ghmcp/server.go +++ b/internal/ghmcp/server.go @@ -374,7 +374,7 @@ func parseAPIHost(s string) (apiHost, error) { return apiHost{}, fmt.Errorf("host must have a scheme (http or https): %s", s) } - if strings.HasSuffix(u.Hostname(), "github.com") { + if u.Hostname() == "github.com" { return newDotcomHost() }