pub struct HttpServerConfig {
pub addr: SocketAddr,
pub bearer_token: Option<String>,
pub ip_filter: IpFilter,
pub event_handler: Option<Arc<dyn McpEventHandler>>,
}Expand description
Configuration for an HTTP MCP server
Fields§
§addr: SocketAddrSocket address to bind to (e.g., “127.0.0.1:8080”)
bearer_token: Option<String>Optional bearer token for authentication
ip_filter: IpFilterIP filter controlling which client addresses are allowed
event_handler: Option<Arc<dyn McpEventHandler>>Optional event handler for MCP server lifecycle and request events
Trait Implementations§
Source§impl Clone for HttpServerConfig
impl Clone for HttpServerConfig
Auto Trait Implementations§
impl Freeze for HttpServerConfig
impl !RefUnwindSafe for HttpServerConfig
impl Send for HttpServerConfig
impl Sync for HttpServerConfig
impl Unpin for HttpServerConfig
impl UnsafeUnpin for HttpServerConfig
impl !UnwindSafe for HttpServerConfig
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