Example MCP Server tools for playing D&D with generative AIs. These tools are oracles that are used to determine random yes/no questions but also descriptions, events, NPCs, etc. They are " random tables" to use when you want to introduce some uncertainty, twists and turns, and randomness to your gaming. This project is for educational purposes so little attention is given to good code design.
These tools are MCP Server tools that will work with Claude desktop and other MCP Clients. They're written in Spring AI MCP. This project is for education, so no consideration is given to good design. Instesd, the code is written to make it easy to follow step-by-step how to create tools.
You should copy over the contents of contents of
src/main/easychatdmdir/prompts/
to ~/.easychatdm
.
These are files for prompts, oracles, etc. uses.
- Some oracle values and schemes used from [JeansenVaars's Play By Writing] (https://github.com/saif-ellafi/play-by-the-writing), and PUM, GUM, etc. systems.
See the ChatDM project for a more complex, feature-ful somewhat better designed version of this EasyChatDM.
Here
are
Part one of a video series where I build a very simple MCP too-land. - In
part two of the video series where I build a file-based oracle and go over how to use the logs Claude makes and start doing your own logging. - In
part three, I build an MCP Resource to serve as a DM Journal to persist game information between play sessions. - Finally,
I get around to making an MCP Promopt, which is really exciting. This is the first glimpse at something that feels "agentic."
Keep an eye on
Enabling developer mode in Claude desktop - The ChatDM project - more sophisticated ChatDM tool that's better designed, has more tools, etc.
- Dan Vega's MCP examples.
Plot Unfolding Machine - some prompts are based on JeansenVaar's PUM system, which is CC BY-NC-SA 4.0. My experience playing D&D with ChatGPT and generative AI - video notebook of how I play D&D with the AIs.