🎲 Interactive Demo
This page demonstrates how the TTRPG data can be used directly in a web browser using JavaScript.
How It Works
This demo page loads data directly from the GitHub Pages /data/ directory using simple JavaScript fetch calls. Each button:
- Fetches the relevant JSON file from
https://ttrpg-mcp.tedt.org/data/ - Randomly selects an appropriate item from the data
- Displays the result
This is the same data that the MCP server uses, demonstrating how the hybrid architecture works:
- MCP Server (Cloudflare Worker): Provides structured tool access via MCP Streamable HTTP (JSON responses)
- GitHub Pages: Hosts the data files publicly for direct access