Documentation
¶
Overview ¶
Package cli implements the abs-mcp command line interface: the cobra commands, flag and config handling, and the MCP server exposing Audiobookshelf library tools to AI clients.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FlagData ¶
type FlagData struct {
Server string `mapstructure:"server"`
Token string `mapstructure:"token"`
ReadOnly bool `mapstructure:"read-only"`
EnableDelete bool `mapstructure:"enable-delete"`
AllowTools []string `mapstructure:"allow-tools"`
DenyTools []string `mapstructure:"deny-tools"`
Listen string `mapstructure:"listen"`
AuthToken string `mapstructure:"auth-token"`
}
func GetFlags ¶
func GetFlags() *FlagData
GetFlags returns the fully populated FlagData. We must unmarshal from Viper instead of using globally bound pflags variables because pflags only parses command-line arguments. Viper merges environment variables (and config files) on top of the CLI flags.
func (*FlagData) ToolOptions ¶
ToolOptions maps the flags onto the tool registration options.
Click to show internal directories.
Click to hide internal directories.