Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShouldInclude ¶
Filter a name given an include list (whitelist) and an exclude list (blacklist). Exclusion takes priority for duplicates. If the inclusion list is empty, all names that aren't explicitly excluded will be included.
Types ¶
type Filter ¶
type Filter struct {
// If true, only read-only tools will be included by the filter
ReadOnly bool
IncludedTools []string
ExcludedTools []string
IncludedToolCollections []string
ExcludedToolCollections []string
}
Filter holds configuration for filtering which tools and tool collections to make available in the server
func PassthroughFilter ¶
func PassthroughFilter() *Filter
func (*Filter) ShouldIncludeCollection ¶
func (*Filter) ShouldIncludeTool ¶
func (f *Filter) ShouldIncludeTool(toolDef *types.ToolDefinition) bool
ShouldIncludeTool determines if a tool should be included based on the filter configuration. It checks the tool name against include/exclude lists and respects the read-only filter setting.
Click to show internal directories.
Click to hide internal directories.