mcp

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanPromptsFolder added in v0.16.0

func ScanPromptsFolder(dir string) ([]scannedPrompt, error)

ScanPromptsFolder scans a prompts folder. A prompt is dynamic when a name.toml (with sibling name.py) is present, or static when only a name.md/name.txt is present. If both exist for a name, the dynamic one wins.

func ScanResourcesTree added in v0.16.0

func ScanResourcesTree(dir string) ([]scannedResource, error)

ScanResourcesTree walks a resources directory and returns every resource (static or template) it describes.

func ScanToolsFolder

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

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

func ValidateTool

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

ValidateTool checks if a tool's metadata matches its script

Types

type PromptArgument added in v0.16.0

type PromptArgument struct {
	Name        string
	Description string
	Required    bool
}

PromptArgument describes one argument a dynamic prompt accepts.

Jump to

Keyboard shortcuts

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