UNPKG

@moeloubani/libvips-mcp-server

Version:

Enhanced MCP server for libvips image processing library with 300+ operations and advanced capabilities

738 lines 20.7 kB
#!/usr/bin/env node /** * Demo: Enhanced libvips MCP Server using wasm-vips * * This shows the additional features we'd gain by switching from Sharp to wasm-vips */ declare const advancedToolsWithWasmVips: ({ name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_path: { type: string; }; kernel_size: { type: string; default: number; }; iterations: { type: string; default: number; }; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; color?: undefined; width?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; threshold?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_path: { type: string; }; kernel_size: { type: string; default: number; }; iterations?: undefined; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; color?: undefined; width?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; threshold?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_path: { type: string; }; inverse: { type: string; default: boolean; }; kernel_size?: undefined; iterations?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; color?: undefined; width?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; threshold?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_path: { type: string; }; filter_type: { type: string; enum: string[]; }; cutoff_frequency: { type: string; }; kernel_size?: undefined; iterations?: undefined; inverse?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; color?: undefined; width?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; threshold?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_path: { type: string; }; x1: { type: string; }; y1: { type: string; }; x2: { type: string; }; y2: { type: string; }; color: { type: string; default: string; }; width: { type: string; default: number; }; kernel_size?: undefined; iterations?: undefined; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; threshold?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_path: { type: string; }; x: { type: string; }; y: { type: string; }; radius: { type: string; }; fill: { type: string; default: boolean; }; color: { type: string; default: string; }; kernel_size?: undefined; iterations?: undefined; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; width?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; threshold?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_path: { type: string; }; x: { type: string; }; y: { type: string; }; color: { type: string; default?: undefined; }; tolerance: { type: string; default: number; }; kernel_size?: undefined; iterations?: undefined; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; width?: undefined; radius?: undefined; fill?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; threshold?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_path: { type: string; }; source_space: { type: string; enum: string[]; }; target_space: { type: string; enum: string[]; }; kernel_size?: undefined; iterations?: undefined; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; color?: undefined; width?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; background_color?: undefined; threshold?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_path?: undefined; kernel_size?: undefined; iterations?: undefined; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; color?: undefined; width?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; threshold?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; background_color: { type: string; default: string; }; threshold: { type: string; default: number; }; output_path?: undefined; kernel_size?: undefined; iterations?: undefined; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; color?: undefined; width?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_path: { type: string; }; kernel: { type: string; items: { type: string; items: { type: string; }; }; description: string; }; scale: { type: string; default: number; }; offset: { type: string; default: number; }; kernel_size?: undefined; iterations?: undefined; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; color?: undefined; width?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; threshold?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_path: { type: string; }; method: { type: string; enum: string[]; }; threshold: { type: string; default: number; }; kernel_size?: undefined; iterations?: undefined; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; color?: undefined; width?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { image_paths: { type: string; items: { type: string; }; description: string; }; output_path: { type: string; }; direction: { type: string; enum: string[]; }; blend_width: { type: string; default: number; }; input_path?: undefined; kernel_size?: undefined; iterations?: undefined; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; color?: undefined; width?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; threshold?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; output_dir?: undefined; levels?: undefined; format?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: string; properties: { input_path: { type: string; }; output_dir: { type: string; }; levels: { type: string; default: number; }; format: { type: string; enum: string[]; default: string; }; output_path?: undefined; kernel_size?: undefined; iterations?: undefined; inverse?: undefined; filter_type?: undefined; cutoff_frequency?: undefined; x1?: undefined; y1?: undefined; x2?: undefined; y2?: undefined; color?: undefined; width?: undefined; x?: undefined; y?: undefined; radius?: undefined; fill?: undefined; tolerance?: undefined; source_space?: undefined; target_space?: undefined; background_color?: undefined; threshold?: undefined; kernel?: undefined; scale?: undefined; offset?: undefined; method?: undefined; image_paths?: undefined; direction?: undefined; blend_width?: undefined; }; required: string[]; }; })[]; export { advancedToolsWithWasmVips }; //# sourceMappingURL=wasm-vips-demo.d.ts.map