Documentation
¶
Index ¶
- Constants
- func StatusTool(ctx context.Context, ...) (tool mcp.Tool, handler server.ToolHandlerFunc)
- func TimelineTool(ctx context.Context, timelineClient timelinepbconnect.TimelineServiceClient) (tool mcp.Tool, handler server.ToolHandlerFunc)
- func ToolFromCLI(ctx context.Context, k *kong.Kong, executor CLIExecutor, title string, ...) (mcp.Tool, server.ToolHandlerFunc)
- type CLIConfig
- type CLIExecutor
- type CLIOptionConfig
- type CLIToolOption
- type CommandExecutor
- type Server
Constants ¶
View Source
const ( ModuleRegex = "[a-z][a-z0-9_]*" RefRegex = "[a-z][a-z0-9_]*\\.[a-zA-Z_][a-zA-Z0-9_]*" )
Variables ¶
This section is empty.
Functions ¶
func StatusTool ¶
func StatusTool(ctx context.Context, buildEngineClient buildenginepbconnect.BuildEngineServiceClient, adminClient adminpbconnect.AdminServiceClient) (tool mcp.Tool, handler server.ToolHandlerFunc)
func TimelineTool ¶
func TimelineTool(ctx context.Context, timelineClient timelinepbconnect.TimelineServiceClient) (tool mcp.Tool, handler server.ToolHandlerFunc)
func ToolFromCLI ¶
func ToolFromCLI(ctx context.Context, k *kong.Kong, executor CLIExecutor, title string, cmdPath []string, toolOptions ...CLIToolOption) (mcp.Tool, server.ToolHandlerFunc)
Types ¶
type CLIConfig ¶
type CLIConfig struct { InputOptions map[string]*CLIOptionConfig ExtraHelp []string ExtraArgs []string }
func (CLIConfig) Option ¶
func (c CLIConfig) Option(name string) *CLIOptionConfig
type CLIOptionConfig ¶
type CLIToolOption ¶
type CLIToolOption func(inputOptions *CLIConfig)
func AddHelp ¶
func AddHelp(help string) CLIToolOption
func Args ¶
func Args(args ...string) CLIToolOption
func Ignore ¶
func Ignore(model any, name string) CLIToolOption
func IncludeOptional ¶
func IncludeOptional(name string) CLIToolOption
type CommandExecutor ¶
Click to show internal directories.
Click to hide internal directories.