build_mcp_tool_schemas

Function build_mcp_tool_schemas 

Source
pub fn build_mcp_tool_schemas(
    server_tools: &[(String, Vec<Tool>)],
) -> ProviderToolSchemas
Expand description

Build provider tool schemas from dynamically-discovered MCP tools.

Each MCP Tool already carries a JSON Schema input_schema, so we wrap it in the provider-specific envelope. The tool name is namespaced as mcp__<server>__<tool> so the pipeline can route calls back to the correct MCP server.