pub struct LambdaMcpServer {
pub implementation: Implementation,
pub capabilities: ServerCapabilities,
/* private fields */
}Expand description
Main Lambda MCP server
This server stores all configuration and can create Lambda handlers when needed. It mirrors the architecture of McpServer but is designed for Lambda deployment.
Fields§
§implementation: ImplementationServer implementation information
capabilities: ServerCapabilitiesServer capabilities
Implementations§
Source§impl LambdaMcpServer
impl LambdaMcpServer
Sourcepub async fn handler(&self) -> Result<LambdaMcpHandler>
pub async fn handler(&self) -> Result<LambdaMcpHandler>
Create a Lambda handler ready for use with Lambda runtime
This is equivalent to McpServer::run_http() but creates a handler instead of running a server.
Sourcepub fn session_storage_info(&self) -> &str
pub fn session_storage_info(&self) -> &str
Get information about the session storage backend
Auto Trait Implementations§
impl Freeze for LambdaMcpServer
impl !RefUnwindSafe for LambdaMcpServer
impl Send for LambdaMcpServer
impl Sync for LambdaMcpServer
impl Unpin for LambdaMcpServer
impl !UnwindSafe for LambdaMcpServer
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> 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.