> ## Documentation Index
> Fetch the complete documentation index at: https://ai.easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# McpTaskEntity

> Persisted MCP task row. Inherits protocol fields from [StoredMcpTask](/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/StoredMcpTask) and adds an applicat...

## Definition

**Assembly:** CloudNimble.McpEssentials.EntityFrameworkCore.dll

**Namespace:** CloudNimble.McpEssentials.EntityFrameworkCore.Tasks

**Inheritance:** CloudNimble.McpEssentials.Core.Tasks.StoredMcpTask

## Syntax

```csharp theme={null}
CloudNimble.McpEssentials.EntityFrameworkCore.Tasks.McpTaskEntity
```

## Summary

Persisted MCP task row. Inherits protocol fields from [StoredMcpTask](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/StoredMcpTask.md) and adds
an application-managed concurrency token plus JSON columns for payloads. Map with
`AddMcpTasksTable` (default table `McpTasks`). Do not store these rows
on domain tables; tasks expire in minutes.

## Constructors

### &#x20;.ctor

Initializes an empty row for EF Core materialization.

#### Syntax

```csharp theme={null}
public McpTaskEntity()
```

### &#x20;.ctor

Initializes a new row from a protocol snapshot.

#### Syntax

```csharp theme={null}
public McpTaskEntity(string ownerUserId, ModelContextProtocol.Extensions.Tasks.McpTaskInfo info)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `ownerUserId` | `string` | The user recorded when the task was created. |
| `info` | `ModelContextProtocol.Extensions.Tasks.McpTaskInfo` | The protocol-facing snapshot. Must not include the owner. |

### &#x20;.ctor

Initializes a new working row owned by *ownerUserId*.

#### Syntax

```csharp theme={null}
public McpTaskEntity(string ownerUserId, string taskId, System.DateTimeOffset createdAt, System.Nullable<System.TimeSpan> timeToLive, long pollIntervalMs)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `ownerUserId` | `string` | - |
| `taskId` | `string` | - |
| `createdAt` | `System.DateTimeOffset` | - |
| `timeToLive` | `System.Nullable<System.TimeSpan>` | - |
| `pollIntervalMs` | `long` | - |

## Properties

### &#x20;ErrorJson

Gets or sets the JSON-RPC error as JSON. Backs [StoredMcpTask.Error](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/StoredMcpTask.md#error).

#### Syntax

```csharp theme={null}
public string ErrorJson { get; set; }
```

#### Property Value

Type: `string?`

### &#x20;InputRequestsJson

Gets or sets the outstanding input-request map as JSON. Backs [StoredMcpTask.InputRequests](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/StoredMcpTask.md#inputrequests).

#### Syntax

```csharp theme={null}
public string InputRequestsJson { get; set; }
```

#### Property Value

Type: `string?`

### &#x20;ResultJson

Gets or sets the terminal result as JSON. Backs [StoredMcpTask.Result](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/StoredMcpTask.md#result).

#### Syntax

```csharp theme={null}
public string ResultJson { get; set; }
```

#### Property Value

Type: `string?`

### &#x20;RowVersion

Gets or sets the application-managed concurrency token. SQL Server hosts may remap this
as `rowversion` in their own configuration.

#### Syntax

```csharp theme={null}
public byte[] RowVersion { get; set; }
```

#### Property Value

Type: `byte[]`

## Methods

### &#x20;Clone Override

#### Syntax

```csharp theme={null}
public override CloudNimble.McpEssentials.Core.Tasks.StoredMcpTask Clone()
```

#### Returns

Type: `CloudNimble.McpEssentials.Core.Tasks.StoredMcpTask`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.