UNPKG

@simonecoelhosfo/optimizely-mcp-server

Version:

Optimizely MCP Server for AI assistants with integrated CLI tools

35 lines 952 B
/** * Schema Parser * @description Parses TypeScript schema files to extract JSON schemas * * Purpose: Safely parse fields.generated.ts without using eval() * This parser extracts schema definitions from TypeScript code. * * @author Optimizely MCP Server * @version 1.0.0 */ export declare class SchemaParser { private logger; /** * Parse schemas from TypeScript file content */ parseSchemas(content: string): Record<string, any>; /** * Remove TypeScript type annotations */ private removeTypeAnnotations; /** * Convert TypeScript object to JSON */ private convertToJson; /** * Extract individual schemas as fallback */ private extractIndividualSchemas; /** * Load and parse schemas from file */ loadSchemasFromFile(filePath: string): Record<string, any>; } export declare const schemaParser: SchemaParser; //# sourceMappingURL=SchemaParser.d.ts.map