(&self, config: McpServerConfig)
| 234 | } |
| 235 | |
| 236 | async fn connect_stdio_inner(&self, config: McpServerConfig) -> Result<(), McpClientError> { |
| 237 | let transport = StdioTransport::new(&config.command, &config.args, config.env).await?; |
| 238 | { |
| 239 | let mut t = self.transport.lock().await; |
| 240 | *t = Some(Box::new(transport)); |
| 241 | } |
| 242 | self.initialize().await?; |
| 243 | self.load_tools().await?; |
| 244 | Ok(()) |
| 245 | } |
| 246 | pub async fn connect_http( |
| 247 | &self, |
| 248 | url: String, |
no test coverage detected