Table of Contents

TTMSMCPBase Class

Base collection item for the named, described entries a server publishes, such as tools, resources and prompts. It supplies the identifying name and the description advertised to the client, and raises a change notification whenever either is assigned.

API unit family: TMS.MCP.Helpers Inherits from: TCollectionItem

Syntax

TTMSMCPBase = class(TCollectionItem)

Properties

Name Description
Description Free-form description published together with the entry. It is the text a model reads to decide whether and how to use the entry, so it should state what the entry does and when to use it.
Name Identifier under which the entry is published. Clients address the entry by this name, so it must be unique within its collection.

Methods

Name Description
Changed Fires the change notification so the owning collection can refresh anything derived from the item, such as a cached capability listing.

Events

Name Description
OnChange Occurs whenever the name or the description is assigned, and whenever an explicit call to the change method is made. Assigning the handler itself also raises the notification.