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 task-augmented tool invocation system (per the MCP 2025-11-25 task-support protocol). All inherit from PublicMcpError (safe to surface to clients) except TaskStoreNotInitializedError.

Reference

ClassInheritsJSON-RPC CodeWhen
TaskNotFoundErrorPublicMcpError-32602tasks/get, tasks/cancel, or tasks/result referenced an unknown task ID
TaskAlreadyTerminalErrorPublicMcpError-32602tasks/cancel invoked on a task already in succeeded/failed/cancelled
TaskAugmentationNotSupportedErrorPublicMcpError-32601Client invoked tools/call with task augmentation on a tool that opts out
TaskAugmentationRequiredErrorPublicMcpError-32601Tool declared taskSupport: 'required' but client did not request a task
TaskStoreNotInitializedErrorInternalMcpErrorInternal: task store provider not registered when task subsystem is required

Usage

import { TaskNotFoundError, TaskAlreadyTerminalError } from '@frontmcp/sdk';

if (!task) {
  throw new TaskNotFoundError(taskId);
}

if (isTerminal(task.status)) {
  throw new TaskAlreadyTerminalError(task.status);
}