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 = 3The request was cancelled before completion.
[JsonStringEnumMemberName("completed")] Completed = 2The request completed successfully and results are available. This includes tool calls that returned results with
isError: true.[JsonStringEnumMemberName("failed")] Failed = 4The 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 = 1The server needs input from the client before the task can proceed. The
tasks/getresponse will include outstanding requests in theinputRequestsfield.[JsonStringEnumMemberName("working")] Working = 0The 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.