The Constitution
A canonical set of facts and rules that anchors your world: pantheon, cosmology,
geography, core rules. Each fact ships with two layers: the canonical truth itself, and
an aiGuidance field that tells the AI how to use
the fact in its outputs (tone, what to lean into, what to avoid). The AI gets this first,
before anything else.
For example, a "Resonance Magic" world rule returns something like this to the AI:
{
"name": "Resonance Magic",
"importance": 5,
"description": "Magic no longer flows from stable divine sources.
Casters must resonate with scattered power fragments.
Magic is regional, unpredictable, and intensely
personal.",
"aiGuidance": "Magic is not reliable. Describe spells as humming,
flickering, or straining. Counterspelling disrupts
resonance, not formulas. Players should feel the
instability."
}
The aiGuidance field is the architectural difference
between a wiki and a campaign state machine. The AI is told how to use the fact,
not just what the fact is. No wiki retrieval can match this, because wikis store prose for
human readers, not structured guidance for AI consumers.
14 typed entities with first-class relationships
NPC, Location, Faction, Quest, Item, PlayerCharacter, Creature, Vehicle, LoreEntry,
WorldRule, PlanarForce, SessionRecap, SessionPrep, CustomMechanic, plus knowledge graphs
that connect them. Each entity has typed fields (an NPC has a name, a description, a faction
relationship, a location relationship). Relationships are first-class queryable objects
in the same database as the entities: not a separate junction table you maintain by hand,
not a shadow knowledge graph that drifts out of sync. One source of truth.
The MCP server
An open Model Context Protocol server that any MCP-compatible AI client (Claude.ai,
Claude Desktop, ChatGPT via connector, Cursor, others) can connect to. The server exposes
structured queries: get_entity,
get_constitution,
get_narrative_state,
search_campaign, and around 40 others. The AI asks
structured questions and gets structured answers.
Visibility tiers
Four levels (common knowledge, player knowledge, DM secret, inherit) so the AI only sees
what you've authorized. Players get filtered views; the AI gets the layer you assign it.
This stack means when Claude (or ChatGPT, or any other MCP client) asks about your world,
it's calling structured tool functions against your campaign's typed state. Not
fuzzy-searching a wiki. Not guessing. The model can still write creatively (voices, scenes,
ambient detail) but the canon underneath those scenes comes from your structured state, not
the model's generic priors.