Skip to main content
Glama
MCP Dungeon Game
by bellsanct

MCP放置型ダンジョンゲーム

MCP (Model Context Protocol) サーバーとして実装された放置型ダンジョンクローラーゲームです。ダンジョンを探索し、装備を集め、強くなりましょう - すべて会話を通じて!

特徴

  • 装備システム: 4つの装備スロット(武器、盾、防具、アクセサリ)と4つのステータス(攻撃力、防御力、速度、運)

  • ダンジョン探索: 時間ベースのダンジョン攻略と自動戦闘

  • ドロップシステム: 様々なレアリティの装備ドロップ(コモン、レア、エピック、レジェンダリ)

  • イベントシステム: 落とし穴、毒の罠、宝箱などのランダムイベント

  • バトルログ: 詳細な戦闘記録と統計

  • 暗号化セーブデータ: ローカルに暗号化されたゲーム進行状況

  • サーバー不要: 完全クライアントサイドで動作

Related MCP server: Discord Decision MCP

インストール

npm install
npm run build

Claude Desktopでの使用方法

Claude Desktopの設定ファイルに以下を追加してください:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "idle-game": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-idle-game/dist/index.js"]
    }
  }
}

始め方

  1. ゲームの初期化:

    パスワード"mysecretpass"で新しいゲームを初期化して
  2. キャラクター作成:

    "勇者"という名前でプレイヤーを作成して
  3. ステータス確認:

    ステータスを見せて
  4. ダンジョン探索:

    利用可能なダンジョンを教えて
    初心者の洞窟を探索開始
    進行状況を確認して
  5. 装備管理:

    インベントリを見せて
    鋼の剣を装備して

ゲームの仕組み

ステータス

  • 攻撃力: 戦闘で与えるダメージ

  • 防御力: 受けるダメージを軽減

  • 速度: ダンジョン完了時間を短縮(1ポイントにつき2%、最大50%短縮)

  • 運: クリティカルヒット率、回避率、ドロップ率上昇

戦闘

  • 自動ターン制戦闘シミュレーション

  • クリティカルヒットは2倍ダメージ

  • 防御力で受けるダメージを軽減(ランダム要素あり)

  • 運は攻撃面(クリティカル)と防御面(回避)の両方に影響

イベントシステム

  • 各階層でランダムイベントが発生

  • ポジティブイベント: 宝箱、癒しの泉、隠し通路

  • ネガティブイベント: 落とし穴、毒の罠、奇襲攻撃

  • 運が高いほど良いイベントが起きやすい

ドロップ

  • 敵ごとに基本ドロップ率設定

  • 運がドロップ確率とレアリティに影響

  • ボス敵は高いドロップ率

  • 装備レアリティがステータスに影響

セーブデータの保存場所

ゲームデータは以下に保存されます:

  • macOS/Linux: ~/.mcp-idle-game/

  • Windows: C:\Users\<username>\.mcp-idle-game\

ファイル:

  • player_data.enc: 暗号化されたゲームセーブ

  • key.enc: 暗号化キーデータ

開発

# 開発時の自動ビルド
npm run watch

# ビルド
npm run build

# 直接実行
npm start

セキュリティについて

セーブデータはAES-256-GCMで暗号化され、パスワード派生キー(PBKDF2、100,000回反復)を使用します。パスワードは保存されないため、必ず覚えておいてください!

ライセンス

MIT

Available Tools

15 tools
buy_itemA

ショップからアイテムを購入します。ゴールドを消費してインベントリに追加されます。探索中は購入できません。

Inputs: item_id (required), save_key (required).

check_progressC

現在のダンジョン探索の進行状況を確認します。完了している場合は結果を処理します。

Inputs: save_key (required).

create_playerA

名前を付けて新しいプレイヤーキャラクターを作成します。ゲームごとに一度だけ実行できます。

Inputs: name (required), save_key (required).

dungeon_infoC

特定のダンジョンの詳細情報を取得します。

Inputs: dungeon_id (required), save_key (required).

equip_holding_itemC

インベントリから持ち物を装備します。持ち物には薬草(HP回復)やおまもり(イベント回避)があります。

Inputs: item_id (required), slot (required), save_key (required).

equip_itemC

インベントリからアイテムを装備します。アイテムIDはview_inventoryで確認できます。

Inputs: item_id (required), save_key (required).

init_gameA

新しいゲームを初期化します。セーブファイルと暗号化キーを作成します。他の操作の前に必須です。

Inputs: save_key (required).

list_dungeonsC

利用可能なすべてのダンジョンとその情報を一覧表示します。

Inputs: save_key (required).

shop_inventoryA

ショップで販売中の商品一覧を表示します。装備と持ち物アイテムを購入できます。探索中でも閲覧可能ですが、購入は待機中のみです。

Inputs: save_key (required).

start_dungeonC

ダンジョンの探索を開始します。時間ベースの活動なので、後で確認する必要があります。

Inputs: dungeon_id (required), save_key (required).

unequip_holding_itemB

特定のスロットから持ち物を外してインベントリに戻します。

Inputs: slot (required), save_key (required).

unequip_itemB

特定のスロットからアイテムを外してインベントリに戻します。

Inputs: slot (required), save_key (required).

view_battle_logC

探索中のダンジョンの詳細な戦闘ログを表示します。

Inputs: save_key (required).

view_inventoryC

インベントリ内のすべてのアイテムを表示します。

Inputs: save_key (required).

view_statusC

キャラクターの状態、ステータス、装備、現在の活動を表示します。

Inputs: save_key (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 15 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap between equip_item/equip_holding_item and unequip_item/unequip_holding_item, which could cause confusion about when to use each. However, descriptions clarify that 'holding items' are consumables like herbs and charms, while 'items' are equipment, helping to differentiate them.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case, such as buy_item, create_player, and view_inventory. There are no deviations in naming conventions, making the set predictable and easy to understand.

    Tool Count5/5

    With 15 tools, the count is well-suited for a dungeon game server, covering core aspects like character management, dungeon exploration, inventory, and shop interactions without being overwhelming or too sparse.

    Completeness4/5

    The tool set provides comprehensive coverage for a dungeon game, including initialization, character creation, dungeon selection, exploration, inventory management, and shop interactions. A minor gap is the lack of a tool for saving or loading game progress explicitly, but init_game handles save file creation, and other tools imply ongoing state management.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to request user decisions and send notifications via Discord when human intervention is required during autonomous tasks. It supports blocking questions with custom options, progress reporting, and persistent state for seamless remote task management.
      8
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an AI assistant to drive a personal Discord account as if it were the user: reading and sending messages and DMs, managing servers, channels, roles, permissions, threads, invites and friends, joining voice, and clicking buttons, menus, modals and slash commands. An optional hardened mode runs it as an always-on local service with loopback-only HTTP access, encrypted credentials, an allowlist of reviewed tools, and an AFK session that keeps push notifications flowing.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to operate a chat server by reading, sending, and managing messages, direct messages, reactions, channels, roles, and members through bot tools.
      PolyForm Noncommercial 1.0.0