UNPKG

mcp-adr-analysis-server

Version:

MCP server for analyzing Architectural Decision Records and project architecture

56 lines 2.38 kB
/** * Tool Chain Orchestrator - AI-Powered Dynamic Tool Sequencing * * @deprecated This module contains legacy OpenRouter execution functions. * As of Phase 5 CE-MCP migration, this tool returns orchestration directives * instead of making direct OpenRouter API calls. The host LLM (Claude) is * better positioned to create execution plans because it has full context. * * For CE-MCP mode, use createToolChainOrchestratorDirective() from * src/tools/ce-mcp-tools.ts instead. See ADR-014 for architecture details. * * This module is retained for: * - Legacy mode support (EXECUTION_MODE=full) * - Hybrid mode fallback (when CE-MCP directive execution fails) */ import { z } from 'zod'; declare const ToolChainOrchestratorSchema: z.ZodObject<{ operation: z.ZodEnum<{ generate_plan: "generate_plan"; analyze_intent: "analyze_intent"; suggest_tools: "suggest_tools"; validate_plan: "validate_plan"; reality_check: "reality_check"; session_guidance: "session_guidance"; }>; userRequest: z.ZodString; projectContext: z.ZodObject<{ projectPath: z.ZodString; adrDirectory: z.ZodDefault<z.ZodString>; todoPath: z.ZodDefault<z.ZodString>; hasADRs: z.ZodOptional<z.ZodBoolean>; hasTODO: z.ZodOptional<z.ZodBoolean>; projectType: z.ZodOptional<z.ZodString>; }, z.core.$strip>; constraints: z.ZodOptional<z.ZodObject<{ maxSteps: z.ZodDefault<z.ZodNumber>; timeLimit: z.ZodOptional<z.ZodString>; excludeTools: z.ZodOptional<z.ZodArray<z.ZodString>>; prioritizeSpeed: z.ZodDefault<z.ZodBoolean>; }, z.core.$strip>>; customInstructions: z.ZodOptional<z.ZodString>; sessionContext: z.ZodOptional<z.ZodObject<{ conversationLength: z.ZodOptional<z.ZodNumber>; previousActions: z.ZodOptional<z.ZodArray<z.ZodString>>; confusionIndicators: z.ZodOptional<z.ZodArray<z.ZodString>>; lastSuccessfulAction: z.ZodOptional<z.ZodString>; stuckOnTask: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; type ToolChainOrchestratorArgs = z.infer<typeof ToolChainOrchestratorSchema>; /** * Main orchestrator function */ export declare function toolChainOrchestrator(args: ToolChainOrchestratorArgs): Promise<any>; export {}; //# sourceMappingURL=tool-chain-orchestrator.d.ts.map