UNPKG

ideogram-mcp-server

Version:
81 lines (80 loc) 3.24 kB
/** * Remix Tool * Image remix tool implementation using FastMCP framework */ import { z } from 'zod'; import { IdeogramApiClient } from '../utils/api-client.js'; import { FileManager } from '../utils/file-manager.js'; declare const remixSchema: z.ZodObject<{ image_file: z.ZodString; prompt: z.ZodString; model: z.ZodOptional<z.ZodEnum<["V_1", "V_2", "V_2_TURBO"]>>; magic_prompt_option: z.ZodOptional<z.ZodEnum<["AUTO", "ON", "OFF"]>>; seed: z.ZodOptional<z.ZodNumber>; style_type: z.ZodOptional<z.ZodEnum<["AUTO", "GENERAL", "REALISTIC", "DESIGN", "RENDER_3D", "ANIME"]>>; num_images: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { prompt: string; image_file: string; model?: "V_1" | "V_2" | "V_2_TURBO" | undefined; magic_prompt_option?: "AUTO" | "ON" | "OFF" | undefined; seed?: number | undefined; style_type?: "AUTO" | "GENERAL" | "REALISTIC" | "DESIGN" | "RENDER_3D" | "ANIME" | undefined; num_images?: number | undefined; }, { prompt: string; image_file: string; model?: "V_1" | "V_2" | "V_2_TURBO" | undefined; magic_prompt_option?: "AUTO" | "ON" | "OFF" | undefined; seed?: number | undefined; style_type?: "AUTO" | "GENERAL" | "REALISTIC" | "DESIGN" | "RENDER_3D" | "ANIME" | undefined; num_images?: number | undefined; }>; export declare function createRemixTool(apiClient: IdeogramApiClient, fileManager: FileManager): { name: string; description: string; parameters: { readonly "~standard": any; readonly type: "object"; readonly properties: { readonly image_file: { readonly type: "string"; readonly description: "Path to the image file to remix"; }; readonly prompt: { readonly type: "string"; readonly description: "Text prompt for the remix"; }; readonly model: { readonly type: "string"; readonly enum: readonly ["V_1", "V_2", "V_2_TURBO"]; readonly description: "Model version to use"; }; readonly magic_prompt_option: { readonly type: "string"; readonly enum: readonly ["AUTO", "ON", "OFF"]; readonly description: "Magic prompt enhancement"; }; readonly seed: { readonly type: "number"; readonly minimum: 0; readonly maximum: 2147483647; readonly description: "Random seed for reproducibility"; }; readonly style_type: { readonly type: "string"; readonly enum: readonly ["AUTO", "GENERAL", "REALISTIC", "DESIGN", "RENDER_3D", "ANIME"]; readonly description: "Style type"; }; readonly num_images: { readonly type: "number"; readonly minimum: 1; readonly maximum: 8; readonly description: "Number of images to generate"; }; }; readonly required: readonly ["image_file", "prompt"]; }; execute: (args: unknown) => Promise<string>; }; export { remixSchema };