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

Function ToStringSlice

pkg/scopes/scopes.go:110–116  ·  view source on GitHub ↗

ToStringSlice converts a slice of Scopes to a slice of strings.

(scopes ...Scope)

Source from the content-addressed store, hash-verified

108
109// ToStringSlice converts a slice of Scopes to a slice of strings.
110func ToStringSlice(scopes ...Scope) []string {
111 result := make([]string, len(scopes))
112 for i, scope := range scopes {
113 result[i] = string(scope)
114 }
115 return result
116}
117
118// ExpandScopes takes a list of required scopes and returns all accepted scopes
119// including parent scopes from the hierarchy.

Callers 3

NewToolFunction · 0.92
NewToolFromHandlerFunction · 0.92
TestToStringSliceFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestToStringSliceFunction · 0.68