Table of Contents

Method RemoveRootAsync

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

RemoveRootAsync(string, bool, CancellationToken)

Removes a root from the available roots list.

public Task<bool> RemoveRootAsync(string uri, bool notifyServer = true, CancellationToken cancellationToken = default)

Parameters

uri string

The URI of the root to remove.

notifyServer bool

Whether to send a list_changed notification to the server.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<bool>

True if the root was found and removed; otherwise false.