hasStaticConfig returns true if any static filtering flags are set on the ServerConfig.
(cfg *ServerConfig)
| 317 | |
| 318 | // hasStaticConfig returns true if any static filtering flags are set on the ServerConfig. |
| 319 | func 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 |
no outgoing calls