pub struct McpServerEntry {
pub transport: McpTransport,
pub connect_timeout_secs: Option<u64>,
pub discover_timeout_secs: Option<u64>,
}Expand description
Individual MCP server configuration entry from mcp.json.
§Examples
use mcp_execution_cli::commands::common::McpServerEntry;
use std::collections::HashMap;
let entry = McpServerEntry {
transport: mcp_execution_cli::commands::common::McpTransport::Http {
url: "https://api.example.com".to_string(),
headers: HashMap::new(),
},
connect_timeout_secs: Some(30),
discover_timeout_secs: Some(30),
};
assert_eq!(entry.connect_timeout_secs, Some(30));Fields§
§transport: McpTransportThe server’s transport and its transport-specific settings.
connect_timeout_secs: Option<u64>Connection (handshake) timeout in seconds, overriding the 30-second
default when set. JSON key: connectTimeoutSecs.
discover_timeout_secs: Option<u64>Tool discovery timeout in seconds, overriding the 30-second default
when set. JSON key: discoverTimeoutSecs.
Trait Implementations§
Source§impl Clone for McpServerEntry
impl Clone for McpServerEntry
Source§fn clone(&self) -> McpServerEntry
fn clone(&self) -> McpServerEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpServerEntry
impl Debug for McpServerEntry
Source§impl<'de> Deserialize<'de> for McpServerEntry
impl<'de> Deserialize<'de> for McpServerEntry
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 McpServerEntry
impl RefUnwindSafe for McpServerEntry
impl Send for McpServerEntry
impl Sync for McpServerEntry
impl Unpin for McpServerEntry
impl UnsafeUnpin for McpServerEntry
impl UnwindSafe for McpServerEntry
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