tools

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(baseCmd *cmd.BaseCmd, opt ...options.CmdOption) (*cobra.Command, error)

func NewListCmd

func NewListCmd(baseCmd *internalcmd.BaseCmd, opt ...cmdopts.CmdOption) (*cobra.Command, error)

NewListCmd creates a new list command for displaying MCP server tools.

func NewRemoveCmd

func NewRemoveCmd(baseCmd *cmd.BaseCmd, opt ...cmdopts.CmdOption) (*cobra.Command, error)

func NewSetCmd

func NewSetCmd(baseCmd *cmd.BaseCmd, opt ...cmdopts.CmdOption) (*cobra.Command, error)

NewSetCmd creates a new set command for adding tools to an MCP server configuration.

Types

type Cmd

type Cmd struct {
	*cmd.BaseCmd
}

type ListCmd

type ListCmd struct {
	*internalcmd.BaseCmd
	// contains filtered or unexported fields
}

ListCmd represents the command for listing tools for MCP servers. Use NewListCmd to create instances of ListCmd.

type RemoveCmd

type RemoveCmd struct {
	*cmd.BaseCmd

	Tools []string
	// contains filtered or unexported fields
}

type SetCmd

type SetCmd struct {
	*cmd.BaseCmd
	// contains filtered or unexported fields
}

SetCmd represents the command for setting (adding) tools to an MCP server configuration. Use NewSetCmd to create instances of SetCmd.

Jump to

Keyboard shortcuts

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