In this example, we will build a MCP Server/Client as a proxy to existing Java Spring REST API.
Assume an existing Spring Boot REST API app with a ProductController exposing /products endpoints.
We'll add MCP support using Spring AI.
- Add Dependencies (pom.xml):