# Variable OrchestrateOutputSchema`Const`

OrchestrateOutputSchema: ZodObject<
{
taskId: ZodString;
analysis: ZodObject<
{
taskId: ZodString;
complexity: ZodNumber;
taskType: ZodString;
requirements: ZodArray<ZodString>;
risks: ZodArray<ZodString>;
needsDecomposition: ZodBoolean;
approach: ZodString;
estimatedEffort: ZodNumber;
},
$strip,
>;
routing: ZodOptional<
ZodObject<
{
pattern: ZodString;
reasoning: ZodString;
confidence: ZodNumber;
orchestratorType: ZodString;
},
$strip,
>,
>;
result: ZodUnknown;
stepsCompleted: ZodNumber;
metadata: ZodObject<
{
durationMs: ZodNumber;
tokensUsed: ZodNumber;
expertsUsed: ZodArray<ZodString>;
timeoutReason: ZodOptional<ZodString>;
},
$strip,
>;
workerDispatchStatus: ZodOptional<
ZodEnum<{ failed: "failed"; success: "success"; partial: "partial" }>,
>;
},
$strip,
> = ...

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- Defined in packages/nexus-agents/src/mcp/tools/orchestrate-types.ts:43