The AIs are good at being a Dungeon Master for Dungeons & Dragons, but their memory is limited. How can you make sure they don’t forget all that loot you just got, or ensure that cobbler back in the village remembers the type of boots you orders and paid for up front? I’ll show you how to use Model Context Protocol (MCP) to create a DM Journal. This is done by writing an MCP Server tool that write journal entries and then an MCP Server Resource that allows you to read them. It’s just files, but it’s a good excuse to learn some agentic AI coding in Java, with the help of Spring AI.
💾 Code for this project in the EasyChatDM repo.