@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
48 lines • 1.74 kB
TypeScript
/**
* Entity Creation Templates
* @description Comprehensive templates for creating Optimizely entities with placeholder-based approach.
* AI agents fill in {FILL: description} placeholders instead of guessing API structures.
*
* Template Philosophy:
* - {FILL: description} = Required field that AI agent must fill
* - {OPTIONAL: description} = Optional field that can be omitted
* - Platform-specific templates based on is_flags_enabled project property
*
* @author Optimizely MCP Server
* @version 1.0.0
*/
export interface TemplateMetadata {
platform: 'feature' | 'web' | 'both';
complexity: 'simple' | 'medium' | 'complex' | 'minimal';
description: string;
requiredFields: string[];
optionalFields: string[];
apiCalls: number;
dependencies?: string[];
}
export interface EntityTemplate {
metadata: TemplateMetadata;
template: any;
examples?: any[];
}
export interface EntityTemplates {
[entityType: string]: EntityTemplate;
}
/**
* Comprehensive Entity Creation Templates
* Organized by complexity and platform availability
*/
export declare const ENTITY_TEMPLATES: EntityTemplates;
/**
* Get templates available for a specific platform
* @param isFeatureExperimentation - Whether project has Feature Experimentation enabled
* @returns Available entity templates for the platform
*/
export declare function getAvailableTemplates(isFeatureExperimentation: boolean): Record<string, EntityTemplate>;
/**
* Get template placeholders that need to be filled
* @param template - Template object to analyze
* @returns Array of placeholder descriptions
*/
export declare function getTemplatePlaceholders(template: any): string[];
//# sourceMappingURL=EntityTemplates.d.ts.map