feat: add local feature for !Send tool handler support (#740)
* feat: add local feature for !Send tool handler support * fix: gate streamable HTTP transport on not(local) feature
This commit is contained in:
parent
8700e5c920
commit
1a4a52a173
2 changed files with 362 additions and 222 deletions
|
|
@ -33,7 +33,7 @@ pub mod never;
|
|||
|
||||
/// Controls how MCP sessions are created, validated, and closed.
|
||||
///
|
||||
/// The [`StreamableHttpService`](super::StreamableHttpService) calls into this
|
||||
/// The `StreamableHttpService` calls into this
|
||||
/// trait for every HTTP request that carries (or should carry) a session ID.
|
||||
///
|
||||
/// See the [module-level docs](self) for background on sessions.
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ impl<S, M> Clone for StreamableHttpService<S, M> {
|
|||
impl<RequestBody, S, M> tower_service::Service<Request<RequestBody>> for StreamableHttpService<S, M>
|
||||
where
|
||||
RequestBody: Body + Send + 'static,
|
||||
S: crate::Service<RoleServer>,
|
||||
S: crate::Service<RoleServer> + Send + 'static,
|
||||
M: SessionManager,
|
||||
RequestBody::Error: Display,
|
||||
RequestBody::Data: Send + 'static,
|
||||
|
|
|
|||
Loading…
Reference in a new issue