Table of Contents

Method Of

Namespace
MailFathom.Mcp.Tools.Categories
Assembly
MailFathom.Mcp.dll

Of(IEnumerable<McpToolCategory>)

Composes the selection a deployment named.

public static PublishedToolCategorySelection Of(IEnumerable<McpToolCategory> categories)

Parameters

categories IEnumerable<McpToolCategory>

The categories the deployment wrote, in any order and with repetition permitted.

Returns

PublishedToolCategorySelection

The selection, which is Everything when the deployment named none.

Remarks

Naming none publishes everything, which is the behaviour a deployment has without the setting, so its absence changes nothing about an endpoint that already exists. An endpoint that should publish no tool at all is an endpoint that is not served, which is what McpEndpoint:Enabled decides.

Exceptions

ArgumentNullException

Thrown when categories is null.

ArgumentException

Thrown when a category is the unspecified struct default, which names nothing to publish.