@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
34 lines • 1.27 kB
TypeScript
/**
* Analyze Data Tool - Individual Module
* @description Delegates to IntelligentQueryEngine for data analysis
* @since 2025-08-04
* @author Tool Modularization Team
*
* Migration Status: COMPLETED
* Original Method: OptimizelyMCPTools.analyzeData
* Complexity: HIGH
* Dependencies: logger, errorMapper, storage, various analytics imports
*/
import { ToolDefinition, ToolDependencies } from '../types/ToolDefinition.js';
interface AnalyzeDataDependencies extends ToolDependencies {
storage: {
query: (sql: string, params: any[]) => Promise<any[]>;
get: (sql: string, params: any[]) => Promise<any>;
run: (sql: string, params: any[]) => Promise<void>;
all?: (sql: string, params: any[]) => Promise<any[]>;
getDatabase: () => any;
};
handleRecentChangesQuery?: (args: {
structured_query: any;
project_id?: string;
options?: any;
}) => Promise<any>;
}
/**
* Creates the Analyze Data tool with injected dependencies
* @param deps - Injected dependencies (storage, logger, errorMapper, etc.)
* @returns Tool definition with handler
*/
export declare function createAnalyzeDataTool(deps: AnalyzeDataDependencies): ToolDefinition;
export {};
//# sourceMappingURL=AnalyzeData.d.ts.map