pub struct McpClientConfig {Show 17 fields
pub enabled: bool,
pub ui: McpUiConfig,
pub providers: Vec<McpProviderConfig>,
pub requirements: McpRequirementsConfig,
pub server: McpServerConfig,
pub allowlist: McpAllowListConfig,
pub max_concurrent_connections: usize,
pub request_timeout_seconds: u64,
pub retry_attempts: u32,
pub startup_timeout_seconds: Option<u64>,
pub tool_timeout_seconds: Option<u64>,
pub experimental_use_rmcp_client: bool,
pub connection_pooling_enabled: bool,
pub tool_cache_capacity: usize,
pub connection_timeout_seconds: u64,
pub security: McpSecurityConfig,
pub lifecycle: McpLifecycleConfig,
}Expand description
Top-level MCP configuration
Fields§
§enabled: boolEnable MCP functionality
ui: McpUiConfigMCP UI display configuration
providers: Vec<McpProviderConfig>Configured MCP providers
requirements: McpRequirementsConfigOptional transport-identity requirements for provider admission
server: McpServerConfigMCP server configuration (for vtcode to expose tools)
allowlist: McpAllowListConfigAllow list configuration for MCP access control
max_concurrent_connections: usizeMaximum number of concurrent MCP connections
request_timeout_seconds: u64Timeout (seconds) for a single MCP tool call.
Distinct from connection_timeout_seconds, which bounds the
connect-and-handshake phase during startup.
retry_attempts: u32Connection retry attempts
startup_timeout_seconds: Option<u64>Optional timeout (seconds) when starting providers
tool_timeout_seconds: Option<u64>Optional timeout (seconds) for tool execution
experimental_use_rmcp_client: boolToggle experimental RMCP client features
connection_pooling_enabled: boolEnable connection pooling for better performance
tool_cache_capacity: usizeCache capacity for tool discovery results
connection_timeout_seconds: u64Connection timeout in seconds
security: McpSecurityConfigSecurity configuration for MCP
lifecycle: McpLifecycleConfigModel-driven MCP lifecycle controls (connect/disconnect).
Trait Implementations§
Source§impl Clone for McpClientConfig
impl Clone for McpClientConfig
Source§fn clone(&self) -> McpClientConfig
fn clone(&self) -> McpClientConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for McpClientConfig
impl Debug for McpClientConfig
Source§impl Default for McpClientConfig
impl Default for McpClientConfig
Source§fn default() -> McpClientConfig
fn default() -> McpClientConfig
Source§impl<'de> Deserialize<'de> for McpClientConfig
impl<'de> Deserialize<'de> for McpClientConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpClientConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpClientConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for McpClientConfig
impl JsonSchema for McpClientConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Serialize for McpClientConfig
impl Serialize for McpClientConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Forget for McpClientConfig
impl Freeze for McpClientConfig
impl Move for McpClientConfig
impl RefUnwindSafe for McpClientConfig
impl Send for McpClientConfig
impl Sync for McpClientConfig
impl Unpin for McpClientConfig
impl UnsafeUnpin for McpClientConfig
impl UnwindSafe for McpClientConfig
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
impl<T> CacheValue for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more