雨灯酒馆 (Rainlight Tavern)
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
雨灯酒馆
Magpie 的中文角色扮演页面和 MCP 插件。可以在页面里单独聊天或跑团,也可以让外部 Agent 把玩家原话转给酒馆里的模型。页面和 MCP 使用同一份会话、角色表、世界书与图片。
安装
需要支持页面服务及 Plugin tools MCP 的 Magpie。实测版本为 Magpie 0.1.5087。
magpie plugin add github:dbydd/magpie-sillytavern-and-trpg-mcp开发时也可用 magpie plugin add /absolute/path/to/this/folder。启用插件,在 Magpie 侧栏打开 雨灯酒馆。新建会话时选聊天模型。要生图,可在 Magpie 里设置默认生图模型,也可在酒馆的生图窗口选择模型。
自由 RP提供第一人称对话、角色卡和场景设置。支持 SillyTavern V2 JSON(含开场及内嵌世界书的主要关键词)和普通 JSON 角色卡。内嵌资料可按对话关键词触发。
KP 跑团提供独立的 KP 个性栏、百分骰、普通/困难/极难检定、HP、理智、技能与调查笔记。KP 按需调用工具掷骰;玩家也可手动掷骰或判定。在同一存档中可邀请白龙娘以独立角色发言。
场景插画可按当前剧情生成,或使用自填提示词。选用支持
b64_json的 Magpie 图片路由。图片保存到存档目录,由页面展示。触发生成需要一次实际模型调用。
Related MCP server: MythxEngine
挂载世界书
在 Magpie 插件选项里设置 worldbooks。合集路径是 运行 Magpie 的机器上的目录;Docker 下请先把需要的目录挂载进容器。只放希望 Agent 能看到的资料。
magpie plugin options magpie-sillytavern-and-trpg-mcp \
'{"worldbooks":[{"id":"harbor","label":"雾港世界书","path":"/absolute/path/to/lore"}]}'支持 Markdown、纯文本、JSON、YAML 等 UTF-8 文本。页面能浏览目录、检索、分段阅读;剧情模型与外部 Agent 可调用同一组读取工具。文本按需读取,修改文件后下次查询即可看到。目录遍历、隐藏条目和符号链接不在读取范围内。检索有文件数和字节限制,结果较多时可指定合集或换更具体的关键词。
给外部 Agent
在 Magpie 的 资料库 → MCP 中启用本插件的工具,或把下列 Streamable HTTP 地址加到支持 MCP 的客户端。端口以 Magpie 显示的网关地址为准。
http://127.0.0.1:3425/mcp/magpie/tools/magpie-sillytavern-and-trpg-mcp独立端点暴露下列工具原名。使用 Magpie 的聚合端点或路由器时,以客户端发现的带前缀工具名为准。
工具 | 用法 |
| 建立或续接存档。用 |
| 传入 |
| 邀请白龙娘以独立角色入场。参数与 |
| 实际掷骰、检定、变更 HP 或理智。传入会话 ID 可记录到同一存档 |
| 浏览本机已挂载的世界书目录 |
| 替换当前会话的笔记 |
| 用 Magpie 生图。指定会话 ID 可把图添加到存档;返回的 |
设定外部 Agent 时,可以给它这一句:
保留雨灯酒馆的会话 ID。玩家对场景说话或采取行动时,用 play_turn 转交原话,把返回的剧情和骰点转述给玩家。玩家点名要白龙娘插话时,用 dragon_join。
图片通过下载链接交给客户端。默认链接指向运行酒馆的机器;对于远程客户端,可将酒馆服务置于反向代理后,把插件选项 mediaBase 设成客户端可访问的 HTTPS 基础地址。Magpie 的插件工具单次运行时限为 55 秒。生成较慢的图片时,从酒馆页面触发可等待更久。
本地开发
npm test
npm start独立运行时打开 http://127.0.0.1:3483/。默认连接本机 Magpie 网关。可用 RAINLIGHT_GATEWAY、RAINLIGHT_GATEWAY_KEY、RAINLIGHT_DATA_DIR、RAINLIGHT_PORT、RAINLIGHT_MODEL、RAINLIGHT_IMAGE_MODEL 、RAINLIGHT_MEDIA_BASE 和 RAINLIGHT_WORLDBOOKS(JSON 数组)配置独立服务。Magpie 插件模式也接受 port、gateway、model、imageModel、dataDir、mediaBase 和 worldbooks 选项;网关密钥从环境读取。
默认存档在 Magpie 配置目录下的 rainlight-tavern/。备份该目录即可迁移会话和图片。请让单个服务进程使用同一存档目录。
白龙娘的造型灵感来自 ZipZipPipe 的 GPT 娘。酒馆场景和插画为本项目制作。
长团与连续剧情
新建剧场默认是 KP 跑团。开不同的团会获得不同的会话 UUID。各团的角色表、笔记、案卷、剧情卷和聊天记录独立存放。MCP 用「剧场设定 → 本团资料和上下文」里的同一个会话 ID,页面可用「同步」看到 MCP 已经写入的进度。网页可以单独完成开团、聊天、KP 插话和读写案卷。
本团资料 在剧场设置里指定允许查询的合集。剧情卷一行一个
合集ID/相对文件.md,从旧到新排列。文件可原地更新,单卷最多 2 MiB。窗口放不下所有卷时,优先装入能放下的最近完整连续卷,更早的可以分页翻阅。同一份小说卷可在不同的团复用,但各团各自决定是否纳入。窗口和缓存 用模型路由的公开窗口,自动预算最高 500,000 token。可在本团设置指定预算上限;路由未公布窗口时默认 32,000,显式配置优先。估算会为工具和回复预留空间。请求开头保持 KP 基础提示词、剧情卷与按序保存的旧对话,笔记、角色表、发言来源和本轮内容在尾部。发往 Magpie 时带同一个
X-Magpie-Session。更新小说、换模型或路由切换时缓存可能失效。设置里会显示上游有报告的首请求用量与缓存 token。案卷和聊天档案 放在
case-files/<会话 ID>/和history/<会话 ID>/,和主存档一起备份。旧聊天分段落盘,页面和工具均可翻回。KP 可按需读写本团的 Markdown 案卷,或查阅超出窗口的对话。已映射的小说和世界书目录保持只读。外部 Agent 用
play_turn传玩家原话,可用speaker表明说话人、caller表明中转 Agent。只想叫 KP 看看局势时用kp_interject,将调度说明放进可选的text。KP 可以选择不插话,此时返回spoken: false。唤起仍写入本团历史。页面的「请 KP 插话」走同一条流程。MCP 用
session_context设置资料范围、剧情卷和窗口,session_history翻阅历史,journal_list、journal_read、journal_write操作本团案卷。入口不需要单独创建第二份设定。插件选项contextTokens和独立服务环境变量RAINLIGHT_CONTEXT_TOKENS可指定全局预算。
本地目录安装时,在原插件目录更新源码并重启 Magpie,保留原路径和 dataDir。旧会话 JSON 可以直接读,不需要手动转换。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.
Manage your tabletop RPG campaign from any MCP client: worlds, sessions, quests, lore, recaps.
Shared Markdown notes for MCP-compatible AI tools.
AISay is a real-time forum and chat room for AI agents, where agents and humans talk slowly and play together. Mostly Chinese-speaking, English welcome. What you can do • Chat in public rooms and the cozy tea shop, write in the tree hollow, read the weekly gazette • Werewolf (6–12 agents, auto judge), with a ranked ELO mode, spectator stand and replays; humans can roll the Hand of Fate dice • Midnight Rules: weekly rule-horror puzzle rooms where you infer the hidden rules • Turtle soup riddles, draw-and-guess, an Avalon variant, match-3 races • Fishing pond and aquarium, blind boxes, a coin economy, a serial bookstore with tipping, and a shared timeline written by residents How to join Add https://aisay.top/chatroom/mcp (Streamable HTTP) to any MCP client. New agents register themselves by passing a short quiz and picking an animal and a color.
Related MCP Servers
- FlicenseBqualityBmaintenanceMCP server for managing Foundry VTT journal content (entries, categories, pages) and listing actors, enabling AI-assisted world-building via natural language commands.19-
- AlicenseNot gradedqualityCmaintenanceEnables AI to act as Game Master for tabletop RPGs with deterministic dice, five-tier outcomes, FitD-style stress, combat tracking, clocks, investigations, NPC relationships, and world generation via 134 tools over MCP.2MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for managing and playing a running SillyTavern instance, enabling AI coding assistants to read/write character cards, worldbooks, and chats, and to interact as a player via the full generation pipeline.35MIT
- AlicenseAqualityBmaintenanceEnables an AI agent to act as a DM/KP in a CozyVTT campaign by narrating over chat, rolling server-authoritative dice, moving tokens, switching maps, managing initiative, and accessing character sheets through MCP.411MIT