pub struct WebmcpServerConfig {
pub host: String,
pub port: u16,
pub allowed_origins: Vec<String>,
pub pairing_ttl_secs: u64,
pub max_frame_bytes: usize,
pub max_in_flight_requests: usize,
pub allow_remote: bool,
pub public_url: Option<String>,
pub remote_mcp: Option<RemoteMcpServerConfig>,
pub event_hub: EventHubConfig,
pub request_timeout: Duration,
}Expand description
Configuration for the WebMCP listener.
Fields§
§host: StringBind host, normally 127.0.0.1.
port: u16Bind port, with zero selecting an available port.
allowed_origins: Vec<String>Explicit browser origin allowlist.
pairing_ttl_secs: u64Pairing lifetime and authenticated-session inactivity lease in seconds.
max_frame_bytes: usizeMaximum WebSocket message size.
max_in_flight_requests: usizeMaximum concurrent adapter operations.
allow_remote: boolWhether remote reverse-proxy mode is explicitly enabled.
public_url: Option<String>Public WSS URL required for remote mode.
remote_mcp: Option<RemoteMcpServerConfig>Optional read-only OpenAI-compatible MCP transport.
event_hub: EventHubConfigEvent replay and subscriber queue limits.
request_timeout: DurationPer-operation timeout.
Trait Implementations§
Source§impl Clone for WebmcpServerConfig
impl Clone for WebmcpServerConfig
Source§fn clone(&self) -> WebmcpServerConfig
fn clone(&self) -> WebmcpServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebmcpServerConfig
impl Debug for WebmcpServerConfig
Auto Trait Implementations§
impl Freeze for WebmcpServerConfig
impl RefUnwindSafe for WebmcpServerConfig
impl Send for WebmcpServerConfig
impl Sync for WebmcpServerConfig
impl Unpin for WebmcpServerConfig
impl UnsafeUnpin for WebmcpServerConfig
impl UnwindSafe for WebmcpServerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more