@adcp/client API Reference - v4.19.0
    Preparing search index...

    Function createTaskCapableServer

    • Create an MCP server with task support pre-configured.

      Sets up the server with a taskStore (defaults to InMemoryTaskStore) and declares tasks capability. Publishers can then use registerAdcpTaskTool() or server.experimental.tasks.registerToolTask() directly.

      This uses the higher-level McpServer API. Publishers with complex dispatch patterns (e.g., custom request routing) can use the lower-level Server class directly by passing taskStore in ServerOptions and using setRequestHandler for task lifecycle methods. See the MCP SDK docs for that approach.

      Parameters

      • name: string
      • version: string
      • Optionaloptions: {
            taskStore?: TaskStore;
            taskMessageQueue?: TaskMessageQueue;
            instructions?: string;
        }

      Returns McpServer