TsgcWSAPIServer_MCPProperties › EndpointOptions

EndpointOptions Property

HTTP endpoint (path) that receives MCP JSON-RPC traffic; defaults to /mcp.

Syntax

property EndpointOptions: TsgcWSMCPServerEndpoint_Options read FEndpointOptions write SetEndpointOptions;

Default Value

Remarks

Defines the HTTP document path the component compares against incoming requests. Only requests whose document equals Endpoint are treated as MCP JSON-RPC calls; every other document is left for the parent HTTP server to handle. The default value is /mcp; change it to coexist with additional REST APIs mounted on the same TsgcWebSocketHTTP_Server or TsgcWebSocketServer_HTTPAPI instance.

Example

MCPServer.EndpointOptions.Endpoint := '/api/v1/mcp';

Back to Properties