MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / list

Method list

crates/opencode-mcp/src/client.rs:856–863  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected