Table of Contents

Namespace ModelContextProtocol.Extensions.Tasks

Classes

CancelTaskRequestParams

Represents the parameters for a tasks/cancel request to signal intent to cancel an in-progress task.

CancelTaskResult

Represents the result of a tasks/cancel request. This is an empty acknowledgement.

CancelledTaskNotificationParams

Task notification for a task that was cancelled.

CancelledTaskResult

Represents a task that was cancelled before completion.

CompletedTaskNotificationParams

Task notification for a task that has completed successfully.

CompletedTaskResult

Represents a task that has completed successfully, carrying the final result.

CreateTaskResult

Represents the result returned by a server when it creates a task in lieu of a standard result.

FailedTaskNotificationParams

Task notification for a task that failed.

FailedTaskResult

Represents a task that failed due to a JSON-RPC error during execution.

GetTaskRequestParams

Represents the parameters for a tasks/get request to poll for task completion.

GetTaskResult

Represents the result of a tasks/get request, containing the full task state.

InMemoryMcpTaskStore

Provides an in-memory implementation of IMcpTaskStore for development and testing scenarios.

InputRequiredTaskNotificationParams

Task notification for a task that requires input from the client.

InputRequiredTaskResult

Represents a task that requires input from the client before it can proceed.

InputResponseReceivedEventArgs

Provides data for the InputResponseReceived event.

McpTaskInfo

Represents the state of a task in an IMcpTaskStore.

McpTasksBuilderExtensions

Extension methods for IMcpServerBuilder to enable MCP Tasks support.

McpTasksClientExtensions

Extension methods for task-aware client operations.

McpTasksJsonContext

Provides source-generated JSON serialization metadata for MCP Tasks extension types.

McpTasksOptions

Configures server-side MCP Tasks behavior.

McpTasksServerExtensions

Extension methods for task-aware server operations.

ResultOrCreatedTask<TResult>

Represents the result of a request that supports task-augmented execution, which may be either the standard result or a CreateTaskResult indicating asynchronous processing.

TaskStatusNotificationParams

Represents the parameters for a notifications/tasks notification sent by the server to push task status updates to the client.

TasksProtocol

Provides constants for the MCP Tasks extension (SEP-2663).

UpdateTaskRequestParams

Represents the parameters for a tasks/update request to provide input responses to outstanding server-to-client requests on a task.

UpdateTaskResult

Represents the result of a tasks/update request. This is an empty acknowledgement.

WorkingTaskNotificationParams

Task notification for a task that is currently being processed.

WorkingTaskResult

Represents a task that is currently being processed by the server.

Interfaces

IMcpTaskStore

Provides an interface for storing and managing the lifecycle of MCP tasks.

Enums

McpTaskExecutionMode

Specifies how a tool call participates in the MCP Tasks extension.

McpTaskStatus

Represents the status of an MCP task.