server

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerCmd = &cobra.Command{
	Use:   "server",
	Short: "Server management commands",
	Long:  `Commands for managing the MCP server, including starting the server and managing tools.`,
}

ServerCmd is the root command for server-related operations

View Source
var ToolsCmd = &cobra.Command{
	Use:   "tools",
	Short: "Manage server tools",
	Long:  `List and call tools directly on the server side.`,
}

ToolsCmd handles the "server tools" command group

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 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 StartCommand added in v0.0.7

type StartCommand struct {
	*cmds.CommandDescription
}

func NewStartCommand added in v0.0.7

func NewStartCommand() (*StartCommand, error)

func (*StartCommand) Run added in v0.0.7

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

type StartCommandSettings added in v0.0.7

type StartCommandSettings struct {
	Transport string `glazed.parameter:"transport"`
	Port      int    `glazed.parameter:"port"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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