@backblaze-labs/b2-mcp
    Preparing search index...

    Function registerInsightTools

    • Register read-only storage-activity insight tools.

      Parameters

      • server: ToolRegistrar

        Tool registrar receiving insight tools.

      • b2Client: B2Client

        B2 native client for bucket resolution and live listings.

      • auth: B2AuthManager

        B2 auth manager used to derive the reports bucket.

      • reportClient: ReportObjectClient = ...

        Optional report client override for tests.

      Returns void

      Usage growth and egress leaders read preexisting B2 usage-report CSVs when available; largest-file and unfinished-upload tools use bounded live listings. All work remains scoped to the caller's configured credentials.

      registerInsightTools(registrar, b2Client, auth, reportClient);