toolsets

package
v0.0.0-...-0d759da Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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