@chocodrop/mcp 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +19 -0
- package/bin/chocodrop-mcp.js +13 -0
- package/package.json +42 -0
- package/runtime/.chocodrop-mcp-runtime +1 -0
- package/runtime/asset-bridge.js +460 -0
- package/runtime/mcp-server.js +107 -0
- package/runtime/site/examples/basic/README.md +38 -0
- package/runtime/site/examples/basic/index.html +1730 -0
- package/runtime/site/examples/bookmarklet-v2.html +141 -0
- package/runtime/site/examples/bookmarklet.html +126 -0
- package/runtime/site/examples/lofi-room/index.html +2570 -0
- package/runtime/site/examples/lofi-room/sandbox-lite.html +124 -0
- package/runtime/site/examples/music-garden/index.html +2150 -0
- package/runtime/site/examples/pixel-ocean/index.html +1780 -0
- package/runtime/site/examples/react-three-fiber/AdvancedExample.jsx +338 -0
- package/runtime/site/examples/react-three-fiber/App.jsx +97 -0
- package/runtime/site/examples/react-three-fiber/README.md +294 -0
- package/runtime/site/examples/react-three-fiber/package.json +25 -0
- package/runtime/site/examples/sdk-test/README.md +70 -0
- package/runtime/site/examples/space/index.html +1975 -0
- package/runtime/site/examples/toy-city/index.html +2288 -0
- package/runtime/site/examples/wabi-sabi/index.html +2515 -0
- package/runtime/site/getting-started.html +84 -0
- package/runtime/site/index.html +1370 -0
- package/runtime/site/public/CommandUI.js +6341 -0
- package/runtime/site/public/LiveCommandClient.js +432 -0
- package/runtime/site/public/SceneManager.js +5493 -0
- package/runtime/site/public/bookmarklet.js +206 -0
- package/runtime/site/public/bootstrap.js +50 -0
- package/runtime/site/public/chocodrop-demo.umd.js +24020 -0
- package/runtime/site/public/chocodrop-demo.umd.min.js +24020 -0
- package/runtime/site/public/chocodrop.esm.js +2 -0
- package/runtime/site/public/html-sandbox/frame.js +865 -0
- package/runtime/site/public/icons/icon-192.png +0 -0
- package/runtime/site/public/icons/icon-512.png +0 -0
- package/runtime/site/public/icons/icon-maskable-512.png +0 -0
- package/runtime/site/public/immersive-launcher.js +175 -0
- package/runtime/site/public/immersive.html +165 -0
- package/runtime/site/public/index.html +1011 -0
- package/runtime/site/public/index.js +9 -0
- package/runtime/site/public/load-chocodrop.js +25 -0
- package/runtime/site/public/load-three.js +26 -0
- package/runtime/site/public/manifest.webmanifest +59 -0
- package/runtime/site/public/pwa-bootstrap.js +128 -0
- package/runtime/site/public/sample-card.svg +15 -0
- package/runtime/site/public/service-worker.js +117 -0
- package/runtime/site/public/translation-dictionary.js +257 -0
- package/runtime/site/public/xr/xr-ui.css +338 -0
- package/runtime/site/public/xr-viewer.html +263 -0
- package/runtime/site/src/client/local-bridge.js +83 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Basic Three.js Example
|
|
2
|
+
|
|
3
|
+
最もシンプルなChocoDrop統合例です。
|
|
4
|
+
|
|
5
|
+
> ⚠️ **注意**: この例は**リポジトリをcloneした人(2%の人)向け**です。
|
|
6
|
+
> daemon のみを使う場合は、[vanilla-threejs の例](../vanilla-threejs/) を参照してください。
|
|
7
|
+
|
|
8
|
+
## 起動方法
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
# ルートディレクトリで
|
|
12
|
+
npm run dev
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
別のターミナルで:
|
|
16
|
+
```bash
|
|
17
|
+
# examplesサーバー起動
|
|
18
|
+
npm run example:basic
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
ブラウザで http://localhost:8000 を開いて `index.html` をクリック
|
|
22
|
+
|
|
23
|
+
## 使い方
|
|
24
|
+
|
|
25
|
+
1. **@キー** でコマンドUI起動
|
|
26
|
+
2. **自然言語入力**: 「ドラゴンを右上に」「桜を中央に」
|
|
27
|
+
3. **Enter** で実行
|
|
28
|
+
|
|
29
|
+
## 必要な設定
|
|
30
|
+
|
|
31
|
+
- ChocoDrop サーバーが `localhost:3011` で起動していること
|
|
32
|
+
- MCP設定が完了していること(`.claude/mcp-kamui-code.json`)
|
|
33
|
+
|
|
34
|
+
## トラブルシューティング
|
|
35
|
+
|
|
36
|
+
- **生成されない** → サーバーログを確認
|
|
37
|
+
- **配置されない** → ブラウザコンソールを確認
|
|
38
|
+
- **UIが表示されない** → F12 でエラーチェック
|