MCPcopy
hub / github.com/github/github-mcp-server / Fetcher

Struct Fetcher

pkg/scopes/fetcher.go:38–41  ·  view source on GitHub ↗

Fetcher retrieves token scopes from GitHub's API. It uses an HTTP HEAD request to minimize bandwidth since we only need headers.

Source from the content-addressed store, hash-verified

36// Fetcher retrieves token scopes from GitHub's API.
37// It uses an HTTP HEAD request to minimize bandwidth since we only need headers.
38type Fetcher struct {
39 client *http.Client
40 apiHost utils.APIHostResolver
41}
42
43// NewFetcher creates a new scope fetcher with the given options.
44func NewFetcher(apiHost utils.APIHostResolver, opts FetcherOptions) *Fetcher {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected