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

    Function createAuditedToolCallback

    • Wrap a tool handler to emit an audit log entry on invocation: tool name, non-secret credential fingerprint, top-level arg keys, duration, and success/error. Argument values are not logged to avoid leaking file content, bucket data, or credentials.

      Parameters

      • name: string

        MCP tool name being wrapped.

      • original: ToolCallback

        Original tool callback registered by a tool module.

      • config: B2Config

        Server configuration used for redaction and policy.

      • OptionalcontextProviders: DestructiveElicitationContextProviders

        Optional MCP protocol/capability providers used by destructive-operation elicitation.

      Returns ToolCallback

      The wrapped tool callback.

      const audited = createAuditedToolCallback("b2_list_buckets", handler, config);