registry

package
v0.41.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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