MCP Elicitations in Spring AI: Request Missing Information from Users
What happens when your MCP tool gets called but the user didn't provide all the required information? Before elicitations, it would simply fail. Now there's a better way. In this tutorial, you'll learn how to implement MCP Elicitations in Spring AI, a standardized approach for servers to request additional information from users during an interaction. We'll build a complete coffee shop ordering system where the MCP server dynamically asks for missing details like coffee size, type, and milk preference. 🎯 What You'll Learn: • Understanding elicitations in the MCP specification (form mode vs URL mode) • Building an MCP server with elicitation support using Spring Boot • Creating tool parameters with the @MCPTool and @MCPToolParams annotations • Testing elicitations in the MCP Inspector • Building a Spring AI client with the @MCPElicitation annotation • Handling elicitation requests and responses in a real application 📚 Resources: GitHub Repository: https://github.com/danvega/spring-ai-... MCP Elicitations Docs: https://modelcontextprotocol.io/docs/... Spring AI Reference: https://docs.spring.io/spring-ai/refe... Spring Initializr: https://start.spring.io 👋🏻Connect with me: Website: https://www.danvega.dev Twitter: / therealdanvega Github: https://github.com/danvega LinkedIn: / danvega Newsletter: https://www.danvega.dev/newsletter SUBSCRIBE TO MY CHANNEL: http://bit.ly/2re4GH0 ❤️

Introduction to Spring Modulith - Modular Monoliths in Spring Boot

MCP vs API Explained: Do You Really Need MCP?

The Most Important Conversation in AI Right Now

How Senior Engineers Actually Build Claude Skills and MCP Servers in 2026

Model Context Protocol (MCP) Explained for Beginners: AI Flight Booking Demo!

Spring AI Prompt Caching: Stop Wasting Money on Repeated Tokens

Spring Boot 4.1: Type-Safe Property Paths in Spring Data

Build AI's Future: Model Context Protocol (MCP) with Spring AI in Minutes

How to Externalize Events in Spring Modulith with Kafka

Events That Survive Crashes in Spring Modulith

CHOSEN ONE!! YOUR IDENTITY REVEAL JUST SHOOK THE INTERNET... AND THEIR MINDS

Instant Focus Mode – 40Hz Gamma Brainwave Music for Deep Focus & Productivity

Spring AI Introduction: Building AI Applications in Java with Spring

Spring Boot 4.1: Block SSRF Attacks with InetAddressFilter

Getting Started with Spring gRPC in Spring Boot 4.1

ChatClient vs ChatModel: Which Spring AI API Should You Use?

MCP vs API: Why traditional APIs are failing AI agents

The Right Way to Build AI Apps in 2026 | Next.js 16 Course

Don't learn AI Agents without Learning these Fundamentals

