UNPKG

@andrewlwn77/s3-upload-mcp-server

Version:

Pure Node.js MCP server for uploading images to AWS S3 with high-performance validation using Sharp and file-type

16 lines 1.15 kB
import { S3UploadResult, S3FileUploadResult, PublicUrlResult, BucketCreationResult, BucketPolicyResult, S3Response } from '../types'; export declare class S3Client { private config; private logger; private client; constructor(); private mapAwsError; uploadImageData(imageData: Buffer, key: string, bucket: string, contentType: string): Promise<S3Response<S3UploadResult>>; uploadFile(filePath: string, key: string, bucket: string): Promise<S3Response<S3FileUploadResult>>; generatePresignedUrl(bucket: string, key: string, expiration?: number): Promise<S3Response<PublicUrlResult>>; createBucket(bucketName: string, region?: string, enablePublicRead?: boolean): Promise<S3Response<BucketCreationResult>>; setBucketPublicReadPolicy(bucketName: string): Promise<S3Response<BucketPolicyResult>>; generatePresignedUploadUrl(bucket: string, key: string, contentType: string, expiration?: number): Promise<S3Response<PublicUrlResult>>; uploadImageDataViaUrl(imageData: Buffer, key: string, bucket: string, contentType: string): Promise<S3Response<S3UploadResult>>; } //# sourceMappingURL=s3-client.d.ts.map