@myea/aem-mcp-handler
Version:
Advanced AEM MCP request handler with intelligent search, multi-locale support, and comprehensive content management capabilities
43 lines (42 loc) • 1.21 kB
TypeScript
export interface AEMConfiguration {
contentPaths: {
sitesRoot: string;
assetsRoot: string;
templatesRoot: string;
experienceFragmentsRoot: string;
};
replication: {
publisherUrls: string[];
defaultReplicationAgent: string;
};
components: {
allowedTypes: string[];
defaultProperties: Record<string, any>;
};
queries: {
maxLimit: number;
defaultLimit: number;
timeoutMs: number;
};
validation: {
maxDepth: number;
allowedLocales: string[];
};
}
export declare const DEFAULT_AEM_CONFIG: AEMConfiguration;
/**
* Get AEM configuration with environment overrides
*/
export declare function getAEMConfig(): AEMConfiguration;
/**
* Validate if a path is within allowed content roots
*/
export declare function isValidContentPath(path: string, config?: AEMConfiguration): boolean;
/**
* Validate if a component type is allowed
*/
export declare function isValidComponentType(componentType: string, config?: AEMConfiguration): boolean;
/**
* Validate if a locale is supported
*/
export declare function isValidLocale(locale: string, config?: AEMConfiguration): boolean;