MythxEngine

io.github.protoLabsAI由 GitHub 账号 protoLabsAI 发布v0.3.0更新于 Oct 24, 2026

Tabletop RPG engine over MCP: dice, combat, stress, clocks, world generation, four bundled worlds

已验证STDIO仅桌面

概览

AI 生成的概览

一款桌面角色扮演游戏引擎,让 AI 充当游戏主持人,提供确定性骰子、战斗、压力、时钟、世界生成和四个内置世界。

可以做什么
  • 运行游戏与角色:创建会话、加载世界概要、创建带生命值、压力与装备的角色
  • 判定与后果:按位置与效果掷骰判定、推动掷骰、抵抗后果、查询规则
  • 战斗追踪:开始战斗、掷先攻、攻击,并记录护甲、状态与伤害
  • 时钟与世界状态:推进情境时钟、追踪调查与 NPC 关系、生成世界
  • 查询并生成规则书内容,与引擎使用同一来源
适用场景
适合希望由助手主持或协助桌面角色扮演游戏、并要求规则判定一致且可复现(同种子同结果)的场景,也适合体验四个内置起始世界。
运行要求
以 stdio 本地运行,可通过 npm 包安装(需 Node 22.13 或更高版本),或使用自带 Node 运行时的 Claude Desktop 扩展包。可选环境变量 RPG_MCP_DATA_DIR 指定会话与世界包的存放位置;未声明任何身份验证。
安装前请注意
会话与世界包会写入本地数据目录(默认位于用户主目录下),该目录保存你的游戏状态。内置世界约 13 MB,首次运行时会导入。README 说明该仓库是私有 monorepo 的下游镜像。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MythxEngine,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MythxEngine — tabletop RPG engine over MCP

[CI] [npm] [license: MIT] [node]

A complete tabletop RPG engine your AI can run: deterministic dice, five-tier outcomes, FitD-style stress, combat tracking, situation clocks, investigations, NPC relationships, world generation — 134 tools over the Model Context Protocol, with four complete starter worlds bundled in.

Claude (or any MCP client) becomes your Game Master. The engine keeps the rules honest: same seed + same actions = same outcome.

Install

Claude Code — plugin (skills + tools, recommended)

/plugin marketplace add protoLabsAI/mythx-mcp/plugin install rpg@mythx-plugins

One install delivers the MCP server plus play skills (/rpg:play, /rpg:combat-mode, /rpg:world-building-mode, …).

Claude Code — tools only

bash
claude mcp add rpg -- npx -y @mythxengine/mcp-server

Requires Node >= 22.13.

Claude Desktop

Download mythxengine-<version>.mcpb from the latest release and drag it into Settings → Extensions. No other setup — Claude Desktop ships its own Node runtime.

Five-minute walkthrough

Everything below is one conversation with Claude after installing. Four worlds are imported on first run — Port Miriam (harbor noir), Aethelgard (mythic frontier), Threshold Deep (weird depths), and the Treehouse Anthology.

1. Pick a world, make a character.

Start a session in Port Miriam. I want to play a dockside fixer who owes the wrong people money.

The GM calls create_session, load_world_summary, and create_character — your fixer gets HP, stress, gear, and a spot in the world's faction web.

2. Roll with real stakes. Every test is framed with position (how bad is failure?) and effect (how much does success buy?):

I try to slip past the harbor patrol to reach the smuggler's skiff.

roll_test → risky position / standard effect → 11 vs 13: partial"Yes, but..." — you reach the skiff, and a lantern swings your way.GM move suggested: put_someone_in_spot

Five outcomes — critical success, success, partial, failure, critical failure — and on a bad roll you can push_roll (spend 2 stress for +1d6) or resist_consequence to buy the severity down. Stress is a real currency; overflow means trauma.

3. Fight a combat round.

Two dockhands block the gangway. I draw my hook-knife.

start_combat → roll_initiative → attack — initiative order, armor, conditions, and damage all tracked; every attack returns the same five-tier outcome with suggested GM moves on a miss.

4. Watch a clock tick. The patrol you dodged? The GM started a harbor-alert clock. Fail forward enough times (tick_clock fires automatically on partials/failures when wired) and the dock lights come on — consequences arrive on schedule, not by fiat.

That's the loop: fiction in, mechanics out, consequences on clocks.

What's in the box

PieceWhat it gives you
packages/mcp-serverThe MCP server — 134 tools, published as @mythxengine/mcp-server
packages/enginePure, seeded game mechanics (dice, outcomes, combat)
packages/types / worlds / rulebookZod-validated schemas for every entity, plus rules lookup
packages/storageSQLite persistence (node:sqlite, zero native deps)
packages/tools / promptsTransport-agnostic tool implementations + runtime GM skills
world-builder/The rpg Claude Code plugin (skills, agents, hooks)
agent-kit/Portable GM system prompt + operating manual for any agent
docs/The rulebook + how the engine works
4 bundled worlds~13 MB of NPCs, factions, locations, situations, arcs — the demo

Rules & docs

  • docs/RULEBOOK.md — the complete rules, all 12 chapters (outcomes, position & effect, tests, stress, combat, conditions, gear, time & clocks, GM moves). Generated from packages/rulebook, the same source the lookup_rule and generate_rulebook tools serve — so it never drifts from the engine.
  • docs/engine.md — how the engine works: the five-tier outcome system, position & effect, stress, deterministic RNG, and how the packages fit together.
  • agent-kit/ — a portable GM system prompt and operating manual for running a game with any agent.

Want the full experience?

This repo is the engine. MythxEngine Desktop is the game: a visual frame-based play surface, scene imagery, generated world books, and polish. Follow along and get notified when it ships at mythxengine.com.

Development

bash
pnpm installpnpm build && pnpm test && pnpm lint && pnpm typecheck

See CONTRIBUTING.md — this repo is a downstream mirror of a private monorepo; issues are the fastest way to get fixes in.

License

MIT © protoLabs Studio

来源:README.md,提交 5c50567

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.3.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分