UNPKG

@simonecoelhosfo/optimizely-mcp-server

Version:

Optimizely MCP Server for AI assistants with integrated CLI tools

40 lines 1.63 kB
/** * Get Orchestration Samples Tool - Individual Module * @description Delegates to OrchestrationSamplesProvider for template samples * @since 2025-08-04 * @author Tool Modularization Team * * Migration Status: PENDING * Original Method: Delegates to OrchestrationSamplesProvider * Complexity: LOW * Dependencies: logger, errorMapper */ /** * Creates the Get Orchestration Samples tool with injected dependencies * @param deps - Injected dependencies (storage, logger, errorMapper, etc.) * @returns Tool definition with handler */ export function createGetOrchestrationSamplesTool(deps) { return { name: 'get_orchestration_samples', requiresCache: false, category: 'documentation', handler: async (args) => { // TODO: Migrate implementation from OptimizelyMCPTools - delegates to OrchestrationSamplesProvider // This is a placeholder implementation deps.logger.info('GetOrchestrationSamples: Executing tool', { args }); try { // TODO: Add actual implementation here throw new Error('GetOrchestrationSamples tool not yet implemented - pending migration'); } catch (error) { deps.logger.error({ error: error.message }, 'GetOrchestrationSamples: Tool execution failed'); throw deps.errorMapper.toMCPError(error, { operation: 'Get orchestration template samples', tool: 'get_orchestration_samples' }); } } }; } //# sourceMappingURL=GetOrchestrationSamples.js.map