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

Function hasStaticConfig

pkg/http/handler.go:319–324  ·  view source on GitHub ↗

hasStaticConfig returns true if any static filtering flags are set on the ServerConfig.

(cfg *ServerConfig)

Source from the content-addressed store, hash-verified

317
318// hasStaticConfig returns true if any static filtering flags are set on the ServerConfig.
319func hasStaticConfig(cfg *ServerConfig) bool {
320 return cfg.ReadOnly ||
321 cfg.EnabledToolsets != nil ||
322 cfg.EnabledTools != nil ||
323 len(cfg.ExcludeTools) > 0
324}
325
326// buildStaticInventory pre-filters the full tool/resource/prompt universe using
327// the static config (toolsets, read-only, --tools, --exclude-tools). It does

Callers 4

DefaultInventoryFactoryFunction · 0.85
buildStaticInventoryFunction · 0.85

Calls

no outgoing calls

Tested by 2