mcp

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanToolsFolder

func ScanToolsFolder(toolsFolder string) (map[string]*toolmetadata.ToolMetadata, error)

ScanToolsFolder scans the tools folder for .toml files and returns metadata

func SetupFactories

func SetupFactories(libdir string, allowedPaths []string, log logger.Logger)

SetupFactories configures the global sandbox and background factories. Call this once at startup, before any scripts execute. The factories create new Scriptling instances with the same library configuration.

func SetupScriptling

func SetupScriptling(p *scriptling.Scriptling, libdir string, registerInteract bool, allowedPaths []string, log logger.Logger)

SetupScriptling configures a Scriptling instance with all libraries. libdir: Optional directory for on-demand library loading (empty = current directory) registerInteract: Whether to register the agent interact library allowedPaths: Filesystem path restrictions for os, pathlib, glob, sandbox (nil = no restrictions) log: Logger instance for the logging library

func ValidateTool

func ValidateTool(toolName string, meta *toolmetadata.ToolMetadata, scriptPath string) []string

ValidateTool checks if a tool's metadata matches its script

Types

This section is empty.

Jump to

Keyboard shortcuts

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