cmds

package
v0.0.0-...-17d8b50 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	BuildTime = "unknown"
	GitCommit = "none"
)

Version information

View Source
var PromptsCmd = &cobra.Command{
	Use:   "prompts",
	Short: "Interact with prompts",
	Long:  `List available prompts and execute specific prompts.`,
}

PromptsCmd handles the "prompts" command group

View Source
var ResourcesCmd = &cobra.Command{
	Use:   "resources",
	Short: "Interact with resources",
	Long:  `List available resources and read specific resources.`,
}

ResourcesCmd handles the "resources" command group

View Source
var ToolsCmd = &cobra.Command{
	Use:   "tools",
	Short: "Interact with tools",
	Long:  `List available tools and execute specific tools.`,
}

ToolsCmd handles the "tools" command group

View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Print version information",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Printf("mcp-client version %s\n", Version)
		fmt.Printf("  Build time: %s\n", BuildTime)
		fmt.Printf("  Git commit: %s\n", GitCommit)
	},
}

VersionCmd handles the "version" command

Functions

This section is empty.

Types

type CallToolCommand

type CallToolCommand struct {
	*cmds.CommandDescription
}

func NewCallToolCommand

func NewCallToolCommand() (*CallToolCommand, error)

func (*CallToolCommand) RunIntoWriter

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

type CallToolSettings

type CallToolSettings struct {
	ToolName string                 `glazed.parameter:"tool-name"`
	JSON     string                 `glazed.parameter:"json"`
	Args     map[string]interface{} `glazed.parameter:"args"`
}

type ExecutePromptCommand

type ExecutePromptCommand struct {
	*cmds.CommandDescription
}

func NewExecutePromptCommand

func NewExecutePromptCommand() (*ExecutePromptCommand, error)

func (*ExecutePromptCommand) RunIntoWriter

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

type ExecutePromptSettings

type ExecutePromptSettings struct {
	Args       string `glazed.parameter:"args"`
	PromptName string `glazed.parameter:"prompt-name"`
}

type ListPromptsCommand

type ListPromptsCommand struct {
	*cmds.CommandDescription
}

func NewListPromptsCommand

func NewListPromptsCommand() (*ListPromptsCommand, error)

func (*ListPromptsCommand) RunIntoGlazeProcessor

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

type ListResourcesCommand

type ListResourcesCommand struct {
	*cmds.CommandDescription
}

func NewListResourcesCommand

func NewListResourcesCommand() (*ListResourcesCommand, error)

func (*ListResourcesCommand) RunIntoGlazeProcessor

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

type ListResourcesSettings

type ListResourcesSettings struct {
}

type ListToolsCommand

type ListToolsCommand struct {
	*cmds.CommandDescription
}

func NewListToolsCommand

func NewListToolsCommand() (*ListToolsCommand, error)

func (*ListToolsCommand) RunIntoGlazeProcessor

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

type ListToolsSettings

type ListToolsSettings struct {
}

type ReadResourceCommand

type ReadResourceCommand struct {
	*cmds.CommandDescription
}

func NewReadResourceCommand

func NewReadResourceCommand() (*ReadResourceCommand, error)

func (*ReadResourceCommand) RunIntoWriter

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

type ReadResourceSettings

type ReadResourceSettings struct {
	URI string `glazed.parameter:"uri"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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