Class McpTasksServerExtensions
- Namespace
- ModelContextProtocol.Extensions.Tasks
- Assembly
- ModelContextProtocol.Extensions.Tasks.dll
Extension methods for task-aware server operations.
public static class McpTasksServerExtensions
- Inheritance
-
McpTasksServerExtensions
- Inherited Members
Methods
SendTaskStatusNotificationAsync(McpServer, TaskStatusNotificationParams, CancellationToken)
Sends a task status notification to the connected client.
public static Task SendTaskStatusNotificationAsync(this McpServer server, TaskStatusNotificationParams notificationParams, CancellationToken cancellationToken = default)
Parameters
serverMcpServerThe server sending the notification.
notificationParamsTaskStatusNotificationParamsThe notification payload.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task
A task representing the send operation.