We have started actively using the TMS AI Studio product. It seems to be a really good tool for creating custom MCP solutions, and we are working intensively on integrating it into our system.
In some parts of AI Studio, Indy components are used for network communication, specifically objects of the TIdHTTP class. These are the “TMS.MCP.Client.Transport.HTTP.pas” and “TMS.MCP.Client.Transport.SSE.pas” units. If the HTTPS protocol is used for communication, a native Indy SSL handler (TIdSSLIOHandlerSocketOpenSSL) is added to the instance. Unfortunately, this handler only supports older versions of encryption libraries (libeay/ssleay), which can be considered a security risk today.
We also use Indy components in our system; it is a reliable and proven solution, and—fortunately—it is designed with sufficient flexibility, which allowed us to relatively easily replace the native SSL layer with a solution from the new TaurusTLS library, which supports the latest cryptographic libraries (libcrypto-x/libssl-x).
The current way of using Indy components in AI Studio does not allow—without modifying the code—the replacement of the native SSL layer with a different, more modern one. Could you please consider modifying the code (most likely the CreateHTTP method) so that it is possible to inject a different SSL solution into the TIdHTTP instance?
Thank you for your response. I feel like we’re not quite on the same page—I was referring to the client-side part of the solution, specifically the HTTP transport for the MCP client, namely code in the “TMS.MCP.Client.Transport.HTTP.pas” unit. Two classes are declared here to handle the HTTP GET and POST methods; both classes have a private instance of the Indy component TIdHTTP. These Indy components are created and configured in the protected method “CreateHTTP,” where the SSL socket is also set up if the HTTPS protocol is used.
This is where I need to replace the native Indy SSL socket with an SSL socket implementation from the TaurusTLS library, or more generally, any other modern SSL wrapper, compatible with Indy library.
Sorry, it was not immediately clear it concerns the client, moreover as the majority of users is building MCP servers.
Well, for clients it indeed makes sense. We have experience with TaurusTLS
so, we discussed and will apply a similar approach for MCP clients in TMS AI Studio
Hi Bruno, thank you for your understanding; I’m glad you’re considering adding support for TaurusTLS library in AI Studio.
I have to say that author of TaurusTLS library deserves to be canonized—his library will extend the operational lifespan of many software solutions based on the Indy library by quite a few years, without the need for a major code overhaul; all it takes is a few minor adjustments.