Table of Contents

Method ClearRootsAsync

Namespace
LMKit.Mcp.Client
Assembly
LM-Kit.NET.dll

ClearRootsAsync(bool, CancellationToken)

Clears all roots.

public Task ClearRootsAsync(bool notifyServer = true, CancellationToken cancellationToken = default)

Parameters

notifyServer bool

Whether to send a list_changed notification to the server.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task