mira_live2d
mira_live2d · DSH 看板娘プラグイン
xhqm-live2d(WordPress プラグイン)を DSH ネイティブプラグインとして移植:看板娘が会話インターフェースのオーバーレイとして表示され、モデルは MCP ツールで発話・表情切り替え・モデル切り替え・動作切り替えができ、「思考 / 待機確認 / アイドル」に応じて表情が自動で切り替わります。
インストール(任意の DSH web profile)
本プラグインは依存関係のない純 ESM パッケージです:ホスト側は Node 組み込みモジュールのみを使用し、ブラウザ側の実行ライブラリは assets/lib/ にバンドルされています。
1. パッケージのインストール
dsh plugin --profile web add github:xhqm-xyz/mira_live2dクローン後にローカルパスでインストールすることもできます:
git clone https://github.com/xhqm-xyz/mira_live2d.git
dsh plugin --profile web add ./mira_live2d2. profile に登録
~/.dsh/profiles/web/cordis.patch.yml の insert リストに追記:
- id: mira_live2d
name: 'mira_live2d'
config:
model: StellaMira # 初始模型(model 目录名)
position: right
tts:
enabled: false
provider: openai # 或 alibaba;base 可覆盖为任意 OpenAI 兼容端点
keyEnv: 'OPENAI_API_KEY' # 建议用环境变量;或用 key 填字面量(仅本机私有配置)キーは
tts.keyEnv(環境変数名)またはtts.key(ローカルのプライベート設定ファイルのみ)で指定してください。リポジトリにコミットしないでください。
3. 再起動
dsh webページを更新すると、看板娘が会話インターフェースの右下に表示されます。
Related MCP server: live2d-to-agent
モデル
モデルは model/ ディレクトリに配置し、各モデルはサブディレクトリに置きます。ディレクトリ内に *.model3.json が必須です(model/README.md 参照)。mira_list_models が自動スキャンします。
フロントエンド操作
ドラッグ移動:マウス / シングルフィンガードラッグ(位置は localStorage に記憶)
ズーム:ホイール(デスクトップ)/ ピンチ(モバイル)、0.25× ~ 3×(ズームも記憶);モバイルはデフォルトで
mobileScaleに従って拡大縮小メニュー:右クリック(デスクトップ)/ 長押し(モバイル)で表情 / 動作メニューを表示
表情の重ね合わせ:メニューの表情項目は重ね合わせトグルで、クリックでオン/オフ(アクティブ項目には
✓表示);「デフォルト表情」で全表情と重ね合わせをクリアバブル:
mira_speak/mira_bubble/ 思考待機中のヒントがここに表示されます
MCP ツール(モデルが呼び出し可能、接頭辞 mira_)
ツール | 説明 |
| オンラインかどうか、表示/非表示、現在のモデル/表情/動作/発話、表情/動作リスト、スイッチ、思考待機設定、切り替え可能なモデル |
| model フォルダ内の全モデルを一覧表示 |
| model3.json を解析して表情/動作の一覧を返す |
| 表示するモデルを切り替え |
| 表情を切り替え/重ね合わせ(空文字でデフォルトに戻す; |
| 動作グループを再生 |
| TTS 音声合成 + バブル(モデルに発話させる) |
| バブルのみ表示し、読み上げはしない |
| 表示 / 非表示 |
| 表情システムのオン/オフ |
| 動作再生のオン/オフ |
| thinking / awaiting / idle を手動設定 |
| 思考/待機表情、バブル、アイドルクリア遅延を設定 |
| 現在の設定を読み取る(TTS キーは平文で返さない) |
表情:排他と重ね合わせ
デフォルトの
mira_set_expression(name)は排他置換:新しい表情が前の表情をフェードアウトさせます。mira_set_expression(name, stack=true)は重ね合わせトグル:その表情を重ね合わせスタックに追加し、現在の排他表情や他の重ね合わせ表情と共存できます(exp3.json のBlend:Add加算に依存)。右クリック / 長押しメニューの表情項目は常に重ね合わせトグル(
✓はオンを示す)、1 回クリックでオン、もう 1 回でオフ。mira_set_expression("")(空文字)でデフォルトに戻す:排他表情 + 全重ね合わせ表情をクリア。
設定項目
すべてオプション、デフォルト値は lib/index.js の DEFAULTS を参照:
キー | デフォルト | 説明 |
|
| 全体スイッチ |
|
| 初期モデル(model ディレクトリ名) |
| プラグイン | モデルディレクトリの上書き |
|
| キャンバス内部解像度 |
|
| 初期 |
|
| モバイルの拡大縮小パーセント |
|
| 初回表示時の操作ヒント |
|
| コマンドポーリング間隔 |
|
| 思考時の表情/バブル(デフォルト空) |
|
| 待機確認時の表情/バブル(デフォルト空) |
|
| アイドル後に表情をクリアする遅延 |
|
| TTS スイッチ |
|
|
|
| provider デフォルト | インターフェースベース URL |
|
| API キー(リテラル) |
|
| API キーを格納する環境変数名 |
| provider デフォルト | モデル / 音声 |
思考 / 待機表情のトリガー
モデルが生成を開始(agent が
runningに移行)→mood: thinkingモデルが
ask_user_questionを呼び出した後 →mood: awaitingモデルがこのターンを終了(agent が
idleに戻る)→mood: idle、idleClearMs後にデフォルト表情に戻るmira_set_moodで手動設定も可能
サードパーティコンポーネント
assets/lib/ には PixiJS(MIT)、pixi-live2d-display(MIT)、Live2D Cubism Core(プロプライエタリ、Live2D Software License Agreement)がバンドルされています。各コンポーネントの著作権とライセンス全文は THIRD-PARTY-NOTICES.md を参照してください。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceEnables chatting with an AI waifu character through MCP tools, with user management and dialog history.4MIT No Attribution- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control a Live2D desktop pet's expressions and actions via MCP protocol.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to switch character portraits (2D images or VRM 3D models) based on emotion, with support for multiple transitions and real-time updates via WebSocket.201AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables text-to-speech conversion using the Kokoro TTS model, running fully locally with native JavaScript. Supports multiple voices, speed control, and integrates with MCP-compatible clients.14MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server exposing the AceDataCloud Fish Audio API (text-to-speech with voice conditioning)
Generate, edit, and deploy immersive 3D/WebGL web projects from any MCP assistant.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/xhqm-xyz/mira_live2d'
If you have feedback or need assistance with the MCP directory API, please join our Discord server