Rewrite Tasks integration for SEP-2663 (highest-impact break)
Part of #481.
SDK 2.0 removes the experimental Tasks API and replaces it with the SEP-2663 Tasks extension. This server currently depends on the removed surface:
Program.cs: builder.Services.AddSingleton<IMcpTaskStore, InMemoryMcpTaskStore>();
DotNetCliTools.Core.cs: private readonly IMcpTaskStore? _taskStore; (constructor-injected)
DotNetCliTools.Misc.cs: AsyncTasks = _taskStore != null in ServerFeatureSupport
Removed types include McpTask, McpTaskMetadata, McpTasksCapability, tasks/result, tasks/list. Replacements: CreateTaskResult, ResultOrCreatedTask<T>, GetTaskResult, tasks/get, tasks/status, tasks/cancel, plus the new input_required state.
Tasks
Acceptance
- Project compiles against 2.0 with a clear, documented async-task story (migrated or explicitly dropped).
Rewrite Tasks integration for SEP-2663 (highest-impact break)
Part of #481.
SDK 2.0 removes the experimental Tasks API and replaces it with the SEP-2663 Tasks extension. This server currently depends on the removed surface:
Program.cs:builder.Services.AddSingleton<IMcpTaskStore, InMemoryMcpTaskStore>();DotNetCliTools.Core.cs:private readonly IMcpTaskStore? _taskStore;(constructor-injected)DotNetCliTools.Misc.cs:AsyncTasks = _taskStore != nullinServerFeatureSupportRemoved types include
McpTask,McpTaskMetadata,McpTasksCapability,tasks/result,tasks/list. Replacements:CreateTaskResult,ResultOrCreatedTask<T>,GetTaskResult,tasks/get,tasks/status,tasks/cancel, plus the newinput_requiredstate.Tasks
IMcpTaskStore/InMemoryMcpTaskStoreregistration and the_taskStorefield/parameter.ResultOrCreatedTask<T>and theio.modelcontextprotocol/tasksextension; wiretasks/get/tasks/status/tasks/cancel.AsyncTaskscapability reporting inServerFeatureSupport.Acceptance