MCP 最近很火,自己也为公司内部的Code Assistant Tool 实现了一个MCP Client。因为网上几乎全是教大家怎么写MCP Server的,很少有关于MCP Client,kotlin 实现的就更少了。所以我觉得有必要记录一下过程,以及遇到的问题,希望可以帮助大家。
MCP has been gaining popularity recently, and I’ve implemented an MCP Client for our company’s internal Code Assistant Tool. Since there are plenty of tutorials about writing MCP Servers but very few about MCP Clients, especially implementations in Kotlin, I feel it’s necessary to document the process and the challenges I encountered, hoping it will help others.
When using AzureOpenAIEmbeddings, met a network error: Arguments: (ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))),). Let’s see what happen.
最近工作中遇到一个关于MapReduce ClassPath的问题,记录一下。
Spark Metrics is useful if we debug our Spark applications and integetrating with Prometheus and Grafana is a common way to show it.