(script_path: &Path)
| 1124 | } |
| 1125 | |
| 1126 | fn sample_bootstrap(script_path: &Path) -> McpClientBootstrap { |
| 1127 | let config = ScopedMcpServerConfig { |
| 1128 | scope: ConfigSource::Local, |
| 1129 | config: McpServerConfig::Stdio(McpStdioServerConfig { |
| 1130 | command: "/bin/sh".to_string(), |
| 1131 | args: vec![script_path.to_string_lossy().into_owned()], |
| 1132 | env: BTreeMap::from([("MCP_TEST_TOKEN".to_string(), "secret-value".to_string())]), |
| 1133 | }), |
| 1134 | }; |
| 1135 | McpClientBootstrap::from_scoped_config("stdio server", &config) |
| 1136 | } |
| 1137 | |
| 1138 | fn script_transport(script_path: &Path) -> crate::mcp_client::McpStdioTransport { |
| 1139 | crate::mcp_client::McpStdioTransport { |
no outgoing calls