Skip to main content

Definition

Assembly: CloudNimble.McpEssentials.EntityFrameworkCore.dll Namespace: CloudNimble.McpEssentials.EntityFrameworkCore.Tasks Inheritance: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBase

Syntax

Summary

An IMcpTaskStorePlus that persists snapshots on TContext.Set<McpTaskEntity>(). Register as a singleton. The host registers TContext as scoped (standard AddDbContext); this store opens a scope per operation.

Remarks

Client-facing operations require a current user and treat another user’s task as missing. Server-side completion skips the live-user check. Optional IMcpTaskInputSignalBus fans McpTaskStoreBase.InputResponseReceived out to other nodes. The SDK WithTasks API captures the store instance before Build(); use WithTasksPlus so the provider is stamped on first use.

Type Parameters

  • TContext - The host DbContext. Map McpTaskEntity with ModelBuilder.AddMcpTasksTable in OnModelCreating, or with DbContextOptionsBuilder.AddMcpTasksTable from AddDbContext when the context project must not reference this package.

Constructors

.ctor

Initializes a new instance of the EFCoreMcpTaskStore1` class.

Syntax

Parameters

Exceptions

.ctor

Initializes a new instance of the EFCoreMcpTaskStore1` class that always uses userId.

Syntax

Parameters

.ctor

Initializes a new instance of the EFCoreMcpTaskStore1` class that resolves the user from a ClaimsPrincipal.

Syntax

Parameters

Exceptions

.ctor

Initializes a new instance of the EFCoreMcpTaskStore1class with deferred factories so the MCP server builder can capture the store beforeBuild()`.

Syntax

Parameters

Exceptions

Methods

Dispose Virtual

Syntax

  • System.IDisposable