lens-inspector 0.1.1 → 0.1.2
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/README.md +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,20 @@ If you want to see it working right away, open the included `LSProject/` folder
|
|
|
50
50
|
|
|
51
51
|
**Design-time**: When your lens isn't running, the viewer can fetch the static scene structure through Lens Studio's MCP server. This is useful for inspecting your Scene Hierarchy without entering preview mode.
|
|
52
52
|
|
|
53
|
+
To use design-time mode:
|
|
54
|
+
|
|
55
|
+
1. In Lens Studio, go to **AI Assistant > MCP > Configure Server** and set a port
|
|
56
|
+
2. Click **Copy MCP Config** to get the server URL and token
|
|
57
|
+
3. In the inspector viewer, paste the token into the MCP field in the top bar and click **Design-Time**
|
|
58
|
+
|
|
59
|
+
If your MCP server runs on a non-default port, pass it when starting the inspector:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npx lens-inspector --mcp http://localhost:8733/mcp
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The MCP config from Lens Studio also works with AI coding assistants like Claude. Paste it into your assistant's MCP server config to let it read and modify your scene programmatically.
|
|
66
|
+
|
|
53
67
|
## The viewer
|
|
54
68
|
|
|
55
69
|
The browser shows three synchronized panels. A collapsible tree that matches the Scene Hierarchy, where you can search and click to select nodes. A 2D spatial canvas with switchable projection planes (TOP/FRONT/SIDE) that plots object positions with pan and zoom, so you can see how things are laid out relative to each other. And an inspector panel that shows transform data, component details, text content, and colors for whatever node you've selected.
|