Class McpTasksOptions
- Namespace
- ModelContextProtocol.Extensions.Tasks
- Assembly
- ModelContextProtocol.Extensions.Tasks.dll
Configures server-side MCP Tasks behavior.
public sealed class McpTasksOptions
- Inheritance
-
McpTasksOptions
- Inherited Members
Properties
ExecutionModeSelector
Gets or sets the callback that selects task execution behavior for each tool call.
public Func<RequestContext<CallToolRequestParams>, McpTaskExecutionMode> ExecutionModeSelector { get; set; }
Property Value
Remarks
The default treats every tool as task-capable, preserving the behavior of
WithTasks.
The callback may inspect MatchedPrimitive to select
behavior from tool metadata without requiring Core to reference the Tasks extension.