KM

kveto/mohomcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

25 stars 10 forks 品質 71 トレンド 11MIT

Moho 14 アニメーションソフトウェア用の MCP ブリッジ サーバー - AI エージェント経由で Moho を制御

概要

MCP (Model Context Protocol) サーバ — Claude Desktop や Claude Code などの AI アシスタントが読み書き、アニメーション化、視覚的に MOHO アニメーションプロジェクトを操作できるようにします。 1。 — MOHO 内で実行されるファイルベースの IPC サーバーは、MOHO の Lua 5.4 API 2. を使用して読み取り/書き込み操作を処理します。 — Node.js は、MCP プロトコル (stdio) をファイルベース JSON-RPC 3 にブリッジするプロセスを処理します。 — キーボードのショートカットとツールの参照データを Moho マニュアルから処理します。 2つ以上の操作が必要な場合は、常に Batch execute を好む。 10件の業務を一括して1名を同時に受けます。 moho-plugin/ コンテンツを MOHO のスクリプトフォルダーにコピーするか、 指定したインストールスクリプトを使用します。 install-plugin.bat を実行 (または C:\Program Files\Moho 14\Resources\Support\Scripts\Menu に手動でコピー) chmod +x install-plugin.sh && ./install-plugin.sh (または /Applications/Moho 14/Moho Pro.app/Contents/Resources/Support/Scripts/Menu/ に手動でコピーします) コピーするファイル: - MohoMCP Server.lua - MohoMCP Poller.lua - json.

概要(AI 翻訳)

MCP (Model Context Protocol) サーバ(Moho Pro 14) — Claude Desktop や Claude Code などの AI アシスタントが、MOHO アニメーションプロジェクトを読み取り、書き込み、アニメーション化、視覚的に操作できるようにします。

十分に交差プラットホーム:WindowsおよびmacOS。

アーキテクチャ

3つのコンポーネント:

1。 Moho Lua Plugin — MOHO 内で実行されるファイルベースの IPC サーバーは、MOHO の Lua 5.4 API による読み取り/書き込み操作を処理します。 2. MCP Bridge Server** — MCP プロトコル (stdio) をファイルベース JSON-RPC にブリッジする 3。Static Knowledge Resource — キーボードショートカットとツールのリファレンスデータをMohoマニュアルから

機能

| 機能 | 説明 | お問い合わせ |Read | ドキュメント構造、レイヤー、ボーン、アニメーションキーフレーム、メッシュデータ | |Write | 骨・層の変形、キーフレームの作成・削除、補間変更、レイヤーの名前変更 | |** | レンダリングされたシーンフレームやフルMOHO UIスクリーンショットをキャプチャ | |Interact | マウスクリック、ドラッグ、キーボードショートカットをMOHOウィンドウへ送信 | |Know | すべてのMoho 14ツールとキーボードショートカットの組み込みリファレンスデータ |

利用できる用具 (26)

読み込み専用ツール

| ツール | 概要 | お問い合わせ

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MohoMCP

An MCP (Model Context Protocol) server for Moho Pro 14 — enabling AI assistants like Claude Desktop and Claude Code to read, write, animate, and visually operate MOHO animation projects.

Fully cross-platform: Windows and macOS.

Architecture

┌─────────────────────┐    File-based IPC     ┌──────────────────────┐
│  MCP Bridge Server  │◄──────────────────►   │  Moho Lua Plugin     │
│  (TypeScript/Node)  │  $TMPDIR/moho-mcp/    │  (runs inside MOHO)  │
└────────┬────────────┘   JSON-RPC 2.0        └──────────────────────┘
         │ MCP Protocol (stdio)
┌────────▼────────────┐
│  MCP Client/Host    │
│  (Claude Desktop,   │
│   Claude Code, etc) │
└─────────────────────┘

Three components:

  1. Moho Lua Plugin — File-based IPC server running inside MOHO, handles read/write operations via MOHO’s Lua 5.4 API
  2. MCP Bridge Server — Node.js process bridging MCP protocol (stdio) to file-based JSON-RPC
  3. Static Knowledge Resources — Keyboard shortcuts and tool reference data from the Moho manual

Capabilities

Capability Description
Read Query document structure, layers, bones, animation keyframes, mesh data
Write Set bone/layer transforms, create/delete keyframes, change interpolation, rename layers
See Capture rendered scene frames or full MOHO UI screenshots
Interact Send mouse clicks, drags, and keyboard shortcuts to the MOHO window
Know Built-in reference data for all Moho 14 tools and keyboard shortcuts

Available Tools (26)

Read-Only Tools

Tool Description
document_getInfo Document metadata (name, path, dimensions, FPS, frame range)
document_getLayers Full layer tree with hierarchy
layer_getProperties Detailed layer properties (type, visibility, transform)
layer_getChildren Direct children of a group layer
layer_getBones List bones in a bone layer
bone_getProperties Bone details (position, angle, scale, parent)
animation_getKeyframes Keyframes for a channel on a layer
animation_getFrameState Full layer state at a specific frame
mesh_getPoints Point positions in a vector layer
mesh_getShapes Shape data (fill, stroke, curves)

Write Tools

Tool Description
bone_setTransform Set bone angle/position/scale at a frame (creates keyframes)
bone_selectBone Select a bone in the MOHO UI
animation_setKeyframe Set keyframe value (scalar or vec2) on any channel
animation_deleteKeyframe Remove a keyframe at a specific frame
animation_setInterpolation Set easing mode (linear, smooth, ease_in, ease_out, step)
document_setFrame Navigate to a specific frame on the timeline
layer_setTransform Set layer translation/rotation/scale at a frame
layer_setVisibility Show or hide a layer
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "moho-mcp": { "command": "node", "args": ["C:/path/to/MohoMCP/bridge/dist/index.js"] } } }