@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
142 lines • 4.11 kB
TypeScript
import { SampleType, WorkflowType, Platform } from '../templates/orchestration/samples/SampleRegistry.js';
export interface GetOrchestrationSamplesParams {
operation?: 'get' | 'list' | 'registry' | 'search' | 'troubleshoot' | 'concepts';
sample_type?: SampleType;
workflow_type?: WorkflowType;
complexity?: number;
platform?: Platform;
include_explanations?: boolean;
search_query?: string;
sample_id?: string;
registry_filter?: {
entity_type?: string;
platform?: Platform;
operation?: string;
};
}
export interface OrchestrationSampleResponse {
operation: 'get' | 'list' | 'registry' | 'search' | 'troubleshoot' | 'concepts';
timestamp: string;
discovery_mode?: boolean;
message?: string;
quick_start?: Record<string, {
command: string;
description: string;
}>;
available_workflows?: any;
learning_path?: string[];
platform_filter?: Platform;
available_samples?: any;
total_samples?: number;
sample_type?: SampleType;
workflow_type?: WorkflowType;
complexity?: number;
template?: any;
structure_guide?: Record<string, string>;
pattern_explanation?: any;
implementation_notes?: any;
best_practices?: string[];
common_mistakes?: Array<{
mistake: string;
example: string;
solution: string;
}>;
customization_guide?: Array<{
path: string;
description: string;
example: string;
}>;
next_steps?: string[];
related_tools?: Record<string, string>;
error?: string;
available_workflow_types?: string[];
workflow_options?: Array<{
workflow_type: string;
description: string;
available_complexities: number[];
available_types: any[];
entity_count: string;
sample_command: string;
}>;
immediate_solutions?: Array<{
command: string;
description: string;
}>;
quick_fixes?: Record<string, string | null>;
suggestion?: string;
system_templates?: any;
total_templates?: number;
registry_filter_applied?: any;
search_query?: string;
search_results?: Array<{
type: string;
name: string;
description: string;
relevance: number;
content?: any;
}>;
total_results?: number;
troubleshooting?: {
common_errors?: any[];
validation_checklist?: string[];
debugging_tips?: string[];
};
concepts?: any;
concept_categories?: string[];
}
/**
* Provider for orchestration sample templates
* Educational tool for understanding orchestration structure
*/
export declare class OrchestrationSamplesProvider {
/**
* Get orchestration samples for learning and reference
*/
getOrchestrationSamples(params?: GetOrchestrationSamplesParams): Promise<OrchestrationSampleResponse>;
/**
* Build discovery response when no parameters provided
*/
private buildDiscoveryResponse;
/**
* Build list response showing available samples
*/
private buildListResponse;
/**
* Build response for a specific sample
*/
private buildSampleResponse;
/**
* Build error response with helpful information
*/
private buildErrorResponse;
/**
* Get default structure guide for skeletons
*/
private getDefaultStructureGuide;
/**
* Count entities that will be created by a template
*/
private countEntities;
/**
* Build response for system template registry
*/
private buildRegistryResponse;
/**
* Build response for search operation
*/
private buildSearchResponse;
/**
* Calculate relevance score for search
*/
private calculateRelevance;
/**
* Build response for troubleshooting
*/
private buildTroubleshootingResponse;
/**
* Build response for concepts
*/
private buildConceptsResponse;
}
export declare const orchestrationSamplesProvider: OrchestrationSamplesProvider;
//# sourceMappingURL=OrchestrationSamplesProvider.d.ts.map