pub struct McpServerConfigHttp {Show 27 fields
pub auth: Option<Value>,
pub config_warnings: Option<Vec<String>>,
pub defer_tools: Option<McpServerConfigDeferTools>,
pub disable_secret_masking: Option<bool>,
pub disable_tool_cache: Option<bool>,
pub display_name: Option<String>,
pub events: Option<Vec<String>>,
pub exclude_tools: Option<Vec<String>>,
pub filter_mapping: Option<Value>,
pub headers: Option<HashMap<String, String>>,
pub headers_refresh_ttl_ms: Option<i64>,
pub is_default_server: Option<bool>,
pub notifications: Option<Vec<String>>,
pub oauth_client_id: Option<String>,
pub oauth_grant_type: Option<McpServerConfigHttpOauthGrantType>,
pub oauth_public_client: Option<bool>,
pub oidc: Option<Value>,
pub safe_for_telemetry: Option<Value>,
pub source: Option<McpServerSource>,
pub source_path: Option<String>,
pub source_plugin: Option<String>,
pub source_plugin_spec: Option<bool>,
pub source_plugin_version: Option<String>,
pub timeout: Option<i64>,
pub tools: Option<Vec<String>>,
pub type: Option<McpServerConfigHttpType>,
pub url: String,
}Expand description
Remote MCP server configuration accessed over HTTP or SSE.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§auth: Option<Value>Set to true to use defaults, or provide an object with additional auth or OIDC settings.
config_warnings: Option<Vec<String>>Configuration warnings recorded while loading the server.
defer_tools: Option<McpServerConfigDeferTools>Controls if tools provided by this server can be loaded on demand via tool search (auto) or always included in the initial tool list (never)
disable_secret_masking: Option<bool>Whether secret masking is disabled for calls to this server.
disable_tool_cache: Option<bool>Set to true to disable persisted MCP tool snapshots for this server. Live tool discovery is unaffected.
display_name: Option<String>Optional human-readable server name.
events: Option<Vec<String>>Event types this server receives as Copilot notifications.
exclude_tools: Option<Vec<String>>Tool names excluded after the include filter is applied.
filter_mapping: Option<Value>Content filtering mode to apply to all tools, or a map of tool name to content filtering mode.
headers: Option<HashMap<String, String>>HTTP headers to include in requests to the remote MCP server.
headers_refresh_ttl_ms: Option<i64>Dynamic-header refresh cache lifetime in milliseconds.
is_default_server: Option<bool>Whether this server is a built-in fallback used when the user has not configured their own server.
notifications: Option<Vec<String>>Copilot notification types this server may send to the host.
oauth_client_id: Option<String>OAuth client ID for a pre-registered remote MCP OAuth client.
oauth_grant_type: Option<McpServerConfigHttpOauthGrantType>OAuth grant type to use when authenticating to the remote MCP server.
oauth_public_client: Option<bool>Whether the configured OAuth client is public and does not require a client secret.
oidc: Option<Value>Set to true to use defaults, or provide an object with additional auth or OIDC settings.
safe_for_telemetry: Option<Value>Telemetry-obfuscation policy for this server’s tools.
source: Option<McpServerSource>The origin of this server configuration.
source_path: Option<String>Source file path recorded while loading the config.
source_plugin: Option<String>Plugin that provided this server.
source_plugin_spec: Option<bool>Whether the providing plugin uses the Open Plugin Spec.
source_plugin_version: Option<String>Version of the plugin that provided this server.
timeout: Option<i64>Timeout in milliseconds for tool discovery and tool calls.
tools: Option<Vec<String>>Tools to include. Defaults to all tools if not specified.
type: Option<McpServerConfigHttpType>Remote transport type. Defaults to “http” when omitted.
url: StringURL of the remote MCP server endpoint.
Trait Implementations§
Source§impl Clone for McpServerConfigHttp
impl Clone for McpServerConfigHttp
Source§fn clone(&self) -> McpServerConfigHttp
fn clone(&self) -> McpServerConfigHttp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more