Skip to main content
Glama
yanjingzhaisun

cozyvtt-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COZYVTT_URLYesYour CozyVTT instance URL (e.g., http://localhost:8899)
COZYVTT_EMAILYesDM account email (e.g., dm@example.local)
COZYVTT_PASSWORDYesDM account password
COZYVTT_CAMPAIGN_IDYesTarget campaign UUID

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
campaign_statusA

实例健康 + 战役状态 + 当前地图。健康检查用 GET /health(200 即活)。

chat_readA

翻聊天记录(注意:DICE_ROLL 类不入聊天史,骰史看 events_poll)。

events_pollA

拉取 seq > since 的实时事件(玩家发言/骰子/移动),含骰史。 返回 {events, latest_seq};把 latest_seq 存下当下次的 since 即可增量拉。

map_listC

地图列表。

initiative_stateA

查先攻(最近一条 initiative.state 广播;无则提示尚未开战)。

character_listC

角色列表(战役 roster)。

character_getB

读角色卡全量(卡面结构随战役系统:5e/PF2e/SR6/CoC7e 各自 schema)。

character_validateB

用角色卡自身 gameSystem 的 Zod schema 重验 data(服务器侧校验)。 返回 {isValid, errors?}——校验不通过也是 200,看 isValid 字段。

creature_searchA

Open5e SRD + 战役自定义怪库检索。source: srd|custom。 系统门:source=srd 仅 DND_5E 战役(Open5e 是 D&D 5e 数据源);custom 不限系统。

chat_sendB

DM 叙事 / NPC 台词。type 仅接受 DM / PLAYER(上游校验,2026-09-04 实测)。

dice_rollA

公证骰,如 1d20+5 / 2d6 / 4d6kh3。is_secret=true 暗骰(仅 DM 可见)。 客户端侧最小间隔 2.1s(WS 限流 30/min),排队不报错。

map_switchB

切当前图(WS 会广播 map.changed)。

token_addC

放 token 到地图(DM only)。

token_moveA

移动 token(REST PUT position;WS 广播 map.changed 同步全桌)。

token_hpA

改 token HP(delta 正=治疗 负=伤害,播报全桌 character.hp.updated)。

initiative_manageA

先攻管理(全 DM-only)。 action: add / remove / roll / set / reorder / start / next / end。

  • add: token_id + map_id

  • remove: token_id

  • roll: token_id + map_id(expression 可选;服务器按战役系统自行推导骰式—— 5e=敏捷+卡面 initiativeBonus,PF2e 用 usedStat,SR6 用自身先攻骰,客户端给的 expression 仅在无法推导时兜底。系统门:CoC7e 不骰先攻、DEX 排序,请 add 后直接 start,或用 set 手动定值)

  • set: token_id + map_id + value(手动定先攻值,服务器按值重排序)

  • reorder: ordered_token_ids(自定义回合顺序,覆盖值排序) 状态经 initiative_state / events_poll 回收。

character_updateA

局部更新角色卡(SAN/HP/Luck/MP/法术位等结算由调用方算好传入,桥不做规则计算)。 data 为要 PUT 的字段 dict。

character_createA

创建角色卡并直接加入当前战役。gameSystem 自动继承战役系统 (服务器会按该系统 Zod schema 校验 data,校验失败返回 400)。 data 为卡面字段 dict(结构随系统:5e 见上游 dnd5e.ts,CoC7e 见 callOfCthulhu7e.ts)。 建完可用 character_validate 复查。

token_place_creatureC

调怪上图:读怪库模板 → 以模板名/图放置 token。

session_manageB

场次管理(DM only)。action: start / pause / end。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/yanjingzhaisun/cozyvtt-mcp'

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