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
LibDirs []string
Packages []string // Package (.zip) paths or URLs
Insecure bool // Allow self-signed HTTPS for package URLs
CacheDir string // Override default OS cache dir for remote packages
BearerToken string
AllowedPaths []string // Filesystem path restrictions (empty = no restrictions)
MCPToolsDir string // Empty means MCP disabled
MCPExecTool bool // Enable code execution tool
KVStoragePath string // Empty means in-memory KV store
TLSCert string
TLSKey string
TLSGenerate bool
}
ServerConfig holds the configuration for the HTTP server
Click to show internal directories.
Click to hide internal directories.