UNPKG

solidworks-mcp-server

Version:

Clean Architecture SolidWorks MCP Server - Production-ready with SOLID principles

231 lines 7.33 kB
/** * Template Manager for SolidWorks * Comprehensive drawing sheet format and template management */ import { z } from 'zod'; import { SolidWorksAPI } from '../solidworks/api.js'; /** * Template management tools for extracting and applying drawing formats */ export declare const templateManagerTools: ({ name: string; description: string; inputSchema: z.ZodObject<{ filePath: z.ZodString; includeFormat: z.ZodDefault<z.ZodBoolean>; includeProperties: z.ZodDefault<z.ZodBoolean>; includeStyles: z.ZodDefault<z.ZodBoolean>; includeViews: z.ZodDefault<z.ZodBoolean>; saveAs: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { filePath: string; includeFormat: boolean; includeProperties: boolean; includeStyles: boolean; includeViews: boolean; saveAs?: string | undefined; }, { filePath: string; includeFormat?: boolean | undefined; includeProperties?: boolean | undefined; includeStyles?: boolean | undefined; includeViews?: boolean | undefined; saveAs?: string | undefined; }>; handler: (args: any, swApi: SolidWorksAPI) => string | { success: boolean; message: string; templateData: any; propertyCount: number; viewCount: any; }; } | { name: string; description: string; inputSchema: z.ZodObject<{ targetFile: z.ZodString; templateData: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>; templateFile: z.ZodOptional<z.ZodString>; applyFormat: z.ZodDefault<z.ZodBoolean>; applyProperties: z.ZodDefault<z.ZodBoolean>; applyStyles: z.ZodDefault<z.ZodBoolean>; overwriteExisting: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { targetFile: string; applyFormat: boolean; applyProperties: boolean; applyStyles: boolean; overwriteExisting: boolean; templateData?: {} | undefined; templateFile?: string | undefined; }, { targetFile: string; templateData?: {} | undefined; templateFile?: string | undefined; applyFormat?: boolean | undefined; applyProperties?: boolean | undefined; applyStyles?: boolean | undefined; overwriteExisting?: boolean | undefined; }>; handler: (args: any, swApi: SolidWorksAPI) => string | { success: boolean; message: string; changedItems: string[]; changeCount: number; }; } | { name: string; description: string; inputSchema: z.ZodObject<{ parentFile: z.ZodString; childFiles: z.ZodArray<z.ZodString, "many">; includeSubfolders: z.ZodDefault<z.ZodBoolean>; filePattern: z.ZodDefault<z.ZodString>; applyFormat: z.ZodDefault<z.ZodBoolean>; applyProperties: z.ZodDefault<z.ZodBoolean>; applyStyles: z.ZodDefault<z.ZodBoolean>; overwriteExisting: z.ZodDefault<z.ZodBoolean>; saveReport: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { includeSubfolders: boolean; filePattern: string; applyFormat: boolean; applyProperties: boolean; applyStyles: boolean; overwriteExisting: boolean; parentFile: string; childFiles: string[]; saveReport?: string | undefined; }, { parentFile: string; childFiles: string[]; includeSubfolders?: boolean | undefined; filePattern?: string | undefined; applyFormat?: boolean | undefined; applyProperties?: boolean | undefined; applyStyles?: boolean | undefined; overwriteExisting?: boolean | undefined; saveReport?: string | undefined; }>; handler: (args: any, swApi: SolidWorksAPI) => Promise<string | { success: boolean; message: string; summary: { total: number; successful: number; failed: number; }; report: string | { startTime: string; parentFile: any; processedFiles: any[]; failedFiles: any[]; summary: { total: number; successful: number; failed: number; }; }; }>; } | { name: string; description: string; inputSchema: z.ZodObject<{ file1: z.ZodString; file2: z.ZodString; compareFormat: z.ZodDefault<z.ZodBoolean>; compareProperties: z.ZodDefault<z.ZodBoolean>; compareStyles: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { file1: string; file2: string; compareFormat: boolean; compareProperties: boolean; compareStyles: boolean; }, { file1: string; file2: string; compareFormat?: boolean | undefined; compareProperties?: boolean | undefined; compareStyles?: boolean | undefined; }>; handler: (args: any, swApi: SolidWorksAPI) => string | { success: boolean; message: string; file1: any; file2: any; differences: { format: any[]; properties: any[]; styles: any[]; }; differenceCount: { format: number; properties: number; styles: number; total: number; }; }; } | { name: string; description: string; inputSchema: z.ZodObject<{ sourceFile: z.ZodString; templateName: z.ZodString; category: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; libraryPath: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { sourceFile: string; templateName: string; category: string; tags: string[]; libraryPath: string; description?: string | undefined; }, { sourceFile: string; templateName: string; description?: string | undefined; category?: string | undefined; tags?: string[] | undefined; libraryPath?: string | undefined; }>; handler: (args: any, swApi: SolidWorksAPI) => string | { success: boolean; message: string; path: any; category: any; tags: any; }; } | { name: string; description: string; inputSchema: z.ZodObject<{ libraryPath: z.ZodDefault<z.ZodString>; category: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { libraryPath: string; category?: string | undefined; tags?: string[] | undefined; }, { category?: string | undefined; tags?: string[] | undefined; libraryPath?: string | undefined; }>; handler: (args: any) => string | { success: boolean; message: string; templates: never[]; categories?: undefined; allTags?: undefined; } | { success: boolean; message: string; templates: any; categories: unknown[]; allTags: unknown[]; }; })[]; //# sourceMappingURL=template-manager.d.ts.map