Skip to main content

build_mcp_registration

Function build_mcp_registration 

Source
pub fn build_mcp_registration(
    client: Arc<McpClient>,
    provider: &str,
    tool: &McpToolInfo,
    server_hint: Option<String>,
) -> ToolRegistration
Expand description

Build a ToolRegistration for a remote MCP tool.

Naming strategy:

  • Primary: mcp::<provider>::<tool>
  • Alias: mcp__<provider>__<tool> (sanitized and length-capped for model compatibility).