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

Method register

crates/opencode-mcp/src/tool.rs:42–45  ·  view source on GitHub ↗
(&self, tool: McpTool)

Source from the content-addressed store, hash-verified

40 }
41
42 pub async fn register(&self, tool: McpTool) {
43 let mut tools = self.tools.write().await;
44 tools.insert(tool.full_name.clone(), tool);
45 }
46
47 pub async fn register_batch(
48 &self,

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected