iwsdk CLI, the stack sets up three things automatically:iwsdk mcp stdio exposes 32 tools for controlling the emulated XR runtime, inspecting the scene, and debugging ECS state by resolving the active workspace runtime created by iwsdk dev up.iwsdk adapter sync writes workspace-based config files (for example .mcp.json for Claude) so your AI tool discovers that server on startup.┌──────────────────────┐
│ AI Tool │
│ (Claude, Cursor...) │
└──────────┬───────────┘
│ MCP protocol (stdio)
┌──────────▼───────────┐
│ iwsdk mcp stdio │◄── screenshots, console logs
└──────────┬───────────┘
│ WebSocket
┌──────────▼───────────┐ ┌──────────────────────┐
│ Vite Dev Server │────►│ Normal Browser │
│ │ │ (developer) │
└──────────┬───────────┘ └──────────────────────┘
│
┌──────────▼───────────┐
│ Playwright Browser │
│ (managed) │
└──────────────────────┘
iwsdk mcp stdio over stdio. iwsdk dev up records the active workspace runtime, and iwsdk mcp stdio resolves that runtime before relaying commands to the Playwright browser via WebSocket, where the IWER runtime processes them (move controllers, trigger inputs, query state). Screenshots and console logs are captured server-side through Playwright’s CDP integration — no browser round-trip needed.iwsdk-runtime:iwsdk-reference — If @iwsdk/reference is installed, a local reference server is registered that provides semantic code search and IWSDK API knowledge. Run npx iwsdk reference warmup once to download the pinned model plus the reference corpus into your project-local .iwsdk/reference state and shared cache. Set IWSDK_REFERENCE_ASSETS_BASE_URL too when you are hosting the corpus payload yourself instead of using the published @iwsdk/reference-assets package. SDK bundles intentionally exclude the corpus payload, so bundle/internal deployments must host that artifact separately before warmup will succeed. The pinned model file URLs themselves are baked into the SDK, so warmup still requires access to those public URLs unless the shared cache has already been pre-warmed.hzdb — If @meta-quest/hzdb is installed, the hzdb MCP server is registered. This provides Meta Quest device management, 3D asset search from Meta’s asset library, and IWSDK documentation lookup.node_modules.| Mode | Description | Playwright | DevUI | Browser |
|---|---|---|---|---|
Agent | AI works autonomously in the background | Headless, fixed viewport | Off | Normal browser opens |
Oversight | You watch the AI work in real time | Visible, resizable | Off | Playwright is the browser |
Collaborate | You and the AI share the same session | Visible, resizable | On | Playwright is the browser |
iwsdk-runtime MCP server exposes tools across several categories: