(&self)
| 854 | } |
| 855 | |
| 856 | pub async fn list(&self) -> Vec<(String, Arc<McpClient>)> { |
| 857 | self.clients |
| 858 | .read() |
| 859 | .await |
| 860 | .iter() |
| 861 | .map(|(k, v)| (k.clone(), v.clone())) |
| 862 | .collect() |
| 863 | } |
| 864 | |
| 865 | pub fn tool_registry(&self) -> Arc<McpToolRegistry> { |
| 866 | self.tool_registry.clone() |