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

Method list

crates/opencode-mcp/src/tool.rs:69–72  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

67 }
68
69 pub async fn list(&self) -> Vec<McpTool> {
70 let tools = self.tools.read().await;
71 tools.values().cloned().collect()
72 }
73
74 pub async fn list_for_server(&self, server_name: &str) -> Vec<McpTool> {
75 let tools = self.tools.read().await;

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected