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

Function group_mcp_tools_by_server

core/src/agent_api/capabilities.rs:268–274  ·  view source on GitHub ↗
(all_tools: Vec<(String, McpTool)>)

Source from the content-addressed store, hash-verified

266}
267
268fn group_mcp_tools_by_server(all_tools: Vec<(String, McpTool)>) -> HashMap<String, Vec<McpTool>> {
269 let mut by_server = HashMap::new();
270 for (server, tool) in all_tools {
271 by_server.entry(server).or_insert_with(Vec::new).push(tool);
272 }
273 by_server
274}
275
276fn build_context_providers(
277 opts: &SessionOptions,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected