By Admin on Thursday, 13 November 2025
Category: All

MCP Authentication Delphi

The 2025.10.0 release of sgcWebSockets elevates Model Context Protocol (MCP) connectivity with a hardened authentication layer for both client and server components. This article highlights how the new capabilities combine enterprise-grade access control with the rapid development workflow Delphi teams expect from sgcWebSockets.

What is new

MCP Client

The MCP client exposes all security knobs through the MCPOptions.AuthenticationOptions property. Enable API key or custom header flows independently to satisfy zero-trust or tenant-based policies, and the component injects the required headers during each HTTP POST and SSE upgrade.


Together with heartbeats, client metadata, and HTTP/TLS customization, you can align MCP conversations with your organization's compliance checklist without sacrificing developer velocity.​

MCP Server

The server mirrors the client controls with dedicated endpoint, transport, and MCP configuration objects. As requests arrive, the component validates every incoming header and raises a descriptive error when a credential is missing or incorrect. Because validation happens before the request enters your business logic, you stop misuse early and keep your code focused on domain value.

Business and technical advantages

​Delphi Example

The following snippet shows how a single configuration routine can enable MCP Authentication for both a client and a server in Delphi. Adapt the credential values to your environment. 

Related Posts