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

Method FetchTokenScopes

pkg/scopes/fetcher.go:33–33  ·  view source on GitHub ↗
(ctx context.Context, token string)

Source from the content-addressed store, hash-verified

31
32type FetcherInterface interface {
33 FetchTokenScopes(ctx context.Context, token string) ([]string, error)
34}
35
36// Fetcher retrieves token scopes from GitHub's API.

Callers 5

PATScopeFilterFunction · 0.65
WithScopeChallengeFunction · 0.65
WithPATScopesFunction · 0.65
FetchTokenScopesFunction · 0.65
FetchTokenScopesWithHostFunction · 0.65

Implementers 3

allScopesFetcherpkg/http/handler_test.go
mockScopeFetcherpkg/http/middleware/pat_scope_test.go
Fetcherpkg/scopes/fetcher.go

Calls

no outgoing calls

Tested by

no test coverage detected