pub struct McpClientConfig {
pub enabled: bool,
pub ui: McpUiConfig,
pub providers: Vec<McpProviderConfig>,
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 security: McpSecurityConfig,
}Expand description
Top-level MCP configuration
Fields§
§enabled: boolEnable MCP functionality
ui: McpUiConfigMCP UI display configuration
providers: Vec<McpProviderConfig>Configured MCP providers
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: u64Request timeout in seconds
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
security: McpSecurityConfigSecurity configuration for MCP
Trait Implementations§
Source§impl Clone for McpClientConfig
impl Clone for McpClientConfig
Source§fn clone(&self) -> McpClientConfig
fn clone(&self) -> McpClientConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 McpClientConfig
impl Debug for McpClientConfig
Source§impl Default for McpClientConfig
impl Default for McpClientConfig
Source§impl<'de> Deserialize<'de> for McpClientConfig
impl<'de> Deserialize<'de> for McpClientConfig
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
Source§impl JsonSchema for McpClientConfig
impl JsonSchema for McpClientConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for McpClientConfig
impl RefUnwindSafe for McpClientConfig
impl Send for McpClientConfig
impl Sync for McpClientConfig
impl Unpin 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
Mutably borrows from an owned value. Read more