ExperimentalExperimentalExperimentalCancels a running task.
The task identifier
Optionaloptions: RequestOptionsOptional request options
ExperimentalGets the current status of a task.
The task identifier
Optionaloptions: RequestOptionsOptional request options
The task status
ExperimentalRetrieves the result of a completed task.
The task identifier
OptionalresultSchema: TZod schema for validating the result
Optionaloptions: RequestOptionsOptional request options
The task result
ExperimentalLists tasks with optional pagination.
Optionalcursor: stringOptional pagination cursor
Optionaloptions: RequestOptionsOptional request options
List of tasks with optional next cursor
ExperimentalSends a request and returns an AsyncGenerator that yields response messages. The generator is guaranteed to end with either a 'result' or 'error' message.
This method provides streaming access to request processing, allowing you to observe intermediate task status updates for task-augmented requests.
The request to send
Zod schema for validating the result
Optionaloptions: RequestOptionsOptional request options (timeout, signal, task creation params, etc.)
AsyncGenerator that yields ResponseMessage objects
Experimental task features for low-level MCP servers.
Access via
server.experimental.tasks:For high-level server usage with task-based tools, use
McpServer.experimental.tasksinstead.