mcptools

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 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 ParseRequiresApproval added in v0.25.1

func ParseRequiresApproval(tomlContent []byte) bool

func ReloadTools

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

Types

type Tool

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

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