@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,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chocodrop-react-three-fiber-example",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "ChocoDrop integration with React Three Fiber",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"react": "^18.2.0",
|
|
13
|
+
"react-dom": "^18.2.0",
|
|
14
|
+
"@react-three/fiber": "^8.15.0",
|
|
15
|
+
"@react-three/drei": "^9.88.0",
|
|
16
|
+
"three": "^0.170.0",
|
|
17
|
+
"chocodrop": "^1.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/react": "^18.2.0",
|
|
21
|
+
"@types/react-dom": "^18.2.0",
|
|
22
|
+
"@vitejs/plugin-react": "^4.1.0",
|
|
23
|
+
"vite": "^5.0.0"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# ChocoDrop SDK Test Page
|
|
2
|
+
|
|
3
|
+
このページは **SDK版(完全版)** の動作確認用です。
|
|
4
|
+
|
|
5
|
+
## 📦 SDK版 vs デモ版
|
|
6
|
+
|
|
7
|
+
| 項目 | SDK版 (このページ) | デモ版 (basic/) |
|
|
8
|
+
|------|-------------------|----------------|
|
|
9
|
+
| ファイル | `CommandUI.js` | `CommandUIDemo.js` |
|
|
10
|
+
| 生成機能 | ✅ あり | ❌ なし(インポートのみ) |
|
|
11
|
+
| サーバー | 必要(localhost:3011) | 不要 |
|
|
12
|
+
| 用途 | 開発・npm配布 | GitHub Pages配布 |
|
|
13
|
+
|
|
14
|
+
## 🚀 使い方
|
|
15
|
+
|
|
16
|
+
### 1. サーバーを起動
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# プロジェクトルートで実行
|
|
20
|
+
npm run dev:sdk
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
これで以下が起動します:
|
|
24
|
+
- SDK Test Page: http://localhost:8080/
|
|
25
|
+
- SDK Server: http://localhost:3011/
|
|
26
|
+
|
|
27
|
+
### 2. ブラウザで開く
|
|
28
|
+
|
|
29
|
+
http://localhost:8080/ にアクセス
|
|
30
|
+
|
|
31
|
+
### 3. ChocoDrop を起動
|
|
32
|
+
|
|
33
|
+
- `@` キーを押す
|
|
34
|
+
- または右下のボタンをクリック
|
|
35
|
+
|
|
36
|
+
### 4. 画像生成をテスト
|
|
37
|
+
|
|
38
|
+
自然言語で画像生成のリクエストを送信してテストします。
|
|
39
|
+
|
|
40
|
+
## 🔧 開発時の注意
|
|
41
|
+
|
|
42
|
+
### ソースコードを修正したら必ずビルド
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm run build
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
ビルドしないと変更が反映されません!
|
|
49
|
+
|
|
50
|
+
### テストする順序
|
|
51
|
+
|
|
52
|
+
1. `src/client/CommandUI.js` を修正
|
|
53
|
+
2. `npm run build` でビルド
|
|
54
|
+
3. `npm run dev:sdk` でサーバー起動
|
|
55
|
+
4. http://localhost:8080/ でテスト
|
|
56
|
+
|
|
57
|
+
## ⚠️ トラブルシューティング
|
|
58
|
+
|
|
59
|
+
**UIが更新されない**
|
|
60
|
+
→ ブラウザのキャッシュをクリア(Cmd+Shift+R)
|
|
61
|
+
|
|
62
|
+
**生成機能が動かない**
|
|
63
|
+
→ SDK Serverが起動しているか確認(http://localhost:3011/health)
|
|
64
|
+
|
|
65
|
+
**ポートが使われている**
|
|
66
|
+
→ 他のプロセスを終了してから再起動
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
詳細は `.claude/commands/edit-chocodrop-form.md` を参照してください。
|