pub struct HttpMcpServer { /* private fields */ }
Expand description
HTTP MCP Server with SessionStorage integration
Implementations§
Source§impl HttpMcpServer
impl HttpMcpServer
Sourcepub fn builder() -> HttpMcpServerBuilder
pub fn builder() -> HttpMcpServerBuilder
Create a new builder with default in-memory storage
Source§impl HttpMcpServer
impl HttpMcpServer
Sourcepub fn builder_with_storage(
session_storage: Arc<BoxedSessionStorage>,
) -> HttpMcpServerBuilder
pub fn builder_with_storage( session_storage: Arc<BoxedSessionStorage>, ) -> HttpMcpServerBuilder
Create a new builder with specific session storage
Sourcepub fn get_stream_manager(&self) -> Arc<StreamManager>
pub fn get_stream_manager(&self) -> Arc<StreamManager>
Get the shared StreamManager instance for event forwarding bridge Returns reference to the same StreamManager used by HTTP server
Sourcepub async fn get_stats(&self) -> ServerStats
pub async fn get_stats(&self) -> ServerStats
Get server statistics
Trait Implementations§
Source§impl Clone for HttpMcpServer
impl Clone for HttpMcpServer
Source§fn clone(&self) -> HttpMcpServer
fn clone(&self) -> HttpMcpServer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for HttpMcpServer
impl !RefUnwindSafe for HttpMcpServer
impl Send for HttpMcpServer
impl Sync for HttpMcpServer
impl Unpin for HttpMcpServer
impl !UnwindSafe for HttpMcpServer
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