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

Function outputSummary

cmd/github-mcp-server/list_scopes.go:222–235  ·  view source on GitHub ↗
(output ScopesOutput)

Source from the content-addressed store, hash-verified

220}
221
222func outputSummary(output ScopesOutput) error {
223 if len(output.UniqueScopes) == 0 {
224 fmt.Println("No OAuth scopes required for enabled tools.")
225 return nil
226 }
227
228 fmt.Println("Required OAuth scopes for enabled tools:")
229 fmt.Println()
230 for _, scope := range output.UniqueScopes {
231 fmt.Printf(" %s\n", formatScopeDisplay(scope))
232 }
233 fmt.Printf("\nTotal: %d unique scope(s)\n", len(output.UniqueScopes))
234 return nil
235}
236
237func outputText(output ScopesOutput) error {
238 fmt.Printf("OAuth Scopes for Enabled Tools\n")

Callers 1

runListScopesFunction · 0.85

Calls 1

formatScopeDisplayFunction · 0.85

Tested by

no test coverage detected