Skip to main content
Table of Contents

TTMSMCPCustomServer.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: TTMSMCPCustomServer

Syntax

TMS.MCP.Server.hppPascalC++
procedure RegisterExtension(const AIdentifier: string; const AConfig: TJSONObject = nil);
void __fastcall RegisterExtension(const System::UnicodeString AIdentifier, System::Json::TJSONObject* const AConfig = (System::Json::TJSONObject*)(0x0));

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.