registry

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func New

func New() *Registry

func (*Registry) Count

func (r *Registry) Count() int

func (*Registry) List

func (r *Registry) List() []Tool

func (*Registry) ListByCategory

func (r *Registry) ListByCategory(cat string) []Tool

func (*Registry) Register

func (r *Registry) Register(category string, def mcp.Tool, handler server.ToolHandlerFunc)

func (*Registry) RegisterAll

func (r *Registry) RegisterAll(s *server.MCPServer)

type Tool

type Tool struct {
	Definition mcp.Tool
	Handler    server.ToolHandlerFunc
	Category   string
}

Jump to

Keyboard shortcuts

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