Backwards-compatible alias for `add_stdio`.
(
&self,
config: McpServerConfig,
)
| 833 | |
| 834 | /// Backwards-compatible alias for `add_stdio`. |
| 835 | pub async fn add_client( |
| 836 | &self, |
| 837 | config: McpServerConfig, |
| 838 | ) -> Result<Arc<McpClient>, McpClientError> { |
| 839 | self.add_stdio(config).await |
| 840 | } |
| 841 | |
| 842 | pub async fn get(&self, name: &str) -> Option<Arc<McpClient>> { |
| 843 | self.clients.read().await.get(name).cloned() |