We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/superdwayne/8thwallmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
GITHUB_RELEASE_NOTES.mdโข2.83 KiB
# ๐จ v0.2.5 - Three.js Script Generator
## New Feature: `desktop_add_threejs_script` Tool
Generate battle-tested Three.js scripts for 8th Wall Desktop AR experiences with a single command!
### ๐ฏ What's New
**New MCP Tool:** `mcp_8thwall_desktop_add_threejs_script`
Creates working Three.js scripts that:
- โ Integrate properly with 8th Wall Desktop ECS v2
- โ Handle XR8 pipeline initialization correctly
- โ Work perfectly in AR mode on mobile devices
- โ Include touch/click interaction support
- โ Position objects optimally for AR viewing
- โ Have comprehensive debugging logs
### ๐ฆ Installation
Download the bundle: **`mcp-8thwall-0.2.5-threejs.mcpb`** (6.3 MB)
Add to your MCP configuration in Cursor:
```json
{
"mcpServers": {
"8thwall": {
"command": "path/to/mcp-8thwall-0.2.5-threejs.mcpb"
}
}
}
```
### ๐ Quick Start
```
You: Use mcp_8thwall_desktop_add_threejs_script to create
an interactive sphere that changes color when tapped
AI: โ Creates src/color-tap.js
โ Updates .expanse.json
โ Ready to test in AR!
```
### ๐ฎ Example: Interactive Color-Changing Sphere
Tested and working on actual mobile devices:
- Large, glowing sphere positioned 5m ahead
- Tap anywhere to cycle through colors
- Smooth rotation animation
- Proper 75ยฐ FOV for natural viewing
- Touch event handling with debugging
### โจ Key Improvements
1. **Correct XR8 Integration**
- Adds `XR8.Threejs.pipelineModule()` first
- Uses Camera Pipeline Module pattern
- Safe initialization in `onUpdate` callback
2. **Proper Scene Access**
- Extracts scene/camera from `xrScene()` wrapper
- Handles null checks and error cases
- Names all objects to prevent crashes
3. **AR Optimizations**
- Objects positioned 5 meters ahead (not too close!)
- Eye-level placement (1.5m height)
- 75ยฐ camera FOV for natural view
- Touch events with capture phase
### ๐ Documentation
Included guides:
- **THREEJS_SCRIPT_GUIDE.md** - Complete usage guide
- **RELEASE-0.2.5.md** - Detailed release notes
### ๐ Bug Fixes
- Fixed camera FOV settings for AR mode
- Improved touch event handling reliability
- Added comprehensive debug logging
- Corrected event propagation handling
### ๐ Lessons Learned
This tool was developed after extensive debugging:
1. XR8.Threejs.pipelineModule() must be added first
2. xrScene() returns a wrapper - extract scene/camera
3. Initialize in onUpdate, check every frame
4. Name all Three.js objects to prevent errors
5. AR positioning requires careful distance/height
### ๐ Tested On
- โ iPhone AR mode
- โ 8th Wall Desktop simulator
- โ Touch interactions
- โ Multiple objects in scene
- โ Color changing with animations
---
**Download the bundle and start creating amazing AR experiences!** ๐โจ
Report issues: https://github.com/superdwayne/8thwallmcp/issues