import {defineConfig} from 'vite';
import {iwsdkDev} from '@iwsdk/vite-plugin-dev';
export default defineConfig({
plugins: [iwsdkDev()],
});
iwsdk.config.json. Select the development session at the command line.npx iwsdk adapter sync
npx iwsdk adapter sync --tools claude,cursor
| AI tool | MCP configuration | Additional behavior |
|---|---|---|
Claude Code | .mcp.json | Creates a CLAUDE.md shim when no supported Claude instruction file exists. |
Cursor | .cursor/mcp.json | Adds only IWSDK-managed server and permission entries. |
GitHub Copilot | .vscode/mcp.json | Requires you to approve the MCP server in Visual Studio Code. A repository file cannot grant that approval. |
Codex | .codex/config.toml | Sets approval mode for the managed IWSDK server entry. |
OpenCode | opencode.json | Adds the managed MCP server and IWSDK skill permissions. |
AGENTS.md only when that file is absent and can create the Claude shim, but it does not overwrite existing instruction files or install or refresh the generated skill directories. New projects receive their complete guidance and skills from the project generator.npx iwsdk adapter status
npx iwsdk adapter prune to remove only IWSDK-managed MCP and permission entries. For an unsupported MCP client, run npx iwsdk adapter prompt and follow the generated integration instructions.npx iwsdk dev up --foreground
npx iwsdk dev up --ai-mode collaborate --foreground
npx iwsdk dev up --ai-mode agent --foreground
--no-open only when you deliberately want the development server without a managed browser. All iwsdk-runtime tool calls are unavailable in that state, including scene, UI, XR, browser, and ECS tools; schema inspection with iwsdk mcp inspect still works.npm run dev.npx iwsdk dev status
true:state.browserCommandReadystate.session.browser.commandReadynpx iwsdk mcp inspect npx iwsdk mcp inspect --tool scene_render_file
iwsdk-runtime server and use its reported schemas.Use the IWSDK runtime tools to check the XR session, capture the application runtime, and report any console errors.
xr_get_session_status, browser_screenshot, and browser_get_console_logs. browser_screenshot always captures the application runtime, even when the Editor view is visible.Inspect the native scene capabilities, update the scene files, render every changed file, flatten the composed root, open the flattened file, and capture both editor and runtime evidence.
npx iwsdk dev up --ai-mode agent \ --screenshot-width 1280 \ --screenshot-height 720
npx iwsdk dev status npx iwsdk dev logs --tail 100
--no-open. Wait for both browser command readiness fields before retrying the tool call.npx iwsdk adapter status, then run npx iwsdk adapter sync if the managed entry is missing or stale. Restart the AI tool if it does not reload project-local MCP configuration automatically.scene_render_file, resolve every diagnostic, and then create an import-free file with scene_flatten_file. Pass the flattened path to scene_open.scene_screenshot for a native Editor image and scene_get_state for structured validation, dirty, conflict, and runtime-readiness diagnostics. Use browser_screenshot for the running application. browser_screenshot does not accept an editor target.