Documentation
¶
Index ¶
- func NewServerTool(tool mcp.Tool, handler server.ToolHandlerFunc) server.ServerTool
- type Toolset
- func (t *Toolset) AddReadTools(tools ...server.ServerTool) *Toolset
- func (t *Toolset) AddWriteTools(tools ...server.ServerTool) *Toolset
- func (t *Toolset) GetActiveTools() []server.ServerTool
- func (t *Toolset) GetAvailableTools() []server.ServerTool
- func (t *Toolset) RegisterTools(s *server.MCPServer)
- func (t *Toolset) SetReadOnly()
- type ToolsetGroup
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 (*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 (*Toolset) SetReadOnly ¶
func (t *Toolset) SetReadOnly()
type ToolsetGroup ¶
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)
Click to show internal directories.
Click to hide internal directories.