@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
25 lines • 1.2 kB
TypeScript
/**
* Update Ruleset Tool - Individual Module
* @description Updates complex rule configurations for flags and experiments
* @since 2025-08-04
* @author Tool Modularization Team
*
* Migration Status: COMPLETED
* Original Method: Delegates to manageEntityLifecycle
* Complexity: HIGH
* Dependencies: logger, errorMapper, manageEntityLifecycle, getRuleset, transformRuleForFeatureExperimentation
*/
import { ToolDefinition, ToolDependencies } from '../types/ToolDefinition.js';
interface UpdateRulesetDependencies extends ToolDependencies {
manageEntityLifecycle: (operation: string, entityType: string, entityData?: any, entityId?: string, projectId?: string, options?: any) => Promise<any>;
getRuleset: (projectId: string, flagKey: string, environmentKey: string) => Promise<any>;
transformRuleForFeatureExperimentation: (rule: any) => any;
}
/**
* Creates the Update Ruleset tool with injected dependencies
* @param deps - Injected dependencies (storage, logger, errorMapper, etc.)
* @returns Tool definition with handler
*/
export declare function createUpdateRulesetTool(deps: UpdateRulesetDependencies): ToolDefinition;
export {};
//# sourceMappingURL=UpdateRuleset.d.ts.map