mcp

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var McpCmd = &cobra.Command{
	Use:   "mcp",
	Short: "MCP (Machine Control Protocol) related commands",
}

Functions

This section is empty.

Types

type ListToolsCommand

type ListToolsCommand struct {
	*cmds.CommandDescription
	// contains filtered or unexported fields
}

func NewListToolsCommand

func NewListToolsCommand(repositories []*repositories.Repository) (*ListToolsCommand, error)

func (*ListToolsCommand) RunIntoGlazeProcessor

func (c *ListToolsCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type McpCommands

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

func NewMcpCommands

func NewMcpCommands(repositories []*repositories.Repository) *McpCommands

func (*McpCommands) AddToRootCommand

func (mc *McpCommands) AddToRootCommand(rootCmd *cobra.Command)

func (*McpCommands) CreateRunCmd

func (mc *McpCommands) CreateRunCmd() *cobra.Command

func (*McpCommands) CreateToolsCmd

func (mc *McpCommands) CreateToolsCmd() *cobra.Command

type RunCommand

type RunCommand struct {
	*cmds.CommandDescription
	// contains filtered or unexported fields
}

func NewRunCommand

func NewRunCommand(repositories []*repositories.Repository) (*RunCommand, error)

func (*RunCommand) Run

func (c *RunCommand) Run(ctx context.Context, parsedLayers *layers.ParsedLayers) error

type RunCommandSettings

type RunCommandSettings struct {
	Name         string                 `glazed.parameter:"name"`
	Args         string                 `glazed.parameter:"args"`
	ArgsFromFile map[string]interface{} `glazed.parameter:"args-from-file"`
}

RunCommandSettings holds the parameters for the run command

type SchemaCommand

type SchemaCommand struct {
	*cmds.CommandDescription
	// contains filtered or unexported fields
}

func NewSchemaCommand

func NewSchemaCommand(repositories []*repositories.Repository) (*SchemaCommand, error)

func (*SchemaCommand) RunIntoWriter

func (c *SchemaCommand) RunIntoWriter(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	w io.Writer,
) error

Jump to

Keyboard shortcuts

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