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

    Function registerKeyTools

    • Register B2 application-key management tools.

      Parameters

      • server: ToolRegistrar

        Tool registrar receiving key tools.

      • client: B2Client

        Repository-owned B2 native client.

      • auth: B2AuthManager

        Auth manager used for account-scoped key requests.

      • config: B2Config

        Server configuration for secret-sink and destructive policy.

      • options: DurableSecretRegistrationOptions = {}

        Registration controls; registerDurableSecretSchemas forces the full b2_create_key schema even without an active sink (discovery mode, where execution is guarded separately) so tools/list advertises real inputs.

      Returns void

      Key creation can produce durable one-time credential material. Real create handlers are registered only when an inline or file secret sink is active; otherwise createServer installs compatibility stubs. Key deletion and key creation both pass through the destructive gate.

      registerKeyTools(registrar, b2Client, auth, config);