Skip to main content

Module config

Module config 

Source
Expand description

HttpServerConfig — HTTP-listener-specific configuration.

SP-streamable-http §6.2: HTTP-specific fields (listen socket, extra origins, body cap, bearer policy) live here; the shared dispatch fields (cwd, audit_sink, token_broker, server_version, granted_capabilities, max_output_bytes) live on atd_runtime::dispatch::SharedServerConfig. Adopters pass both into the Server::builder chain.

Structs§

HttpServerConfig
Configuration for crate::Server. All fields are public so adopters can use struct-literal construction; Default::default() returns loopback 127.0.0.1:0 with anonymous-mode bearer policy (matches the Celia http_server.rs precedent in celia-cli/src/http_server.rs:114-130).

Constants§

DEFAULT_MAX_BODY_BYTES
Default body-size cap for POST /mcp. Mirrors the atd-protocol::wire 10 MiB frame cap so HTTP and UDS share the same upper bound — there is no MCP scenario where the JSON-RPC envelope should exceed an ATD frame.