pub struct McpDiscoverRequest {
pub include_effective_source: Option<bool>,
pub working_directory: Option<String>,
}Expand description
Optional working directory used as context for MCP server discovery.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§include_effective_source: Option<bool>Whether to include canonical effectiveSource metadata for each discovered server. Callers must opt in so protocol-3 clients retain the legacy closed response shape.
working_directory: Option<String>Working directory used as context for discovery (e.g., plugin resolution)
Trait Implementations§
Source§impl Clone for McpDiscoverRequest
impl Clone for McpDiscoverRequest
Source§impl Debug for McpDiscoverRequest
impl Debug for McpDiscoverRequest
Source§impl Default for McpDiscoverRequest
impl Default for McpDiscoverRequest
Source§impl<'de> Deserialize<'de> for McpDiscoverRequest
impl<'de> Deserialize<'de> for McpDiscoverRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for McpDiscoverRequest
impl RefUnwindSafe for McpDiscoverRequest
impl Send for McpDiscoverRequest
impl Sync for McpDiscoverRequest
impl Unpin for McpDiscoverRequest
impl UnsafeUnpin for McpDiscoverRequest
impl UnwindSafe for McpDiscoverRequest
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