Skip to main content

connect_stdio_with

Function connect_stdio_with 

Source
pub async fn connect_stdio_with(
    command_str: &str,
    env_vars: &BTreeMap<String, String>,
    clean_env: bool,
) -> Result<McpClient>
Expand description

Connect to an MCP stdio server. When clean_env is true, clear the child environment and keep only PATH/HOME/LANG plus env_vars.