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

    Function createAuditedPromptCallback

    • Wrap a prompt handler to emit a side-effect-free prompt.get audit event.

      Parameters

      • name: string

        MCP prompt name being wrapped.

      • original: PromptCallback

        Original prompt callback registered by a prompt module.

      • config: B2Config

        Server configuration used for redaction and credential labels.

      Returns PromptCallback

      The wrapped prompt callback.

      Prompt arguments are model-visible user input, but logs still record only top-level argument keys. Values are intentionally omitted to avoid leaking bucket names, credential identifiers, webhook details, or free-form text.