SagaSmith Narrative MCP
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SagaSmith Narrative MCPStart a new lobby for an Echo Manor campaign and invite my players"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SagaSmith Narrative MCP
本仓库已归档。 它不再是发布输入、兼容回退或新 issue 的接收位置。当前权威 MCP 位于 sagasmith-narrative/packages/mcp。
This repository is archived. It is no longer a release input, compatibility fallback, or destination for new issues. The authoritative MCP now lives in sagasmith-narrative/packages/mcp.
Website · Platform overview · Hosted service · Content catalog
An authoritative, system-neutral MCP for long-form tabletop narrative play. It
depends on sagasmith-core for durable campaigns, transactions, revisions,
documents, continuity ledgers, snapshots, and branches.
The base runtime has two phases: lobby and play. A profile may opt into an
authoritative conflict phase. Native MCP tools are session-scoped and dynamic;
hosts must process tools/list_changed notifications.
The server never guesses rules from prose. A campaign binds an immutable profile version and checksum. Profiles may use Level 0 (explicit Agent/human rulings) or the limited pure Level 1 mechanics in this package. More complex rules require a separate system provider.
Lobby administrators can inspect campaign-scoped profile/Pack drafts through
narrative_query. Access changes support grant and revoke operations with
last-owner protection; controlled actors can be updated through actor_change.
Recovery queries and snapshot/branch mutations are administrator-only.
Snapshots remain independently restorable full state documents at the public
boundary. Core schema v8 stores each document as one bounded, checksummed
zlib-1 record; restore and branch checkout do not replay an ancestor chain.
See Architecture and authority and
Profile and Pack lifecycle for the durable product
boundary. Three self-authored regression campaigns live in fixtures/ash-harbor,
fixtures/moss-road-seasons, and fixtures/echo-manor-voices. The third is a
15-session, five-NPC character-performance campaign with declared goals,
private motives, red lines, false beliefs, relationship arcs, voice markers,
isolated dialogue, and a recovered alternate ending.
Development
python -m pip install -e ".[dev]"
pytest
ruff check .Run the original campaign fixtures concurrently through real stdio MCP sessions:
python scripts/regression_parallel_campaigns.py --output .runs/parallelThe runner opens real stdio MCP sessions, uses a separate session identity for each principal, executes every declared route step, follows a focused alternate branch, and emits machine-readable per-campaign timelines and a combined summary. A non-zero exit means the run is not accepted.
The Agent Host integration uses the MCP and Agent repositories' own environments: the
test process runs with ../SagaSmith-agent/.venv/Scripts/python.exe, while the
spawned MCP server runs with this repository's .venv/Scripts/python.exe:
../SagaSmith-agent/.venv/Scripts/python.exe -m pytest -q tests/test_agent_host_integration.pyRun locally with sagasmith-narrative-mcp. Its independent default home is
~/.sagasmith/narrative-mcp. Set SAGASMITH_NARRATIVE_MCP_HOME to relocate it,
SAGASMITH_NARRATIVE_MCP_DATABASE_URL to use an explicit database, and
SAGASMITH_NARRATIVE_MCP_BOUND_PRINCIPAL_ID when the transport authenticates
one principal.
The server applies Core Alembic migrations at startup and requires the current Snapshot schema v8. Before deployment, stop the server and take a consistent backup of the SQLite database (including a settled WAL), or use the external database's native backup mechanism. There is no database downgrade or dual-protocol mode: rollback restores the database together with matching Core and MCP versions as one unit.
Without SAGASMITH_NARRATIVE_MCP_BOUND_PRINCIPAL_ID, stdio is a trusted
single-user local mode; model-supplied principal fields are not multiplayer
authentication. A multiplayer deployment must bind one authenticated principal
per MCP process through a trusted transport. Shared-principal HTTP exposure is
not currently supported and the server must not be published directly to a
network.
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage your tabletop RPG campaign from any MCP client: worlds, sessions, quests, lore, recaps.
Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.
Read-only access to your tabletop campaigns: codex, sessions, and session notes.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Related MCP Servers
- AlicenseBqualityCmaintenanceShared workspace your AI agents write to. CMMN case management with 184+ MCP tools: cases, tasks, event-driven CMMN workflows with sentries, persistent memory with semantic search, billing and invoicing. OAuth or token auth; cloud-hosted remote MCP endpoint.10024 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents with persistent, multi-layer memory, multi-agent collaboration rooms, and video generation, all accessible via MCP tools.1MIT
- AlicenseAqualityBmaintenanceA persistent world your agents share across sessions and models. MCP memory server with semantic memory retrieval, cross-agent handoff, a hosted remote endpoint with OAuth, a free 24-hour room, and an open-source local stdio server.42Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants and teams to collaborate in a shared workspace by building and querying tables, writing documents, uploading files, and publishing live dashboards through any MCP-compatible client.2MIT