cmds

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientCmd = &cobra.Command{
	Use:   "client",
	Short: "MCP client functionality",
	Long:  `Client commands for interacting with MCP servers`,
}

Functions

func InitClientCommand

func InitClientCommand(helpSystem *help.HelpSystem) error

func NewBridgeCommand

func NewBridgeCommand(logger zerolog.Logger) *cobra.Command

func NewClaudeConfigCommand added in v0.0.5

func NewClaudeConfigCommand() *cobra.Command

func NewConfigAddProfileCommand added in v0.0.4

func NewConfigAddProfileCommand() *cobra.Command

func NewConfigAddToolCommand added in v0.0.4

func NewConfigAddToolCommand() *cobra.Command

func NewConfigDuplicateProfileCommand added in v0.0.4

func NewConfigDuplicateProfileCommand() *cobra.Command

func NewConfigEditCommand added in v0.0.4

func NewConfigEditCommand() *cobra.Command

func NewConfigGroupCommand added in v0.0.4

func NewConfigGroupCommand() *cobra.Command

func NewConfigInitCommand added in v0.0.4

func NewConfigInitCommand() *cobra.Command

func NewConfigListProfilesCommand added in v0.0.4

func NewConfigListProfilesCommand() *cobra.Command

func NewConfigSetDefaultProfileCommand added in v0.0.4

func NewConfigSetDefaultProfileCommand() *cobra.Command

func NewConfigShowProfileCommand added in v0.0.4

func NewConfigShowProfileCommand() *cobra.Command

Types

type Config added in v0.0.4

type Config struct {
	Version        string             `yaml:"version"`
	DefaultProfile string             `yaml:"defaultProfile"`
	Profiles       map[string]Profile `yaml:"profiles"`
}

type DirectorySource added in v0.0.4

type DirectorySource struct {
	Path      string                            `yaml:"path"`
	Defaults  map[string]map[string]interface{} `yaml:"defaults,omitempty"`
	Overrides map[string]map[string]interface{} `yaml:"overrides,omitempty"`
	Whitelist map[string][]string               `yaml:"whitelist,omitempty"`
	Blacklist map[string][]string               `yaml:"blacklist,omitempty"`
}

type FileSource added in v0.0.4

type FileSource struct {
	Path      string                            `yaml:"path"`
	Defaults  map[string]map[string]interface{} `yaml:"defaults,omitempty"`
	Overrides map[string]map[string]interface{} `yaml:"overrides,omitempty"`
}

type Profile added in v0.0.4

type Profile struct {
	Description string        `yaml:"description"`
	Tools       ToolSources   `yaml:"tools"`
	Prompts     PromptSources `yaml:"prompts"`
}

type PromptSources added in v0.0.4

type PromptSources struct {
	Directories []DirectorySource `yaml:"directories,omitempty"`
	Files       []FileSource      `yaml:"files,omitempty"`
}

type SchemaCommand

type SchemaCommand struct {
	*cmds.CommandDescription
}

func NewSchemaCommand

func NewSchemaCommand() (*SchemaCommand, error)

func (*SchemaCommand) RunIntoWriter

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

type SchemaCommandSettings

type SchemaCommandSettings struct {
	File string `glazed.parameter:"file"`
}

type StartCommand

type StartCommand struct {
	*cmds.CommandDescription
}

func NewStartCommand

func NewStartCommand() (*StartCommand, error)

func (*StartCommand) Run

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

type StartCommandSettings

type StartCommandSettings struct {
	Transport    string   `glazed.parameter:"transport"`
	Port         int      `glazed.parameter:"port"`
	Repositories []string `glazed.parameter:"repositories"`
	Debug        bool     `glazed.parameter:"debug"`
	TracingDir   string   `glazed.parameter:"tracing-dir"`
	ConfigFile   string   `glazed.parameter:"config-file" help:"Path to the configuration file"`
	Profile      string   `glazed.parameter:"profile" help:"Profile to use from the configuration file"`
}

type ToolSources added in v0.0.4

type ToolSources struct {
	Directories []DirectorySource `yaml:"directories,omitempty"`
	Files       []FileSource      `yaml:"files,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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