sceneview-mcp 4.0.0 → 4.0.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 CHANGED
@@ -44,13 +44,35 @@ After subscribing, you'll receive a `sv_live_…` API key. Set it via the `SCENE
44
44
 
45
45
  ## Quick start (free tier)
46
46
 
47
- **One command -- no install required:**
47
+ You have two ways to use SceneView MCP — pick whichever fits your client:
48
+
49
+ ### Option A — stdio via `npx` (Claude Desktop, Claude Code, Cursor, Windsurf)
48
50
 
49
51
  ```bash
50
- npx sceneview-mcp@beta
52
+ npx sceneview-mcp
51
53
  ```
52
54
 
53
- On startup you'll see a `[sceneview-mcp] v4.0.0-beta.1 — LITE (free tools only)` banner on stderr. Set `SCENEVIEW_API_KEY` to flip into `HOSTED` mode.
55
+ On startup you'll see a `[sceneview-mcp] v4.0.1 — LITE (free tools only)` banner on stderr. Set `SCENEVIEW_API_KEY` to flip into `HOSTED` mode.
56
+
57
+ ### Option B — hosted HTTP MCP URL (ChatGPT, Claude Desktop "Remote MCP", Cursor URL, anything HTTP)
58
+
59
+ No install, no `npx`, no config files — just point your client at:
60
+
61
+ ```
62
+ https://sceneview-mcp.mcp-tools-lab.workers.dev/mcp/public
63
+ ```
64
+
65
+ - Anonymous, no API key required
66
+ - 26 free tools fully accessible
67
+ - 35 Pro tools return a `/pricing` upgrade prompt
68
+ - Rate limit: 60 requests / hour per IP
69
+
70
+ For **Pro tier with a Bearer token** (full quota, all 35 Pro tools):
71
+
72
+ ```
73
+ https://sceneview-mcp.mcp-tools-lab.workers.dev/mcp
74
+ Authorization: Bearer sv_live_...
75
+ ```
54
76
 
55
77
  > **Anonymous telemetry** is enabled on the free tier (MCP client name/version and tool names — no personal data, no prompt content). Opt out with `SCENEVIEW_TELEMETRY=0`. See [PRIVACY.md](./PRIVACY.md#telemetry-free-tier) for the full payload shape.
56
78
 
@@ -107,7 +129,7 @@ Same JSON config as above. The server communicates via **stdio** using the stand
107
129
  | `get_sample` | Returns a complete, compilable code sample for any of 33 scenarios (Kotlin or Swift) |
108
130
  | `list_samples` | Browse all samples, filter by tag (`ar`, `3d`, `ios`, `animation`, `geometry`, ...) |
109
131
  | `validate_code` | Checks generated code against 15+ rules before presenting it to the user |
110
- | `get_node_reference` | Full API reference for any of 26+ node types -- exact signatures, defaults, examples |
132
+ | `get_node_reference` | Full API reference for any of 35+ node types -- exact signatures, defaults, examples |
111
133
  | `list_platforms` | List all supported platforms with their status, renderer, and framework |
112
134
  | `get_setup` | Gradle + manifest setup for Android 3D or AR projects |
113
135
  | `get_ios_setup` | SPM dependency, Info.plist, and SwiftUI integration for iOS/macOS/visionOS |
@@ -168,7 +190,7 @@ The tool is read-only, never writes to disk, and gracefully handles missing dire
168
190
 
169
191
  | Resource URI | What it provides |
170
192
  |---|---|
171
- | `sceneview://api` | Complete SceneView 3.6.0 API reference (the full `llms.txt`) |
193
+ | `sceneview://api` | Complete SceneView 4.0.0 API reference (the full `llms.txt`) |
172
194
  | `sceneview://known-issues` | Live open issues from GitHub (cached 10 min) |
173
195
 
174
196
  ---
@@ -208,10 +230,10 @@ The assistant calls `render_3d_preview` and returns an interactive link to a bro
208
230
  - Have no knowledge of SceneView's iOS/Swift API at all
209
231
 
210
232
  **With** this MCP server, AI assistants:
211
- - Always use the current SceneView 3.6.0 API surface
233
+ - Always use the current SceneView 4.0.0 API surface
212
234
  - Generate correct **Compose-native** 3D/AR code for Android
213
235
  - Generate correct **SwiftUI-native** code for iOS/macOS/visionOS
214
- - Know about all 26+ node types and their exact parameters
236
+ - Know about all 35+ node types and their exact parameters
215
237
  - Validate code against 15+ rules before presenting it
216
238
  - Provide working, tested sample code for 33 scenarios
217
239
 
@@ -23,7 +23,7 @@ import { promises as fs } from "node:fs";
23
23
  import path from "node:path";
24
24
  // ─── Constants ───────────────────────────────────────────────────────────────
25
25
  /** The latest SceneView release known to this build of the MCP. */
26
- export const LATEST_SCENEVIEW_VERSION = "4.0.0-rc.1";
26
+ export const LATEST_SCENEVIEW_VERSION = "4.0.0";
27
27
  /** Hard cap on the number of source files inspected per call. */
28
28
  export const MAX_FILES_SCANNED = 30;
29
29
  /** Hard cap on total bytes read across all source files per call (500 KB). */
@@ -292,7 +292,7 @@ fun DebugModelViewer() {
292
292
  title: "Build / Gradle Errors",
293
293
  guide: `## Debugging: Build Errors
294
294
 
295
- ### "Cannot resolve io.github.sceneview:sceneview:4.0.0-rc.1"
295
+ ### "Cannot resolve io.github.sceneview:sceneview:4.0.0"
296
296
 
297
297
  1. Check repositories in \`settings.gradle.kts\`:
298
298
  \`\`\`kotlin
@@ -335,7 +335,7 @@ SceneView bundles Filament. If you also depend on Filament directly:
335
335
  \`\`\`kotlin
336
336
  // Remove direct Filament dependency — SceneView includes it
337
337
  // implementation("com.google.android.filament:filament-android:1.x.x") // REMOVE
338
- implementation("io.github.sceneview:sceneview:4.0.0-rc.1") // This includes Filament
338
+ implementation("io.github.sceneview:sceneview:4.0.0") // This includes Filament
339
339
  \`\`\`
340
340
 
341
341
  ### "Cannot find Filament material"
@@ -419,7 +419,7 @@ Browser → WebGL2 → Filament.js (WASM) → GPU
419
419
  ### Using sceneview.js (npm or local)
420
420
  \`\`\`html
421
421
  <!-- Option 1: npm CDN -->
422
- <script src="https://cdn.jsdelivr.net/npm/sceneview-web@4.0.0-rc.1/sceneview.js"></script>
422
+ <script src="https://cdn.jsdelivr.net/npm/sceneview-web@4.0.0/sceneview.js"></script>
423
423
 
424
424
  <!-- Option 2: local hosting (recommended for production) -->
425
425
  <!-- Copy js/filament/ directory to your server for faster WASM loading -->
@@ -4,7 +4,7 @@
4
4
  * Generates a complete SceneView{} or ARSceneView{} composable from a text description.
5
5
  * Maps common objects/concepts to SceneView node types and builds compilable code.
6
6
  *
7
- * All generated code targets SceneView v4.0.0-rc.1 API and is verified against llms.txt.
7
+ * All generated code targets SceneView v4.0.0 API and is verified against llms.txt.
8
8
  */
9
9
  const OBJECT_MAPPINGS = [
10
10
  // Furniture
@@ -245,7 +245,7 @@ export function generateScene(description) {
245
245
  }
246
246
  // Build the code
247
247
  const isAR = parsed.isAR;
248
- dependencies.push(isAR ? "io.github.sceneview:arsceneview:4.0.0-rc.1" : "io.github.sceneview:sceneview:4.0.0-rc.1");
248
+ dependencies.push(isAR ? "io.github.sceneview:arsceneview:4.0.0" : "io.github.sceneview:sceneview:4.0.0");
249
249
  // Build model instance declarations
250
250
  const modelElements = elements.filter((e) => e.type === "model");
251
251
  const uniqueModels = new Map();