Skip to main content
Glama
The Fortuneteller's Hand

The Fortuneteller's Hand

The Fortuneteller's Hand — 一个 RPG MCP 服务器

一个 MCP 服务器,扮演角色扮演游戏和 GM,使用 The Fortuneteller's Hand 的规则,这是我目前正在制作的一款原创桌面 RPG。Claude 读牌、投掷预兆、主持牌桌;玩家和 Claude 将轮流叙述展开的故事。

游玩体验

简短版,在安装任何东西之前:你先与占卜师坐下——你在哪里遇见他们,是抽任何牌之前唯一的选择。四种花色成为你性格的四个侧面;占卜师从每种花色中各抽一张牌,说出它所揭示的内容,你从这四句话中构建一个角色。 一旦你有了角色,你必须在出发前解读你的目标牌。

从那里开始,每个场景都以同样的方式运作:决定你在哪里,翻一张牌看看有什么动静,然后继续叙述。当故事触及另一颗心、某个隐藏之物,或需要运气转折时,你停下来,通过召唤预兆直接询问命运。命运也可能与你作对;当它发生时,你可以与之抗争。

这本质上是一款创意日志游戏。真正的乐趣在于你和占卜师共同构建的叙述,而不是赢得什么。动机、结局、追寻和携带不是要遵守的规则;它们是种子,是你角色心理和未来故事形态的四个起点。跟随它们去往它们指引的地方,或者让故事游走到别处。你描述得越多,故事回馈得越多。

这就是它的形态。完整机制见 RULES.md;更温和、更完整的指南见 HOW_TO_PLAY.md;一次实际会话的完整记录见 08-2026-Play-Example.md。如果你在故事中途忘记了自己的目标或四个侧面,只需请占卜师提醒你。

Related MCP server: mcp-tarot-draw

运行

快速安装

  1. 将 fortunetellers-hand-0.1.1.mcpb 下载到容易找到的地方。

  2. 双击它(不要拖入聊天窗口——只需双击文件本身)。它会在 Claude Desktop 中打开安装提示。

  3. 确认安装。

  4. 完全退出并重新打开 Claude Desktop。

  5. 开始新聊天,并拉入 start_game 提示——它会询问角色名称,然后你就可以开始了。

从源码运行

需要 Python 和 uv。

  1. 在此目录内运行 uv sync。

  2. 在 Claude Desktop 中:设置 → 开发者 → 编辑配置,然后添加:

    {
      "mcpServers": {
        "fortuneteller": {
          "command": "uv",
          "args": ["run", "--directory", "/absolute/path/to/learnMCP", "main.py"]
        }
      }
    }
  3. 完全退出并重新启动 Claude Desktop。

  4. 点击消息框附近的 + 图标 → 连接器 → 启用 "fortuneteller"。

  5. 开始新聊天并拉入 start_game 提示。

  6. 当它询问你的角色名称(player_name)时,填写它。

  7. 一旦提示作为消息框上方的芯片附加,点击发送或按回车——附加它本身不会提交。

影响

这个项目借鉴了几个地方。预兆的双骰解读,比较而非相加,深深得益于肖恩·汤姆金的 Ironsworn,我绝对喜欢它。反抗仪式“Not Like This”借用了 Yahtzee 的五骰、三掷、保留你想要的形状(而 Yahtzee 又源自波多黎各游戏“Jenerala”)。作为一款日志游戏,这很大程度上归功于蒂姆·哈钦斯的 Thousand Year Old Vampire,这款游戏证明了单人、提示驱动的玩法可以承载真正的分量。不可思议的游戏!最后,Max Moon 在整个过程中塑造了这个项目的基调。我崇拜 Max Moon 创作的一切。

对构建感到好奇?

这最初是为了以我感兴趣的方式学习 Model Context Protocol。工具/资源/提示的选择、状态设计、沿途发现并修复的一些真实错误,这些都写在 DESIGN.md 中。如果你有任何问题,或希望我修复或添加任何内容,请联系我。

隐私政策

  • 数据收集:此 MCP 不收集任何内容。

  • 使用和存储:不存储任何内容。所有游戏状态(你的角色、抽到的牌、所欠债务)仅在你的会话期间存在于内存中,并在会话结束时被丢弃。

  • 第三方共享:不与任何第三方共享任何内容,因为首先就没有收集任何内容。

  • 数据保留:不保留任何内容。

  • 联系信息:maria@mariasaha.com

Available Tools

11 tools
call_the_handCall the HandA

Trigger the Called Hand: an omen rolled doubles, so fate intrudes on the scene instead of answering the question.

Call immediately whenever cast_omen returns doubles=True — this isn't
the player's to invoke, Claude always calls it. Plays the oldest
outstanding debt card if any are owed (owed debt always comes due
first), otherwise deals a fresh card from the Fortuneteller's Hand
deck. Either way the landing must intrude on the scene — it costs
something, and the original question the omen asked stays unanswered.
If the player wants to fight the landed fortune, that's when they call
defiance (see defy_roll).

Takes no parameters. Not idempotent: mutates the shared debt row
(pops the oldest card) or the shared Hand deck (deals a fresh card).
Returns a dict with source ("debt_row" or "fresh_deal"), card (the
landed card's rank/suit/phrase/etc.), and a fixed note reminding you
the landing must intrude and the question stays unanswered.

Inputs: no named parameters.

cast_omenCast OmenA

Cast an omen: roll two ten-sided dice (light vs dark, compared not summed) to answer a real yes/no question with real stakes.

Call whenever a scene reaches something no one can know in advance —
other hearts, hidden things, or the turn of luck — or when a player
claims an uncertain, high-stakes action simply succeeded. At least one
omen must be asked before a scene can close. Not for material that just
needs new story content rather than a yes/no answer — use
draw_unclaimed_card for that instead.

hope: a plain sentence naming the real stakes being asked about — what
the asker hopes is true (e.g. "I hope the guard doesn't notice me").

Not idempotent: each call rolls fresh dice and increments an internal
counter that alternates who narrates the result. Doesn't mutate any
other game state. Returns a dict describing the roll: on doubles,
{hope, light, dark, doubles: True, reading} — no answer, the Hand is
called instead (see call_the_hand). Otherwise {hope, light, dark,
doubles: False, direction, gap, texture, complication_rank,
complication_meaning, grounds_by} — direction and gap give the answer's
shape, grounds_by says whether the player or Claude narrates the
complication.

Inputs: hope (required).

complete_goalComplete GoalA

Mark the current Sitting's Goal as completed, once the story has actually resolved it.

Call at most once per Sitting, only after an Omen's grounding has landed
and, checked against the Goal's saved interpretation (get_sheet's 'goal'
field), genuinely resolves what the Goal meant — never call this
preemptively, ahead of the grounding that earns it. Distinct from
draw_goal_card, which deals the Goal at the start of the Sitting;
complete_goal only marks it finished later in play.

Takes no parameters. Idempotent in effect (repeated calls leave the flag
True) but should only be invoked the one time the resolution actually
happens. Sets and returns goal_completed as True.

Inputs: no named parameters.

defy_resolveResolve DefianceA

Lock in the current defiance dice as final, deal debt, and reset the ritual.

Call once, after defy_roll has been called at least once and the
player is done rolling (whether by choice or because three rolls were
taken). Ends the current defiance ritual — a subsequent defy_roll call
starts a fresh one from scratch.

Takes no parameters. Raises ValueError if called before any defy_roll
in this ritual. Not idempotent: mutates the shared debt row, adding
one debt card per roll taken during the ritual (more rolls, more debt,
win or lose), and clears the ritual's dice/roll-count state. Returns a
dict with final_dice, rolls_taken, pattern and bend (None if no
scoring pattern was hit — otherwise three of a kind/"turn the blade",
small straight/"stay the hand", full house/"take the cup", or five of
a kind/"seize the pen"), and debt_dealt (the cards just added to the
debt row).

Inputs: no named parameters.

defy_rollRoll Defiance DiceA

Roll (or re-roll) the five defiance dice, Yahtzee-style, when a player wants to fight a landed fortune from call_the_hand.

Call once to make the first roll (keep=None or []), then optionally
call again up to two more times to re-roll, keeping whichever dice the
player wants to hold between rolls. Up to three rolls total; call
defy_resolve once the player is satisfied with the dice (or after the
third roll) to lock in the result and deal debt.

keep: the die face values (1-6) to hold onto from the current dice
before rolling the rest fresh — e.g. keep=[6, 6] to hold two sixes.
Must be a subset of what's actually currently showing (raises
ValueError otherwise), and must be empty/None on the very first roll of
a ritual (there are no dice to keep yet).

Not idempotent: mutates shared dice/roll-count state across calls
within one defiance ritual; each extra roll taken also means more debt
dealt later at defy_resolve. Returns a dict with dice (sorted current
values), rolls_taken, rolls_remaining, and current_pattern/current_bend
if the dice already match a scoring pattern (three of a kind, small
straight, full house, or five of a kind — see defy_resolve).

Inputs: keep.

draw_cross_cardDraw Cross CardA

Draw one card, blind, into a position on the Sitting's cross — the four-drive character-creation spread built once at the start of every campaign.

Call once per drive during the Sitting, after the player has chosen a
suit for that drive: Motivation, then Seek, then Carry, then Ends, in
that order. Each of the four positions and each of the four suits can
only be used once each — calling this with a position or suit already
used raises ValueError. "Blind" means the card is drawn face-down from
the matching suit's own 13-card pile without looking; don't reveal its
phrase to the player until all four drives have a card.

suit: which of the four card suits (♥ Hearts, ♦ Diamonds, ♣ Clubs,
♠ Spades) the player chose for this drive — each suit represents a
different domain of meaning (love/loyalty, wealth/ambition,
labor/growth, death/conflict).
position: which of the four drives this card fills — Motivation, Seek,
Carry, or Ends.

Not idempotent: mutates the shared cross and removes a card from the
suit's pile. Returns the drawn card as a dict with rank, suit,
suit_name, domain, rank_meaning, and phrase.

Inputs: suit (required), position (required).

draw_goal_cardDraw Goal CardA

Deal the Goal: draw one card face-up from whatever's left across all four suit piles, once all four drives have been drawn.

Call once, during the Sitting, right after all four calls to
draw_cross_card are done (one per drive: Motivation, Seek, Carry, Ends)
and the player has described their character. Unlike draw_cross_card,
this draws from the combined remainder of all four suit piles at once,
not one specific suit — and it's revealed to the player immediately,
not held back. After dealing it and asking what it means, pass the
player's answer to record_goal_interpretation.

Takes no parameters. Raises ValueError if called before all four cross
positions are filled, or if a Goal has already been dealt this Sitting.
Not idempotent: mutates the shared Goal and the relevant suit pile.
Returns the drawn card as a dict with rank, suit, suit_name, domain,
rank_meaning, and phrase.

Inputs: no named parameters.

draw_unclaimed_cardDraw Unclaimed CardA

Draw one card from the Fortuneteller's Hand deck to open or refuel a scene with new story material.

Call at the start of every new scene, and again mid-scene any time the
story genuinely needs new material rather than a yes/no answer — for a
yes/no question, use cast_omen instead. Read the returned phrase cold,
before narrating anything else; only afterward do you narrate the scene
forward and let its meaning land in the fiction.

Takes no parameters. Not idempotent: each call removes and returns a
different card from the shared, shuffled deck (auto-reshuffles when the
deck runs out). Returns a dict with rank, suit, suit_name, domain,
rank_meaning, and phrase.

Inputs: no named parameters.

get_sheetGet Character SheetA
Read-only

Read the current character sheet: the Sitting's cross, Goal, debt row, and whether the Goal is completed.

Call any time you need to check saved state rather than re-deriving
it — for example, checking the Goal's saved interpretation before
calling complete_goal, or checking goal_completed before deciding
whether to close the campaign at a scene's end. Read-only: never
mutates game state.

player_name: must exactly match the name already set via
name_character for the character currently in play; raises ValueError
if no character has been named yet, or if the name doesn't match the
current character.

Returns a dict with cross (the four drive-to-card mapping), goal (the
dealt Goal card plus its recorded interpretation, or None if not yet
dealt), debt_row (list of outstanding debt cards), and goal_completed
(bool).

Inputs: player_name (required).

name_characterName CharacterA

Set the name of the character being created for a new Sitting.

Already called automatically, once, when the start_game prompt runs —
you typically won't need to call this tool yourself. It exists as a
standalone tool mainly so get_sheet and other tools have a name to
validate against. Call it directly only if you need to (re)name a
character outside the normal start_game flow.

player_name: the player-chosen name for their character. No format
constraints.

Not idempotent: overwrites the shared character name each time it's
called, with no confirmation or uniqueness check. Returns
{"player_name": player_name}.

Inputs: player_name (required).

record_goal_interpretationRecord Goal InterpretationA

Save the player-and-Claude-agreed meaning of the Goal card onto the Goal, for later reference.

Call once, during the Sitting, right after the player has answered what
the Goal means and Claude has reflected that answer back in a sentence
or two — pass that reflected sentence in. This becomes the saved
reference that complete_goal later checks against (via get_sheet's
'goal' field) to judge whether a moment in play genuinely resolves the
Goal.

interpretation: a plain-language sentence or two capturing what the
Goal means for this character — Claude's own reflected summary, not a
verbatim quote of the player's answer.

Raises ValueError if called before draw_goal_card has dealt a Goal.
Not idempotent: overwrites any existing interpretation on the shared
Goal. Returns the full updated Goal card dict, including the new
'interpretation' field.

Inputs: interpretation (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.9/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool occupies a distinct step in the game flow—character creation, omen resolution, defiance, or state reading—and the descriptions explicitly state when to call each. Even though several tools draw cards or roll dice, their triggers and parameters are clearly separated, so an agent would not confuse them.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with lowercase and underscores, using clear action words like draw, cast, call, defy, get, complete. The only slight variation is 'call_the_hand' which includes an article, but it's still a verb-phrase pattern, so the naming is highly predictable.

    Tool Count5/5

    Eleven tools is appropriate for this game system, covering character building, scene resolution, and state management without being excessive. Each tool serves a concrete purpose, and the count falls squarely in the recommended 3-15 range.

    Completeness5/5

    The tool set covers the full lifecycle of a Sitting: naming, cross and goal drawing, interpretation recording, scene omen and hand mechanics, defiance rituals, unclaimed cards, state inspection, and goal completion. There are no obvious missing operations that would force an agent to work around gaps.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that draws tarot cards from the 78-card deck and interprets them for your situation, using StupidAPIs with an X-API-Key required.
      13 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server providing true randomness capabilities to Claude, enabling cryptographically secure random number generation for games, decision-making, sampling, simulations, and any operation requiring genuine randomness.
      13
      2
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      An MCP server that provides 18 tools for dice rolling, luck tests, character management, world state, combat, and save/load, enabling an AI game master to run a solo-play gamebook entirely through deterministic game logic.
      18
      1
      -