Documentation
¶
Index ¶
- func CreateServerTool(blueprint Blueprint) *mcp.ServerTool
- func CreateToolFunction(blueprint Blueprint) mcp.ToolHandlerFor[map[string]any, map[string]any]
- func Execute(command string, args ...string) (string, error)
- func GenerateToolName(baseCommand string) string
- func GetToolDescription(blueprint Blueprint) string
- func IsDebugMode() bool
- func SetDebugMode(enabled bool)
- func SetLogFile(filename string) error
- type Blueprint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateServerTool ¶
func CreateServerTool(blueprint Blueprint) *mcp.ServerTool
CreateServerTool creates a complete MCP server tool from a blueprint
func CreateToolFunction ¶
CreateToolFunction creates a tool handler for the given blueprint
func GenerateToolName ¶
GenerateToolName generates a tool name from a base command by replacing dashes with underscores
func GetToolDescription ¶
GetToolDescription generates the tool description from a blueprint
func SetLogFile ¶
SetLogFile sets the log file for debug output
Types ¶
Click to show internal directories.
Click to hide internal directories.