Creates a new task with the given creation parameters. The implementation generates a unique taskId and createdAt timestamp.
The task creation parameters from the request
The created task object
Gets the current status of a task.
The task identifier
The task object
Retrieves the stored result of a task.
The task identifier
The stored result
Lists tasks, optionally starting from a pagination cursor.
Optionalcursor: stringOptional cursor for pagination
An object containing the tasks array and an optional nextCursor
Stores the result of a task and sets its final status.
The task identifier
The final status: 'completed' for success, 'failed' for errors
The result to store
Optional_meta?: {See MCP specification for notes on _meta usage.
Optionalio.modelcontextprotocol/related-task?: { taskId: string }If specified, this request is related to the provided task.
OptionalprogressToken?: string | numberIf specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
Updates a task's status (e.g., to 'cancelled', 'failed', 'completed').
The task identifier
The new status
OptionalstatusMessage: stringOptional diagnostic message for failed tasks or other status information
Request-scoped TaskStore interface.