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<dyn SessionStorage<Error = SessionStorageError>>,
) -> HttpMcpServerBuilder
pub fn builder_with_storage( session_storage: Arc<dyn SessionStorage<Error = SessionStorageError>>, ) -> 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 run(&self) -> Result<(), HttpMcpError>
pub async fn run(&self) -> Result<(), HttpMcpError>
Run the server with session management
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.