
ubani-studio/clo3d-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
CLO3D 用の MCP サーバー Claude、Cursor、またはMCPクライアントから3D衣服の設計を制御します.
概要
Claude、Cursor、またはMCPクライアントからCLO3Dにご相談ください。 パターンを作成し、生地を交換し、シミュレーションを実行し、モデルをエクスポートします。 チャットウィンドウからすべて。 CLO3D を使うと、API の docs を掘らずに繰り返しタスクをスクリプトできるのが欲しかったです。 1. CLO3D 2. 3. プラグイン/clo3d mcp plugin.py を開きます。 4. ヒット [CLO MCP] が表示されます。 コンソールでプラグインが開始されました。 「このプロジェクトにどのようなパターンがあるのか」 - 「正面のボディス生地を赤にします」 - 「シミュレーションの100ステップを実行してGLBとしてエクスポート」 - 「すべてのカラーウェイのターンテーブルをエクスポート」 (plugin/clo3d mcp plugin.py) は CLO3D 内で動作します。 JSON コマンドの共有テンペディレクトリをポーリングする単一の Python ファイルで、CLO3D Python API を呼び出し、結果を返します。 外部の依存関係なし、ソケットなし、CLO3Dの組み込みPythonで動作します。 (src/clo3d mcp/) は、そのディレクトリにコマンドを記述し、応答を読み込む Python パッケージです。 MCP対応のクライアント(Claude、Cursorなど)は使用できます.
概要(AI 翻訳)
Claude、Cursor、またはMCPクライアントからCLO3Dにご相談ください。 パターンを作成し、生地を交換し、シミュレーションを実行し、モデルをエクスポートします。 チャットウィンドウからすべて。
CLO3D を使うと、API の docs を掘らずに繰り返しタスクをスクリプトできるのが欲しかったです。
クイックスタート
##1. CLO3Dでプラグインをロードする
1つのPythonファイル、依存関係なし。
- 開いたCLO3D 2.スクリプト > スクリプトエディタ
- [
plugin/clo3d_mcp_plugin.pyを開く - ヒット Run
コンソールの[[CLO MCP] Plugin startedと[CLO MCP] Listening for commands in: ...]が表示されます。
一度CLO3Dセッションで実行します。 Windows では、プラグインは CLO3D 自身のイベント ループによって運転されるネイティブ タイマーを通して聴きます、従って CLO3D は十分に使用可能にとどまります。 他のプラットフォームでは、ブロックループに戻ります。 スクリプトエディタは、プラグインがリスニングしている間に忙しくなります。 スクリプトを再実行すると、以前のリスナーが置換されます。
##2. AIクライアントを接続する
ロードコード:
Claude Desktop ([claude_desktop_config.jsonに追加]):
##3. 行く
こんなことを尋ねて下さい:
- 「このプロジェクトにどのようなパターンがありますか?」
- 「正面のボディス生地を赤にします」
- 「シミュレーションの100ステップはGLBとして輸出します」
- 「全彩のターンテーブルをエクスポート」
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
CLO3D MCP Server
Talk to CLO3D from Claude, Cursor, or any MCP client. Create patterns, swap fabrics, run simulations, export models. All from a chat window.
If you use CLO3D and you’ve wished you could script repetitive tasks without digging through the API docs, this is for you.
Your AI assistant MCP Server CLO3D Plugin CLO3D
Quick Start
1. Load the plugin in CLO3D
One Python file, no dependencies.
- Open CLO3D
- Script > Script Editor
- Open
plugin/clo3d_mcp_plugin.py - Hit Run
You’ll see [CLO MCP] Plugin started and [CLO MCP] Listening for commands in: ... in the console.
Run it once per CLO3D session. On Windows the plugin listens through a native timer driven by CLO3D’s own event loop, so CLO3D stays fully usable. On other platforms it falls back to a blocking loop: the Script Editor stays busy while the plugin listens. Re-running the script replaces the previous listener.
2. Connect your AI client
Claude Code:
claude mcp add clo3d -- uvx --from git+https://github.com/Ubani-Studio/clo3d-mcp clo3d-mcp
Claude Desktop (add to claude_desktop_config.json):
{
"mcpServers": {
"clo3d": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Ubani-Studio/clo3d-mcp", "clo3d-mcp"]
}
}
}
3. Go
Ask things like:
- “What patterns are in this project?”
- “Set the front bodice fabric to red”
- “Run 100 steps of simulation then export as GLB”
- “Export a turntable of all colorways”
What you get (46 tools)
Scene
| Tool | What it does |
|---|---|
get_project_info |
Project name, file path, CLO version, piece counts |
new_project |
Start fresh |
open_file |
Open .zprj, .zpac, .obj, .fbx, .avt |
save_project |
Save as .zprj |
get_garment_info |
Dump full garment metadata to JSON |
Patterns
| Tool | What it does |
|---|---|
get_pattern_count |
How many pieces |
get_pattern_list |
All pieces with names and indices |
get_pattern_info |
Full detail on one piece |
get_pattern_bounding_box |
Width and height |
set_pattern_name |
Rename a piece |
copy_pattern |
Duplicate at a given position |
delete_pattern |
Remove a piece |
flip_pattern |
Flip horizontal or vertical |
create_pattern |
Build a new piece from vertex points |
get_arrangement_list |
Get avatar arrangement points |
Fabrics
| Tool | What it does |
|---|---|
get_fabric_list |
All fabrics with indices |
add_fabric |
Load a .zfab or .jfab |
replace_fabric |
Swap an existing fabric |
assign_fabric_to_pattern |
Put a fabric on a pattern piece |
set_fabric_color |
Set PBR base color (RGB) |
get_fabric_for_pattern |
Check which fabric is on a piece |
Export
| Tool | What it does |
|---|---|
export_obj |
OBJ with options |
export_fbx |
FBX |
export_glb |
GLB (binary glTF) |
インストール
uvx --from git+https://github.com/Ubani-Studio/clo3d-mcp clo3d-mcp設定
{
"mcpServers": {
"clo3d": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Ubani-Studio/clo3d-mcp", "clo3d-mcp"]
}
}
}