pub struct HttpMcpServer { /* private fields */ }
Expand description
HTTP-specific MCP server that properly integrates with HTTP transport
Implementations§
Source§impl HttpMcpServer
impl HttpMcpServer
Sourcepub async fn server(&self) -> Arc<Mutex<McpServer>>
pub async fn server(&self) -> Arc<Mutex<McpServer>>
Get a reference to the underlying MCP server
Sourcepub async fn start(&mut self, transport: HttpServerTransport) -> McpResult<()>
pub async fn start(&mut self, transport: HttpServerTransport) -> McpResult<()>
Start the HTTP server with proper request handling integration
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Check if the server is running
Auto 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