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

Method GetRequiredScopesSlice

pkg/scopes/map.go:122–129  ·  view source on GitHub ↗

GetRequiredScopesSlice returns the required scopes as a slice of strings.

()

Source from the content-addressed store, hash-verified

120
121// GetRequiredScopesSlice returns the required scopes as a slice of strings.
122func (t *ToolScopeInfo) GetRequiredScopesSlice() []string {
123 if t == nil {
124 return nil
125 }
126 scopes := make([]string, len(t.RequiredScopes))
127 copy(scopes, t.RequiredScopes)
128 return scopes
129}

Callers 1

WithScopeChallengeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected