Building an MCP Tool with Spring Boot AI
How I turned Apache Kafka into a set of tools an AI client can call — using Spring AI's MCP server, a handful of @Tool methods, and one ugly-but-necessary servlet filter.
Topic
Building MCP servers and pointing agents at real systems — Spring Boot tools, an email inbox, a JVM agent framework.
How I turned Apache Kafka into a set of tools an AI client can call — using Spring AI's MCP server, a handful of @Tool methods, and one ugly-but-necessary servlet filter.
Field notes from wiring Fastmail's MCP server into an AI client and pointing it at my real inbox — the search syntax worth memorising, plus the two gotchas (deferred schemas, and stage-vs-commit on calendar events) that cost me a few minutes.
Posts that touch this subject but live under another topic.
Building agents on the JVM with Embabel · Part 6
Turning my JVM agents into MCP tools took one dependency and one annotation. It also took three silent failures -- a starter that suppresses the web server, a shell that eats your CLI flags, and an annotation default that publishes exactly zero tools without telling you.