UNPKG

@myea/aem-mcp-handler

Version:

Advanced AEM MCP request handler with intelligent search, multi-locale support, and comprehensive content management capabilities

41 lines (40 loc) 1.08 kB
import { AEMConnector } from './aem-connector.js'; interface MCPMethod { name: string; description: string; parameters: string[]; } export declare class MCPRequestHandler { private aemConnector; private searchFeedbackLoop; constructor(aemConnector: AEMConnector); /** * Handle incoming JSON-RPC method calls */ handleRequest(method: string, params: any): Promise<any>; /** * Get list of pages under a site root with optional depth */ private listPages; /** * Mock workflow status (since we don't have real workflow tracking) */ private getWorkflowStatus; /** * Get list of available MCP methods */ getAvailableMethods(): MCPMethod[]; /** * Enhanced page search with comprehensive feedback loop */ private enhancedPageSearch; /** * Generate alternative search terms for retry attempts */ private generateAlternativeSearchTerms; /** * Enhanced search content with comprehensive fallback strategies */ private searchContent; } export {};