Skip to main content

Overview

SDK errors cover a broad range of internal failures across the FrontMCP SDK — flow execution, server configuration, skill management, serverless handlers, Vercel KV, and more. Most are internal errors except MissingPromptArgumentError (documented under Validation Errors).

Flow Errors

FlowExitedWithoutOutputError

Thrown when a flow completes all stages without producing output.

FlowInputMissingError

Thrown when a flow stage receives missing or undefined input.
Example:

Server & Configuration Errors

ServerNotFoundError

Thrown when no MCP server is found.

ConfigNotFoundError

Thrown when a configuration file is not found at the expected path.
Example:

ScopeConfigurationError

Thrown when the scope configuration is invalid.

RequiredConfigUndefinedError

Thrown when a required configuration value is undefined.
Example:

Session & Auth Errors

SessionVerificationFailedError

Thrown when session verification fails.

Context Errors

ContextExtensionNotAvailableError

Thrown when a context extension (e.g., this.remember) is not available, typically because the required plugin is not installed.

InvokeStateMissingKeyError

Thrown when an invoke state key is missing during flow execution.

Skill Errors

SkillSessionError

Thrown when a skill session operation fails.

InvalidSkillError

Thrown when a skill definition is invalid.

SkillInstructionFetchError

Thrown when fetching remote skill instructions fails.

InvalidInstructionSourceError

Thrown when an instruction source is invalid.

Serverless Errors

ServerlessHandlerNotInitializedError

Thrown when a serverless handler is accessed before initialization.

Adapter Errors

DynamicAdapterNameError

Thrown when a dynamic adapter has a name conflict.

Agent SDK Errors

AgentConfigKeyNotFoundError

Thrown when an agent configuration key is not found.

AgentToolExecutionError

Thrown when an agent’s tool execution fails.

AgentMethodNotAvailableError

Thrown when an agent method is not available.

Internal Utility Errors

DependencyNotFoundError

Thrown when a required dependency is not found in a registry during initialization.
Example:

GenericServerError

A general-purpose internal error wrapper. Used by toMcpError() to wrap unknown errors.

GlobalConfigNotFoundError

Thrown when a plugin requires global configuration that is not defined in the @FrontMcp decorator.
Example:

RequestContextNotAvailableError

Thrown when code attempts to access RequestContext outside a request scope (without AsyncLocalStorage context).

Vercel KV Errors

VercelKvNotSupportedError

Thrown when Vercel KV does not support a requested feature.

VercelKvAsyncInitRequiredError

Thrown when Vercel KV is used before async initialization.