Documentation
¶
Overview ¶
Package mcp provides an MCP server for exposing KSail commands as tools.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServerConfig ¶
type ServerConfig struct {
// Name is the server name.
Name string
// Version is the server version.
Version string
// RootCmd is the root Cobra command for tool generation.
RootCmd *cobra.Command
// Logger is the logger for the server (optional).
Logger *slog.Logger
// WorkingDirectory is the directory to run commands in (defaults to current directory).
WorkingDirectory string
}
ServerConfig contains configuration for the MCP server.
func DefaultConfig ¶
func DefaultConfig(rootCmd *cobra.Command, version string) ServerConfig
DefaultConfig returns a default server configuration.
Click to show internal directories.
Click to hide internal directories.