Documentation
¶
Index ¶
- func BuildResponse(exitCode int, files *output.Files) *mcp.CallToolResult
- func HandleRunCommand(ctx context.Context, cmd string, cfg HandlerConfig) (*mcp.CallToolResult, any, error)
- func Register(s *mcp.Server, cfg HandlerConfig)
- type CommandRunner
- type HandlerConfig
- type RunCommandInput
- type ToolResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildResponse ¶
func BuildResponse(exitCode int, files *output.Files) *mcp.CallToolResult
func HandleRunCommand ¶
func HandleRunCommand(ctx context.Context, cmd string, cfg HandlerConfig) (*mcp.CallToolResult, any, error)
func Register ¶
func Register(s *mcp.Server, cfg HandlerConfig)
Types ¶
type CommandRunner ¶ added in v0.15.0
type CommandRunner = broker.CommandRunner
CommandRunner is the broker's execution interface, re-exported so existing callers keep their import.
type HandlerConfig ¶
type HandlerConfig struct {
OutputDir string
CommandRunner CommandRunner
}
type RunCommandInput ¶
type ToolResult ¶
Click to show internal directories.
Click to hide internal directories.