Table of Contents

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

server McpServer

The server sending the notification.

notificationParams TaskStatusNotificationParams

The notification payload.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A task representing the send operation.