cmd

package
v0.0.0-...-b590d70 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse()

Types

type APICatalogCmd

type APICatalogCmd struct {
	Poller string `required:"" name:"poller" help:"Poller name from config to download swagger from (e.g. dc1)"`
	Output string `name:"output" default:"conf/ontap_api_catalog.json" help:"Destination path for the generated catalog JSON"`
}

func (*APICatalogCmd) Run

func (c *APICatalogCmd) Run(cli *CLI) error

type CLI

type CLI struct {
	Globals
	Start    StartCmd    `cmd:"" help:"Start ONTAP MCP server"`
	Generate GenerateCmd `cmd:"" help:"Generate ONTAP MCP artifacts"`
}

type GenerateCmd

type GenerateCmd struct {
	APICatalog APICatalogCmd `cmd:"api-catalog" help:"Generate API catalog JSON by downloading swagger from an ONTAP cluster"`
}

type Globals

type Globals struct {
	LogLevel   string `enum:"debug,info,warn,error" default:"info" env:"LOG_LEVEL" help:"Log level, one of: ${enum}"`
	ConfigPath string `name:"config" default:"ontap.yaml" env:"ONTAP_MCP_CONFIG" help:"ONTAP-MCP config path"`
}

type StartCmd

type StartCmd struct {
	Host           string `default:"localhost" help:"Listening address"`
	Port           int    `default:"8080" help:"Listening port" env:"ONTAP_MCP_PORT"`
	InspectTraffic bool   `default:"false" help:"Inspect MCP HTTP traffic"`
	ReadOnly       bool   `default:"false" help:"Run MCP in read-only mode. This disables all tool calls that modify ONTAP state."`
	Stateless      bool   `` /* 203-byte string literal not displayed */
	JSONResponse   bool   `` /* 206-byte string literal not displayed */
}

func (*StartCmd) Run

func (a *StartCmd) Run(cli *CLI) error

Jump to

Keyboard shortcuts

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