mcptools

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteTool

func ExecuteTool(name string, params map[string]interface{}, user *model.User) (interface{}, error)

func GetAllMCPTools

func GetAllMCPTools() []mcp.MCPTool

GetAllMCPTools returns all MCP tools with their Visibility field set appropriately

func GetEmbeddedFS

func GetEmbeddedFS() fs.FS

func GetMCPTools

func GetMCPTools(visibility string) []mcp.MCPTool

func LoadTools

func LoadTools(toolsPath string, disabledTools []string) error

func ParseMetadata

func ParseMetadata(tomlContent []byte) (*toolmetadata.ToolMetadata, error)

func ReloadTools

func ReloadTools(toolsPath string, disabledTools []string) (int, error)

Types

type Tool

type Tool struct {
	Name     string
	Script   string
	Metadata *toolmetadata.ToolMetadata
}

func GetTool

func GetTool(name string) (*Tool, bool)

func ListTools

func ListTools() []*Tool

Jump to

Keyboard shortcuts

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