data/server/direct_server library

Direct connect HTTP/WebSocket server for headless and API mode.

Exposes a REST API for chat, session management, tool execution, and configuration. Supports CORS, bearer-token authentication, request logging, and per-client rate limiting.

Classes

DirectServer
HTTP server that exposes a REST/WebSocket API for headless usage.
RequestLog
Lightweight record of an incoming request for the monitoring stream.
ServerConfig
Configuration for starting a DirectServer.
ServerEndpoint
Describes a single API endpoint.

Enums

HttpMethod
HTTP method constants.
ServerStatus
Server lifecycle status.