toolsets

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerTool

func NewServerTool(tool mcp.Tool, handler server.ToolHandlerFunc) server.ServerTool

Types

type Toolset

type Toolset struct {
	Name        string
	Description string
	Enabled     bool
	// contains filtered or unexported fields
}

func NewToolset

func NewToolset(name string, description string) *Toolset

func (*Toolset) AddReadTools

func (t *Toolset) AddReadTools(tools ...server.ServerTool) *Toolset

func (*Toolset) AddWriteTools

func (t *Toolset) AddWriteTools(tools ...server.ServerTool) *Toolset

func (*Toolset) GetActiveTools

func (t *Toolset) GetActiveTools() []server.ServerTool

func (*Toolset) GetAvailableTools

func (t *Toolset) GetAvailableTools() []server.ServerTool

func (*Toolset) RegisterTools

func (t *Toolset) RegisterTools(s *server.MCPServer)

func (*Toolset) SetReadOnly

func (t *Toolset) SetReadOnly()

type ToolsetGroup

type ToolsetGroup struct {
	Toolsets map[string]*Toolset
	// contains filtered or unexported fields
}

func NewToolsetGroup

func NewToolsetGroup(readOnly bool) *ToolsetGroup

func (*ToolsetGroup) AddToolset

func (tg *ToolsetGroup) AddToolset(ts *Toolset)

func (*ToolsetGroup) EnableToolset

func (tg *ToolsetGroup) EnableToolset(name string) error

func (*ToolsetGroup) EnableToolsets

func (tg *ToolsetGroup) EnableToolsets(names []string) error

func (*ToolsetGroup) IsEnabled

func (tg *ToolsetGroup) IsEnabled(name string) bool

func (*ToolsetGroup) RegisterTools

func (tg *ToolsetGroup) RegisterTools(s *server.MCPServer)

Jump to

Keyboard shortcuts

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