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

    Function registerS3PresignedTools

    • Register S3-compatible presigned object URL tools.

      Parameters

      • server: ToolRegistrar

        Tool registrar receiving presigned URL tools.

      • s3: Pick<B2S3PeerClient, "presignObjectUrl">

        Repository-owned S3-compatible client facade.

      • versions: B2S3VersionGuard

        B2 native version guard used for versioned GetObject URLs.

      • config: B2Config

        Server configuration used for destructive policy.

      • options: {
            allowExplicitVersionInspection?: boolean;
            allowGetObjectUrl?: boolean;
            allowPutObjectUrl?: boolean;
        } = {}

        Capability-derived controls for allowed URL operations.

      Returns void

      Presigned URLs are the preferred data path for real object uploads and downloads because object bytes bypass the MCP server. PutObject URLs are destructive-gated as bearer capabilities and require a signed non-browser executable content type.

      registerS3PresignedTools(registrar, s3Client, b2Client, config);