• Generic MCP server function for any package

    Parameters

    • packageName: string

      The npm package name of the MCP server

    • config: McpServerConfig = {}

      Configuration object with environment variables and optional sampling handler

    • Optionalname: string

      Optional custom name for the client

    Returns McpToolset