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 DropRule
- 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 = router.CommandRunner
CommandRunner is the engine's sandbox-execution interface, re-exported so existing callers (serve.go, tests) keep their import.
type DropRule ¶ added in v0.14.3
DropRule is the router's drop rule (pattern + optional message), re-exported so callers can build a HandlerConfig without importing router directly.
type HandlerConfig ¶
type HandlerConfig struct {
OutputDir string
AllowPatterns []string
DropRules []DropRule
CommandRunner CommandRunner
}
type RunCommandInput ¶
type ToolResult ¶
Click to show internal directories.
Click to hide internal directories.