registry

package
v0.56.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 7 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 RegisterProxiedTool added in v0.52.0

func RegisterProxiedTool(tool tools.Tool)

RegisterProxiedTool adds a tool proxied from an upstream MCP server to the registry. Only called if `proxy` tool is enabled via ENABLE_ADDITIONAL_TOOLS and configured with upstreams. This is used for tools discovered from upstream proxy servers. The caller (RegisterUpstreamTools) is responsible for checking that proxy is enabled before calling this function. Proxied tools bypass the normal ENABLE_ADDITIONAL_TOOLS check but still respect DISABLED_TOOLS.

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