Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.agentfront.dev/llms.txt

Use this file to discover all available pages before exploring further.

These errors surface from the workflow runtime when a multi-step DAG fails to validate or complete. All inherit from InternalMcpError (not safe to surface verbatim to clients — the runtime maps them to a generic JSON-RPC error before sending).

Reference

ClassInheritsWhen
WorkflowStepNotFoundErrorInternalMcpErrorA step alias was referenced before it completed
WorkflowTimeoutErrorInternalMcpErrorThe whole workflow exceeded its timeoutMs
WorkflowDagValidationErrorInternalMcpErrorThe declared DAG had a cycle, missing dependency, or bad ref
WorkflowJobTimeoutErrorInternalMcpErrorAn individual job step exceeded its timeoutMs

Usage

import {
  WorkflowStepNotFoundError,
  WorkflowTimeoutError,
  WorkflowDagValidationError,
  WorkflowJobTimeoutError,
} from '@frontmcp/sdk';

// Inside a workflow runtime extension
if (!completed.has(alias)) {
  throw new WorkflowStepNotFoundError(alias);
}