registry

package
v0.0.0-...-aa36d97 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Categories

type Categories []Category

func GetCategories

func GetCategories() Categories

func (Categories) String

func (c Categories) String() []string

type Category

type Category string
const (
	CategoryDebug Category = "debug"
)

type Prompt

type Prompt struct {
	mcp.Prompt
	Category Category
	Handler  func(context.Context, mcp.GetPromptRequest) (*mcp.GetPromptResult, error)
}

func IngredientPrompt

func IngredientPrompt() Prompt

func ProjectPrompt

func ProjectPrompt() Prompt

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func New

func New() *Registry

func (*Registry) GetPrompts

func (r *Registry) GetPrompts(requestCategories ...string) []Prompt

func (*Registry) GetTools

func (r *Registry) GetTools(requestCategories ...string) []Tool

func (*Registry) RegisterPrompt

func (r *Registry) RegisterPrompt(prompt Prompt)

func (*Registry) RegisterTool

func (r *Registry) RegisterTool(tool Tool)

type Tool

type Tool struct {
	mcp.Tool
	Category Category
	Handler  func(context.Context, *primer.Values, mcp.CallToolRequest) (*mcp.CallToolResult, error)
}

func CreateIngredientRevisionTool

func CreateIngredientRevisionTool() Tool

func DownloadLogsTool

func DownloadLogsTool() Tool

func DownloadSourceFileTool

func DownloadSourceFileTool() Tool

func GetIngredientDetailsTool

func GetIngredientDetailsTool() Tool

func GetInstructionsTool

func GetInstructionsTool() Tool

func HelloWorldTool

func HelloWorldTool() Tool

func ListSourceFilesTool

func ListSourceFilesTool() Tool

func ProjectErrorsTool

func ProjectErrorsTool() Tool

func RebuildProjectTool

func RebuildProjectTool() Tool

Jump to

Keyboard shortcuts

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