• Retrieves and converts tools from an MCP server.

    This function:

    1. Connects to the MCP server (local or sse).
    2. Retrieves all available tools.
    3. Converts them into BaseTool instances.
    4. Returns them as a BaseTool array.

    Parameters

    Returns Promise<BaseTool[]>