MCPcopy Create free account
hub / github.com/AI45Lab/Code / get_server_tools

Method get_server_tools

core/src/mcp/manager.rs:404–410  ·  view source on GitHub ↗

Get cached tools for a specific connected server.

(&self, name: &str)

Source from the content-addressed store, hash-verified

402
403 /// Get cached tools for a specific connected server.
404 pub async fn get_server_tools(&self, name: &str) -> Vec<McpTool> {
405 let clients = self.clients.read().await;
406 match clients.get(name) {
407 Some(client) => client.get_cached_tools().await,
408 None => Vec::new(),
409 }
410 }
411}
412
413impl Default for McpManager {

Callers 1

add_mcp_serverMethod · 0.80

Calls 2

get_cached_toolsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected