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 ContainerRunner
- 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 ContainerRunner ¶
type HandlerConfig ¶
type HandlerConfig struct {
OutputDir string
AllowPatterns []string
DenyPatterns []string
ContainerRunner ContainerRunner
ContainerEnvPassthrough []string
}
type RunCommandInput ¶
type ToolResult ¶
Click to show internal directories.
Click to hide internal directories.