Skip to main content
Glama
SagaSmithAI

SagaSmith Narrative MCP

Official
by SagaSmithAI

SagaSmith Narrative MCP

IMPORTANT

本仓库已归档。 它不再是发布输入、兼容回退或新 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/parallel

The 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.py

Run 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.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A comprehensive Model Context Protocol server for managing Dungeons & Dragons campaigns with tools for characters, NPCs, locations, quests, combat encounters, and session tracking.
    30
    13
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to act as RPG Game Masters by managing campaign state including characters, inventory, quests, and logs through MCP tools. Supports campaign mutations and provides both MCP and HTTP API access to RPG session data.
    2
  • A
    license
    B
    quality
    D
    maintenance
    A comprehensive MCP server for managing AI-assisted Dungeons & Dragons campaigns, featuring tools for character sheets, combat tracking, and world-building. It enables players and DMs to interact with 5e game mechanics and query personal PDF rulebooks using RAG capabilities.
    97
    2
    MIT
  • A
    license
    Not graded
    quality
    F
    maintenance
    A local MCP server for Dungeons & Dragons campaign management, combining core runtime with skill and module-generation packs. It enables campaign creation, module generation and import, rule and skill searching via tools, resources, and prompts.
    Apache 2.0

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SagaSmithAI/SagaSmith-narrative-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server