Documentation
¶
Overview ¶
Package cli provides the command-line plumbing shared by MCP servers built on this repo: a flag value that turns a comma-separated list of toolset keys and profile names into the methods to enable.
Profiles themselves are not registered here. They are a per-server policy, so each server registers its own through toolsets.RegisterProfile before parsing flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Methods ¶
type Methods struct {
// contains filtered or unexported fields
}
Methods is a slice of toolsets.Method that implements the flag.Value interface, allowing it to be used as a command-line flag type.
func NewMethods ¶
NewMethods creates a new Methods instance with the specified initial methods.
func (*Methods) Set ¶
Set parses a comma-separated string of method names and updates the Methods slice. It supports individual method names, as well as profile names that expand into multiple methods. If an invalid method or profile name is encountered, it returns an error.