An AI agent is a system that uses a language model to understand instructions, decide on actions, and execute them using available tools. In practice, what does this look like? In this article, we build a simple task-management AI agent in Java using Micronaut, LangChain4j, and Model Context Protocol (MCP). It demonstrates how an agent interprets natural language, selects the right action, and exe