pub struct McpServer {
pub command: Option<String>,
pub args: Option<Vec<String>>,
pub env: Option<HashMap<String, String>>,
pub cwd: Option<String>,
pub url: Option<String>,
pub transport_type: Option<McpTransport>,
pub headers: Option<HashMap<String, String>>,
pub include_tools: Option<Vec<String>>,
pub exclude_tools: Option<Vec<String>>,
pub timeout: Option<u64>,
}Expand description
MCP server configuration.
Fields§
§command: Option<String>§args: Option<Vec<String>>§env: Option<HashMap<String, String>>§cwd: Option<String>§url: Option<String>§transport_type: Option<McpTransport>§headers: Option<HashMap<String, String>>§include_tools: Option<Vec<String>>§exclude_tools: Option<Vec<String>>§timeout: Option<u64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpServer
impl<'de> Deserialize<'de> for McpServer
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 McpServer
impl RefUnwindSafe for McpServer
impl Send for McpServer
impl Sync for McpServer
impl Unpin for McpServer
impl UnsafeUnpin for McpServer
impl UnwindSafe for McpServer
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