pub struct McpServerConfigStdio {Show 25 fields
pub args: Option<Vec<String>>,
pub auth: Option<Value>,
pub command: String,
pub config_warnings: Option<Vec<String>>,
pub cwd: Option<String>,
pub defer_tools: Option<McpServerConfigDeferTools>,
pub disable_secret_masking: Option<bool>,
pub disable_tool_cache: Option<bool>,
pub display_name: Option<String>,
pub env: Option<HashMap<String, String>>,
pub events: Option<Vec<String>>,
pub exclude_tools: Option<Vec<String>>,
pub filter_mapping: Option<Value>,
pub is_default_server: Option<bool>,
pub notifications: Option<Vec<String>>,
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<McpServerConfigStdioType>,
}Expand description
Stdio MCP server configuration launched as a child process.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§args: Option<Vec<String>>Command-line arguments passed to the Stdio MCP server process.
auth: Option<Value>Set to true to use defaults, or provide an object with additional auth or OIDC settings.
command: StringExecutable command used to start the Stdio MCP server process.
config_warnings: Option<Vec<String>>Configuration warnings recorded while loading the server.
cwd: Option<String>Working directory for the Stdio MCP server process.
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.
env: Option<HashMap<String, String>>Environment variables to pass to the Stdio MCP server process.
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.
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.
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<McpServerConfigStdioType>Local transport type. Defaults to stdio when omitted.
Trait Implementations§
Source§impl Clone for McpServerConfigStdio
impl Clone for McpServerConfigStdio
Source§fn clone(&self) -> McpServerConfigStdio
fn clone(&self) -> McpServerConfigStdio
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more