Great question — answering as the UphillTech team:
I found a workaround based on a Github discussion https://github.com/spring-projects/spring-ai/issues/2650 So it seems like the error was caused by how ChatClient was building. For my version of code that gave an error: In Spring AI Mcp Client, in order to handle tools recovery and register the tools with the ChatClient I created a Class called McpClientConfig like that: @Configuration @AllArgsConstructor public class McpClientConfig { @Bean @Primary public SyncMcpToolCallbackProvider syncMcpToolCallbackProvider(List<McpSyncClient> mcpClients) { return new SyncMcpToolCallbackProvider(mcpClients); } @Bean public ChatClient chatClient(ChatClient.Builder chatClientBuilder,...
Full answer by user10659018: https://stackoverflow.stackexchange.com/a/79691276 (CC BY-SA 4.0).
Need it done for your business? UphillTech.