Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log logger.Logger
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the HTTP server
func NewServer ¶
func NewServer(config ServerConfig) (*Server, error)
NewServer creates a new HTTP server
type ServerConfig ¶
type ServerConfig struct {
Address string
ScriptFile string
LibDir string
BearerToken string
AllowedPaths []string // Filesystem path restrictions (empty = no restrictions)
MCPToolsDir string // Empty means MCP disabled
MCPExecTool bool // Enable code execution tool
TLSCert string
TLSKey string
TLSGenerate bool
}
ServerConfig holds the configuration for the HTTP server
Click to show internal directories.
Click to hide internal directories.