registry

package
v0.44.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCache

func GetCache() *sync.Map

GetCache returns the shared cache instance

func GetEnabledToolNames added in v0.22.0

func GetEnabledToolNames() []string

GetEnabledToolNames returns a sorted list of enabled tool names

func GetEnabledTools added in v0.24.0

func GetEnabledTools() map[string]tools.Tool

GetEnabledTools returns all tools that are enabled for MCP server registration

func GetLogger

func GetLogger() *logrus.Logger

GetLogger returns the shared logger instance

func GetTool

func GetTool(name string) (tools.Tool, bool)

GetTool retrieves a tool by name, returns false if disabled

func GetToolNamesWithExtendedHelp added in v0.22.0

func GetToolNamesWithExtendedHelp() []string

GetToolNamesWithExtendedHelp returns a sorted list of enabled tool names that provide extended help

func GetTools

func GetTools() map[string]tools.Tool

GetTools returns all registered tools, excluding disabled ones

func Init

func Init(l *logrus.Logger)

Init initialises the registry and shared resources

func Register

func Register(tool tools.Tool)

Register adds a tool implementation to the registry if it should be registered

func ShouldRegisterTool added in v0.44.1

func ShouldRegisterTool(toolName string) bool

ShouldRegisterTool checks if a tool should be registered based on: 1. DISABLED_TOOLS or DISABLED_FUNCTIONS (legacy) - explicit disable, highest priority 2. Tool's enablement requirement 3. ENABLE_ADDITIONAL_TOOLS (explicit enable)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL