UNPKG

@tsavo/printify-mcp

Version:

A Model Context Protocol (MCP) server for integrating AI assistants with Printify's print-on-demand platform

36 lines (35 loc) 864 B
/** * Printify upload service for Printify MCP */ import { PrintifyAPI } from '../printify-api.js'; /** * Determine the source type of an image input */ export declare function determineImageSourceType(source: string): 'url' | 'file' | 'base64'; /** * Upload an image to Printify from various sources */ export declare function uploadImageToPrintify(printifyClient: PrintifyAPI, fileName: string, source: string): Promise<{ success: boolean; image: any; response: { content: { type: string; text: string; }[]; }; error?: undefined; errorResponse?: undefined; } | { success: boolean; error: any; errorResponse: { content: { type: string; text: string; }[]; isError: boolean; }; image?: undefined; response?: undefined; }>;