pub struct McpToolset {
pub name: String,
pub url: String,
pub authorization_token: Option<String>,
pub default_config: McpToolConfig,
pub configs: BTreeMap<String, McpToolConfig>,
pub require_approval: Option<bool>,
}Expand description
Configuration for a URL-based remote MCP toolset.
This type covers the supported neutral settings. Definitions with additional settings,
such as Responses headers, server descriptions, or conditional approval rules, belong
in Tool::Provider with the complete original definition.
Fields§
§name: StringServer identity used by MCP calls.
url: StringRemote MCP endpoint.
Credential sent to the MCP server, when supplied.
default_config: McpToolConfigDefaults for tools without a per-tool setting in configs.
configs: BTreeMap<String, McpToolConfig>Per-tool settings, keyed by tool name. Each omitted setting inherits
from default_config, then falls back to the provider’s default.
require_approval: Option<bool>Whether all calls require approval (true) or none do (false).
Absence retains provider defaults. Definitions with conditional approval rules
are stored in full as Tool::Provider, rather than as this type.
Trait Implementations§
Source§impl Clone for McpToolset
impl Clone for McpToolset
Source§fn clone(&self) -> McpToolset
fn clone(&self) -> McpToolset
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more