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

Function formatScopeDisplay

cmd/github-mcp-server/list_scopes.go:79–84  ·  view source on GitHub ↗

formatScopeDisplay formats a scope string for display, handling empty scopes.

(scope string)

Source from the content-addressed store, hash-verified

77
78// formatScopeDisplay formats a scope string for display, handling empty scopes.
79func formatScopeDisplay(scope string) string {
80 if scope == "" {
81 return "(no scope required for public read access)"
82 }
83 return scope
84}
85
86func runListScopes() error {
87 // Get toolsets configuration (same logic as stdio command)

Callers 2

outputSummaryFunction · 0.85
outputTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected