Table of Contents

Enum McpTaskStatus

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents the status of an MCP task.

[JsonConverter(typeof(JsonStringEnumConverter<McpTaskStatus>))]
public enum McpTaskStatus

Fields

[JsonStringEnumMemberName("cancelled")] Cancelled = 3

The request was cancelled before completion.

[JsonStringEnumMemberName("completed")] Completed = 2

The request completed successfully and results are available. This includes tool calls that returned results with isError: true.

[JsonStringEnumMemberName("failed")] Failed = 4

The request failed due to a JSON-RPC error during execution. This status must not be used for non-JSON-RPC errors.

[JsonStringEnumMemberName("input_required")] InputRequired = 1

The server needs input from the client before the task can proceed. The tasks/get response will include outstanding requests in the inputRequests field.

[JsonStringEnumMemberName("working")] Working = 0

The request is currently being processed.

Remarks

Tasks are durable state machines that carry information about the underlying execution state of the request they augment. See the SEP-2663 specification for details.