Table of Contents

TTMSMCPServer.RegisterExtension Method

Declares a protocol extension this server supports, so it is advertised to clients during initialization. Registering the same identifier again replaces the earlier configuration.

API unit family: TMS.MCP.Server Declaring type: TTMSMCPServer Inherited from: TTMSMCPCustomServer

Syntax

procedure RegisterExtension(const AIdentifier: string; const AConfig: TJSONObject = nil);

Parameters

Name Description
AIdentifier Extension identifier. Must not be empty.
AConfig Optional configuration object published with the extension. It is copied, so the caller keeps ownership; pass nil to declare the extension with an empty configuration.

Exceptions

Exception Description
Exception Raised when the identifier is empty.