pub trait Middleware:
Send
+ Sync
+ 'static {
// Required method
fn handle<'req, 'life0, 'async_trait>(
&'life0 self,
req: Request<&'req str>,
state: Arc<McpAppState>,
next: MiddlewareNext<'req>,
) -> Pin<Box<dyn Future<Output = TransportServerResult<Response<GenericBody>>> + Send + 'async_trait>>
where Self: 'async_trait,
'req: 'async_trait,
'life0: 'async_trait;
}