MCPcopy Index your code
hub / github.com/github/github-mcp-server / NewAPIHost

Function NewAPIHost

pkg/utils/api.go:30–38  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

28var _ APIHostResolver = APIHost{}
29
30func NewAPIHost(s string) (APIHostResolver, error) {
31 a, err := parseAPIHost(s)
32
33 if err != nil {
34 return nil, err
35 }
36
37 return a, nil
38}
39
40// APIHostResolver implementation
41func (a APIHost) BaseRESTURL(_ context.Context) (*url.URL, error) {

Callers 15

RunHTTPServerFunction · 0.92
TestHTTPHandlerRoutesFunction · 0.92
TestContentTypeHandlingFunction · 0.92
NewAuthHandlerFunction · 0.92
TestNewAuthHandlerFunction · 0.92
TestRegisterRoutesFunction · 0.92
FetchTokenScopesFunction · 0.92

Calls 1

parseAPIHostFunction · 0.85