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

Method get

crates/opencode-mcp/src/client.rs:842–844  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

840 }
841
842 pub async fn get(&self, name: &str) -> Option<Arc<McpClient>> {
843 self.clients.read().await.get(name).cloned()
844 }
845
846 pub async fn remove(&self, name: &str) -> Result<(), McpClientError> {
847 let client = self.clients.write().await.remove(name);

Callers 3

get_statusMethod · 0.45
get_logsMethod · 0.45
restartMethod · 0.45

Calls 1

readMethod · 0.80

Tested by

no test coverage detected