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 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 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"`
}
Click to show internal directories.
Click to hide internal directories.