{"at":"2026-11-23T01:56:26.226Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:56:26.631Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:56:26.731Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:56:27.125Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{},"tools":{}},"protocolVersion":"2025-11-25","serverInfo":{"name":"@sceneview/mcp","version":"3.3.0"}}}}
{"at":"2026-11-23T01:56:27.125Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:56:27.125Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:56:27.127Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Returns a complete, compilable Kotlin sample for a given SceneView scenario. Use this to get a working starting point before customising. Call `list_samples` first if you are unsure which scenario fits.","inputSchema":{"properties":{"scenario":{"description":"The scenario to fetch:\n- \"model-viewer\": Full-screen 3D scene with a GLB model, HDR environment, orbit camera, and animation controls\n- \"ar-model-viewer\": AR scene with plane detection. Tap a surface to place a 3D model with pinch-to-scale and drag-to-rotate gestures.\n- \"ar-augmented-image\": Detects reference images in the camera feed and overlays 3D models or video above them.\n- \"ar-cloud-anchor\": Host and resolve persistent cross-device anchors using ARCore Cloud Anchors.\n- \"ar-point-cloud\": Visualizes ARCore feature points as 3D spheres with confidence-based filtering.\n- \"gltf-camera\": Extracts and uses camera definitions embedded in a glTF file for cinematic viewpoints.\n- \"camera-manipulator\": Orbit, pan, and zoom camera with customizable sensitivity and bounds.\n- \"autopilot-demo\": Full autonomous driving HUD with animated car, traffic lights, road, and real-time telemetry overlay.\n- \"physics-demo\": Interactive physics simulation with bouncing spheres, gravity, configurable restitution, and colour selection.\n- \"dynamic-sky\": Time-of-day sun cycle with DynamicSkyNode and atmospheric fog via FogNode.\n- \"line-path\": Animated 3D line art with sine waves, Lissajous curves, and parameter sliders.\n- \"text-labels\": Camera-facing 3D text labels (TextNode + BillboardNode) with interactive label cycling.\n- \"reflection-probe\": Zone-based IBL overrides with material picker (Chrome, Gold, Copper, Rough) and probe toggle.\n- \"post-processing\": Real-time post-processing effects: bloom, vignette, tone mapping, FXAA, and SSAO controls.\n- \"ios-model-viewer\": SwiftUI 3D scene with a USDZ model, IBL environment, orbit camera, and animation playback.\n- \"ios-ar-model-viewer\": AR scene with plane detection. Tap a surface to place a 3D model using ARKit + RealityKit.\n- \"ios-ar-augmented-image\": Detects reference images in the camera feed and overlays 3D content above them using ARKit.\n- \"ios-geometry-shapes\": Procedural geometry shapes — cube, sphere, cylinder, cone, and plane — with PBR materials.\n- \"ios-lighting\": Directional, point, and spot lights with configurable intensity, color, and shadows.\n- \"ios-physics\": Interactive physics simulation with bouncing spheres, gravity, and configurable restitution.\n- \"ios-text-labels\": Camera-facing 3D text labels using TextNode and BillboardNode for always-facing-camera behavior.\n- \"ios-video-player\": Video playback on a 3D plane using VideoNode with play/pause controls.\n- \"web-model-viewer\": Browser-based 3D model viewer using Filament.js (WebGL2/WASM) — same engine as SceneView Android\n- \"web-environment\": Browser 3D scene with IBL environment lighting and skybox from KTX files","enum":["model-viewer","ar-model-viewer","ar-augmented-image","ar-cloud-anchor","ar-point-cloud","gltf-camera","camera-manipulator","autopilot-demo","physics-demo","dynamic-sky","line-path","text-labels","reflection-probe","post-processing","ios-model-viewer","ios-ar-model-viewer","ios-ar-augmented-image","ios-geometry-shapes","ios-lighting","ios-physics","ios-text-labels","ios-video-player","web-model-viewer","web-environment"],"type":"string"}},"required":["scenario"],"type":"object"},"name":"get_sample"},{"description":"Lists all available SceneView code samples with their IDs, descriptions, and tags. Use this to find the right sample before calling `get_sample`, or to show the user what SceneView can do.","inputSchema":{"properties":{"tag":{"description":"Optional tag to filter by (e.g. \"ar\", \"3d\", \"ios\", \"swift\", \"anchor\", \"geometry\", \"animation\", \"video\", \"lighting\"). Omit to list all samples.","type":"string"}},"required":[],"type":"object"},"name":"list_samples"},{"description":"Returns the Gradle dependency and AndroidManifest snippet required to use SceneView in an Android project.","inputSchema":{"properties":{"type":{"description":"\"3d\" for 3D-only scenes. \"ar\" for augmented reality (includes 3D).","enum":["3d","ar"],"type":"string"}},"required":["type"],"type":"object"},"name":"get_setup"},{"description":"Checks a Kotlin or Swift SceneView snippet for common mistakes. For Kotlin: threading violations, wrong destroy order, missing null-checks, LightNode trailing-lambda bug, deprecated 2.x APIs. For Swift: missing @MainActor, async/await patterns, missing imports, RealityKit mistakes. Language is auto-detected. Always call this before presenting generated SceneView code to the user.","inputSchema":{"properties":{"code":{"description":"The Kotlin or Swift source code to validate (composable function, SwiftUI view, class, or file). Language is auto-detected.","type":"string"}},"required":["code"],"type":"object"},"name":"validate_code"},{"description":"Returns the full SceneView 2.x → 3.0 migration guide. Use this when a user reports code that worked in 2.x but breaks in 3.0, or when helping someone upgrade.","inputSchema":{"properties":{},"required":[],"type":"object"},"name":"get_migration_guide"},{"description":"Returns the full API reference for a specific SceneView node type or composable — parameters, types, and a usage example — parsed directly from the official llms.txt. Use this when you need the exact signature or options for a node (e.g. ModelNode, LightNode, ARScene). If the requested type is not found, the response lists all available types.","inputSchema":{"properties":{"nodeType":{"description":"The node type or composable name to look up, e.g. \"ModelNode\", \"LightNode\", \"ARScene\", \"AnchorNode\". Case-insensitive.","type":"string"}},"required":["nodeType"],"type":"object"},"name":"get_node_reference"},{"description":"Returns the SceneView multi-platform roadmap — current Android support status, planned iOS/KMP/web targets, and timeline. Use this when the user asks about cross-platform support, iOS, Kotlin Multiplatform, or future plans.","inputSchema":{"properties":{},"required":[],"type":"object"},"name":"get_platform_roadmap"},{"description":"Returns SceneView performance and architecture best practices — memory management, model optimization, threading rules, Compose integration patterns, and common anti-patterns. Use this when the user asks about performance, optimization, best practices, or architecture.","inputSchema":{"properties":{"category":{"description":"Category to filter by. \"all\" returns everything. Defaults to \"all\" if omitted.","enum":["all","performance","architecture","memory","threading"],"type":"string"}},"required":[],"type":"object"},"name":"get_best_practices"},{"description":"Returns detailed AR setup instructions — AndroidManifest permissions and features, Gradle dependencies, ARCore session configuration options (depth, light estimation, instant placement, plane detection, image tracking, cloud anchors), and a complete working AR starter template. More detailed than `get_setup` for AR-specific configuration.","inputSchema":{"properties":{},"required":[],"type":"object"},"name":"get_ar_setup"},{"description":"Returns the SceneView troubleshooting guide — common crashes (SIGABRT, model not showing), build failures, AR issues (drift, overexposure, image detection), and performance problems. Use this when a user reports something not working, a crash, or unexpected behavior.","inputSchema":{"properties":{},"required":[],"type":"object"},"name":"get_troubleshooting"},{"description":"Returns the complete iOS setup guide for SceneViewSwift — SPM dependency, Package.swift example, minimum platform versions, Info.plist entries for AR (camera permission), and basic SwiftUI integration code. Use this when a user wants to set up SceneView for iOS, macOS, or visionOS.","inputSchema":{"properties":{"type":{"description":"\"3d\" for 3D-only scenes. \"ar\" for augmented reality (requires iOS, not macOS/visionOS via this path).","enum":["3d","ar"],"type":"string"}},"required":["type"],"type":"object"},"name":"get_ios_setup"},{"description":"Returns the complete Web setup guide for SceneView Web — npm install, Kotlin/JS Gradle config, HTML canvas setup, and basic Filament.js integration code. SceneView Web uses the same Filament rendering engine as Android, compiled to WebAssembly. Use this when a user wants to set up SceneView for browsers.","inputSchema":{"properties":{},"type":"object"},"name":"get_web_setup"}]}}}
