Part 2 - Connecting AI Agents to Microservices with MCP
java
dev.to
Connecting AI Agents to Microservices with MCP (No Custom SDKs) In the previous post, I showed how LangChain4j lets you build agents with a Java interface and a couple of annotations. But those agents were using @Tool, methods defined in the same JVM. Fine for a monolith, but I’m running 5 microservices. I needed the AI agent in service A to call business logic in service B, C, D, and E. Without writing bespoke HTTP clients for each one. That’s where MCP comes in, and it changed how