sceneview-mcp 4.0.16 → 4.1.1
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 +246 -62
- package/dist/analyze-project.js +4 -2
- package/dist/artifact.js +38 -13
- package/dist/debug-issue.js +101 -19
- package/dist/discover.js +106 -0
- package/dist/extra-guides.js +3 -3
- package/dist/generate-scene.js +380 -61
- package/dist/generated/llms-txt.js +1 -1
- package/dist/generated/symbols.js +1040 -22
- package/dist/generated/version.js +12 -3
- package/dist/guides.js +10 -6
- package/dist/http.js +178 -0
- package/dist/index.js +34 -139
- package/dist/issues.js +1 -1
- package/dist/migrate-code.js +5 -3
- package/dist/platform-setup.js +33 -16
- package/dist/samples.js +31 -31
- package/dist/search-models.js +1 -1
- package/dist/server.js +197 -0
- package/dist/surfaces.js +32 -0
- package/dist/telemetry.js +14 -8
- package/dist/tools/definitions.js +176 -14
- package/dist/tools/handler.js +207 -66
- package/dist/tools/index.js +4 -4
- package/dist/tools/types.js +0 -4
- package/dist/validator.js +262 -161
- package/dist/widgets.js +915 -0
- package/package.json +16 -12
- package/dist/proxy.js +0 -176
- package/dist/tiers.js +0 -138
package/dist/samples.js
CHANGED
|
@@ -6,7 +6,7 @@ export const SAMPLES = {
|
|
|
6
6
|
description: "Full-screen 3D scene with a GLB model, HDR environment, orbit camera, and animation controls",
|
|
7
7
|
tags: ["3d", "model", "environment", "camera", "animation"],
|
|
8
8
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
9
|
-
prompt:
|
|
9
|
+
prompt: `Create an Android Compose screen that loads a GLB model and displays it with HDR lighting, orbit camera, and animation playback. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
10
10
|
code: `@Composable
|
|
11
11
|
fun ModelViewerScreen() {
|
|
12
12
|
val engine = rememberEngine()
|
|
@@ -40,7 +40,7 @@ fun ModelViewerScreen() {
|
|
|
40
40
|
description: "AR scene with plane detection. Tap a surface to place a 3D model with pinch-to-scale and drag-to-rotate gestures.",
|
|
41
41
|
tags: ["ar", "model", "anchor", "plane-detection", "placement", "gestures"],
|
|
42
42
|
dependency: "io.github.sceneview:arsceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
43
|
-
prompt:
|
|
43
|
+
prompt: `Create an AR screen that detects surfaces and lets the user tap to place a GLB model. Support pinch-to-scale and drag-to-rotate. Use SceneView \`io.github.sceneview:arsceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
44
44
|
code: `@Composable
|
|
45
45
|
fun ARModelViewerScreen() {
|
|
46
46
|
val engine = rememberEngine()
|
|
@@ -85,7 +85,7 @@ fun ARModelViewerScreen() {
|
|
|
85
85
|
description: "Detects reference images in the camera feed and overlays 3D models or video above them.",
|
|
86
86
|
tags: ["ar", "model", "image-tracking"],
|
|
87
87
|
dependency: "io.github.sceneview:arsceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
88
|
-
prompt:
|
|
88
|
+
prompt: `Create an AR screen that detects a printed reference image and places a 3D model above it. Use SceneView \`io.github.sceneview:arsceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
89
89
|
code: `@Composable
|
|
90
90
|
fun AugmentedImageScreen() {
|
|
91
91
|
val engine = rememberEngine()
|
|
@@ -127,7 +127,7 @@ fun AugmentedImageScreen() {
|
|
|
127
127
|
description: "Host and resolve persistent cross-device anchors using ARCore Cloud Anchors.",
|
|
128
128
|
tags: ["ar", "anchor", "cloud-anchor"],
|
|
129
129
|
dependency: "io.github.sceneview:arsceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
130
|
-
prompt:
|
|
130
|
+
prompt: `Create an AR screen that can host a cloud anchor (saving its ID) and resolve it later on another device. Use SceneView \`io.github.sceneview:arsceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
131
131
|
code: `// ⚠️ Cloud Anchors require an ARCore Cloud API key in AndroidManifest.xml:
|
|
132
132
|
// <meta-data android:name="com.google.android.ar.API_KEY"
|
|
133
133
|
// android:value="\${arcoreApiKey}" />
|
|
@@ -166,7 +166,7 @@ fun CloudAnchorScreen() {
|
|
|
166
166
|
description: "Visualizes ARCore feature points as 3D spheres with confidence-based filtering.",
|
|
167
167
|
tags: ["ar", "point-cloud"],
|
|
168
168
|
dependency: "io.github.sceneview:arsceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
169
|
-
prompt:
|
|
169
|
+
prompt: `Create an AR screen that visualizes ARCore feature points as small 3D spheres, filtered by confidence. Use SceneView \`io.github.sceneview:arsceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
170
170
|
code: `@Composable
|
|
171
171
|
fun PointCloudScreen() {
|
|
172
172
|
val engine = rememberEngine()
|
|
@@ -198,7 +198,7 @@ fun PointCloudScreen() {
|
|
|
198
198
|
description: "AR face tracking with AugmentedFaceNode — applies a textured mesh overlay to detected faces using the front camera.",
|
|
199
199
|
tags: ["ar", "face-tracking", "model"],
|
|
200
200
|
dependency: "io.github.sceneview:arsceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
201
|
-
prompt:
|
|
201
|
+
prompt: `Create an AR screen that uses the front camera to detect faces and overlay a 3D mesh on them. Use SceneView \`io.github.sceneview:arsceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
202
202
|
code: `@Composable
|
|
203
203
|
fun ARFaceMeshScreen() {
|
|
204
204
|
val engine = rememberEngine()
|
|
@@ -242,7 +242,7 @@ fun ARFaceMeshScreen() {
|
|
|
242
242
|
description: "Extracts and uses camera definitions embedded in a glTF file for cinematic viewpoints.",
|
|
243
243
|
tags: ["3d", "model", "camera"],
|
|
244
244
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
245
|
-
prompt:
|
|
245
|
+
prompt: `Create a 3D scene that loads a GLB file containing embedded camera definitions, then uses those cameras for cinematic viewpoints. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
246
246
|
code: `@Composable
|
|
247
247
|
fun GltfCameraScreen() {
|
|
248
248
|
val engine = rememberEngine()
|
|
@@ -272,7 +272,7 @@ fun GltfCameraScreen() {
|
|
|
272
272
|
description: "Orbit, pan, and zoom camera with customizable sensitivity and bounds.",
|
|
273
273
|
tags: ["3d", "camera", "gestures"],
|
|
274
274
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
275
|
-
prompt:
|
|
275
|
+
prompt: `Create a 3D scene with a fully configurable orbit camera — drag to rotate, two-finger pan, pinch to zoom. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
276
276
|
code: `@Composable
|
|
277
277
|
fun CameraManipulatorScreen() {
|
|
278
278
|
val engine = rememberEngine()
|
|
@@ -303,7 +303,7 @@ fun CameraManipulatorScreen() {
|
|
|
303
303
|
description: "Animated camera flythrough around a 3D model — smooth orbit using LaunchedEffect and trigonometric interpolation.",
|
|
304
304
|
tags: ["3d", "camera", "animation", "model"],
|
|
305
305
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
306
|
-
prompt:
|
|
306
|
+
prompt: `Create a 3D scene with a camera that automatically orbits around a model in a smooth circle. Include a play/pause button. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
307
307
|
code: `@Composable
|
|
308
308
|
fun CameraAnimationScreen() {
|
|
309
309
|
val engine = rememberEngine()
|
|
@@ -364,7 +364,7 @@ fun CameraAnimationScreen() {
|
|
|
364
364
|
description: "Autonomous driving HUD with animated car, road geometry, and real-time telemetry overlay.",
|
|
365
365
|
tags: ["3d", "model", "animation", "geometry"],
|
|
366
366
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
367
|
-
prompt:
|
|
367
|
+
prompt: `Create an autopilot-style visualization with a 3D car on a road and a HUD overlay showing speed, distance, and status. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
368
368
|
code: `@Composable
|
|
369
369
|
fun AutopilotScreen() {
|
|
370
370
|
val engine = rememberEngine()
|
|
@@ -433,7 +433,7 @@ fun AutopilotScreen() {
|
|
|
433
433
|
description: "Animated physics simulation with spheres falling under gravity and bouncing off a floor, using onFrame for per-frame updates.",
|
|
434
434
|
tags: ["3d", "physics", "geometry", "animation"],
|
|
435
435
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
436
|
-
prompt:
|
|
436
|
+
prompt: `Create a 3D scene with spheres that fall under gravity and bounce on a floor using per-frame animation. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
437
437
|
code: `@Composable
|
|
438
438
|
fun PhysicsDemoScreen() {
|
|
439
439
|
val engine = rememberEngine()
|
|
@@ -526,7 +526,7 @@ fun PhysicsDemoScreen() {
|
|
|
526
526
|
description: "Time-of-day sun cycle with animated LightNode direction, intensity, and color to simulate sunrise through sunset.",
|
|
527
527
|
tags: ["3d", "sky", "environment", "animation", "lighting"],
|
|
528
528
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
529
|
-
prompt:
|
|
529
|
+
prompt: `Create a 3D scene with a time-of-day sun that moves from sunrise through noon to sunset, with animated light color and intensity. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
530
530
|
code: `@Composable
|
|
531
531
|
fun DynamicSkyScreen() {
|
|
532
532
|
val engine = rememberEngine()
|
|
@@ -610,7 +610,7 @@ fun DynamicSkyScreen() {
|
|
|
610
610
|
description: "Animated 3D line art with sine waves and Lissajous curves using PathNode and LineNode, with parameter sliders.",
|
|
611
611
|
tags: ["3d", "lines", "geometry", "animation"],
|
|
612
612
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
613
|
-
prompt:
|
|
613
|
+
prompt: `Create a 3D scene that draws animated parametric curves (sine wave, Lissajous) using PathNode with amplitude and frequency sliders. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
614
614
|
code: `@Composable
|
|
615
615
|
fun LinePathScreen() {
|
|
616
616
|
val engine = rememberEngine()
|
|
@@ -687,7 +687,7 @@ fun LinePathScreen() {
|
|
|
687
687
|
description: "Camera-facing 3D text labels using TextNode — floating labels above geometry spheres representing planets.",
|
|
688
688
|
tags: ["3d", "text", "geometry"],
|
|
689
689
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
690
|
-
prompt:
|
|
690
|
+
prompt: `Create a 3D scene with floating text labels above colored spheres representing planets. Use TextNode for the labels. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
691
691
|
code: `@Composable
|
|
692
692
|
fun TextLabelsScreen() {
|
|
693
693
|
val engine = rememberEngine()
|
|
@@ -745,7 +745,7 @@ fun TextLabelsScreen() {
|
|
|
745
745
|
description: "Zone-based IBL overrides with material picker (Chrome, Gold, Copper, Rough) and probe toggle.",
|
|
746
746
|
tags: ["3d", "reflection", "environment", "model"],
|
|
747
747
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
748
|
-
prompt:
|
|
748
|
+
prompt: `Create a 3D scene with a metallic sphere and a ReflectionProbeNode that overrides the IBL. Add a material picker to switch between Chrome, Gold, Copper, and Rough. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
749
749
|
code: `@Composable
|
|
750
750
|
fun ReflectionProbeScreen() {
|
|
751
751
|
val engine = rememberEngine()
|
|
@@ -781,7 +781,7 @@ fun ReflectionProbeScreen() {
|
|
|
781
781
|
description: "Real-time post-processing effects: bloom, vignette, tone mapping, FXAA, and SSAO controls.",
|
|
782
782
|
tags: ["3d", "post-processing", "environment"],
|
|
783
783
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
784
|
-
prompt:
|
|
784
|
+
prompt: `Create a 3D scene with interactive post-processing controls for bloom, vignette, tone mapping, FXAA, and SSAO. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
785
785
|
code: `@Composable
|
|
786
786
|
fun PostProcessingScreen() {
|
|
787
787
|
val engine = rememberEngine()
|
|
@@ -809,7 +809,7 @@ fun PostProcessingScreen() {
|
|
|
809
809
|
description: "Video playback on a 3D plane using VideoNode with MediaPlayer — supports looping, chroma-key, and auto-sizing.",
|
|
810
810
|
tags: ["3d", "video", "model"],
|
|
811
811
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
812
|
-
prompt:
|
|
812
|
+
prompt: `Create a 3D scene with a video playing on a floating 3D plane. Include play/pause controls and chroma-key support. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
813
813
|
code: `@Composable
|
|
814
814
|
fun VideoTextureScreen() {
|
|
815
815
|
val context = LocalContext.current
|
|
@@ -859,7 +859,7 @@ fun VideoTextureScreen() {
|
|
|
859
859
|
description: "Scene with multiple 3D models loaded independently, positioned and scaled to create a complete environment.",
|
|
860
860
|
tags: ["3d", "model", "multi-model", "environment"],
|
|
861
861
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
862
|
-
prompt:
|
|
862
|
+
prompt: `Create a 3D scene that loads multiple GLB models (a car, a building, and trees) and positions them to form a street scene. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
863
863
|
code: `@Composable
|
|
864
864
|
fun MultiModelScreen() {
|
|
865
865
|
val engine = rememberEngine()
|
|
@@ -925,7 +925,7 @@ fun MultiModelScreen() {
|
|
|
925
925
|
description: "Full gesture handling — tap to select, double-tap to scale, long-press for info, pinch-to-scale, drag-to-move on editable nodes.",
|
|
926
926
|
tags: ["3d", "gestures", "model"],
|
|
927
927
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
928
|
-
prompt:
|
|
928
|
+
prompt: `Create a 3D scene with a model that responds to tap (select), double-tap (scale up), long-press (show info), and supports pinch-to-scale and drag-to-move. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
929
929
|
code: `@Composable
|
|
930
930
|
fun GestureInteractionScreen() {
|
|
931
931
|
val engine = rememberEngine()
|
|
@@ -989,7 +989,7 @@ fun GestureInteractionScreen() {
|
|
|
989
989
|
description: "Complete lighting setup — HDR environment (IBL + skybox), main directional light, point light, and spot light with LightNode.",
|
|
990
990
|
tags: ["3d", "environment", "lighting", "model"],
|
|
991
991
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
992
|
-
prompt:
|
|
992
|
+
prompt: `Create a 3D scene with full HDR environment lighting (IBL + skybox), a directional sun light, a red point light, and a blue spot light. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
993
993
|
code: `@Composable
|
|
994
994
|
fun EnvironmentLightingScreen() {
|
|
995
995
|
val engine = rememberEngine()
|
|
@@ -1058,7 +1058,7 @@ fun EnvironmentLightingScreen() {
|
|
|
1058
1058
|
description: "Procedural shapes — CubeNode, SphereNode, CylinderNode, PlaneNode — with PBR materials (metallic, roughness, color).",
|
|
1059
1059
|
tags: ["3d", "geometry", "model"],
|
|
1060
1060
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
1061
|
-
prompt:
|
|
1061
|
+
prompt: `Create a 3D scene showing procedural geometry shapes (cube, sphere, cylinder, plane) with different PBR materials. No model files needed. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
1062
1062
|
code: `@Composable
|
|
1063
1063
|
fun ProceduralGeometryScreen() {
|
|
1064
1064
|
val engine = rememberEngine()
|
|
@@ -1138,7 +1138,7 @@ fun ProceduralGeometryScreen() {
|
|
|
1138
1138
|
description: "Embed interactive Jetpack Compose UI (Cards, Buttons, Text) inside 3D space using ViewNode.",
|
|
1139
1139
|
tags: ["3d", "compose-ui", "text"],
|
|
1140
1140
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
1141
|
-
prompt:
|
|
1141
|
+
prompt: `Create a 3D scene with interactive Compose UI elements (Card with text and a button) floating in 3D space using ViewNode. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
1142
1142
|
code: `@Composable
|
|
1143
1143
|
fun ComposeUI3DScreen() {
|
|
1144
1144
|
val engine = rememberEngine()
|
|
@@ -1171,7 +1171,7 @@ fun ComposeUI3DScreen() {
|
|
|
1171
1171
|
) {
|
|
1172
1172
|
Column(modifier = Modifier.padding(16.dp)) {
|
|
1173
1173
|
Text("Hello 3D World!", style = MaterialTheme.typography.titleMedium)
|
|
1174
|
-
Text("Clicks:
|
|
1174
|
+
Text("Clicks: $clickCount", style = MaterialTheme.typography.bodySmall)
|
|
1175
1175
|
Spacer(Modifier.height(8.dp))
|
|
1176
1176
|
Button(onClick = { clickCount++ }) {
|
|
1177
1177
|
Text("Click Me")
|
|
@@ -1188,7 +1188,7 @@ fun ComposeUI3DScreen() {
|
|
|
1188
1188
|
description: "Parent-child node relationships — a spinning solar system with planet groups orbiting a central sun.",
|
|
1189
1189
|
tags: ["3d", "hierarchy", "geometry", "animation"],
|
|
1190
1190
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
1191
|
-
prompt:
|
|
1191
|
+
prompt: `Create a 3D solar system where planets orbit a sun using parent-child node hierarchies. Each planet group rotates independently. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
1192
1192
|
code: `@Composable
|
|
1193
1193
|
fun NodeHierarchyScreen() {
|
|
1194
1194
|
val engine = rememberEngine()
|
|
@@ -1687,7 +1687,7 @@ struct VideoPlayerScreen: View {
|
|
|
1687
1687
|
description: "Display images on 3D planes using ImageNode — from assets, resources, or Bitmaps.",
|
|
1688
1688
|
tags: ["3d", "image", "geometry"],
|
|
1689
1689
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
1690
|
-
prompt:
|
|
1690
|
+
prompt: `Create a 3D scene with images displayed on floating planes using ImageNode. Show examples from file, resource, and Bitmap. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
1691
1691
|
code: `@Composable
|
|
1692
1692
|
fun ImageNodeScreen() {
|
|
1693
1693
|
val engine = rememberEngine()
|
|
@@ -1746,7 +1746,7 @@ fun ImageNodeScreen() {
|
|
|
1746
1746
|
description: "Always-facing-camera sprites using BillboardNode — useful for markers, icons, and info overlays in 3D space.",
|
|
1747
1747
|
tags: ["3d", "billboard", "image"],
|
|
1748
1748
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
1749
|
-
prompt:
|
|
1749
|
+
prompt: `Create a 3D scene with billboard sprites that always face the camera, useful for markers and info overlays. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
1750
1750
|
code: `@Composable
|
|
1751
1751
|
fun BillboardSpriteScreen() {
|
|
1752
1752
|
val engine = rememberEngine()
|
|
@@ -1811,7 +1811,7 @@ fun BillboardSpriteScreen() {
|
|
|
1811
1811
|
description: "Reactive animation driven by Compose state — switch between Idle, Walk, and Run animations on a character model.",
|
|
1812
1812
|
tags: ["3d", "model", "animation"],
|
|
1813
1813
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
1814
|
-
prompt:
|
|
1814
|
+
prompt: `Create a 3D scene with a character model that switches between Idle, Walk, and Run animations based on button clicks. Use animationName for state-driven animation. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
1815
1815
|
code: `@Composable
|
|
1816
1816
|
fun AnimationStateScreen() {
|
|
1817
1817
|
val engine = rememberEngine()
|
|
@@ -1875,7 +1875,7 @@ fun AnimationStateScreen() {
|
|
|
1875
1875
|
description: "Smooth spring-based node animations using Compose animateFloatAsState with spring spec for natural motion.",
|
|
1876
1876
|
tags: ["3d", "animation", "spring", "geometry"],
|
|
1877
1877
|
dependency: "io.github.sceneview:sceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
1878
|
-
prompt:
|
|
1878
|
+
prompt: `Create a 3D scene with geometry nodes that animate position using spring physics via Compose's animateFloatAsState. Tap to toggle positions with springy motion. Use SceneView \`io.github.sceneview:sceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
1879
1879
|
code: `@Composable
|
|
1880
1880
|
fun SpringAnimationScreen() {
|
|
1881
1881
|
val engine = rememberEngine()
|
|
@@ -1968,7 +1968,7 @@ fun SpringAnimationScreen() {
|
|
|
1968
1968
|
description: "AR scene with a center-screen reticle using HitResultNode that follows the detected surface.",
|
|
1969
1969
|
tags: ["ar", "cursor", "plane-detection", "placement"],
|
|
1970
1970
|
dependency: "io.github.sceneview:arsceneview:" + LATEST_SCENEVIEW_RELEASE + "",
|
|
1971
|
-
prompt:
|
|
1971
|
+
prompt: `Create an AR screen with a surface cursor (reticle) in the center of the screen that follows detected surfaces, using HitResultNode. Tap to place a model at the cursor position. Use SceneView \`io.github.sceneview:arsceneview:${LATEST_SCENEVIEW_RELEASE}\`.`,
|
|
1972
1972
|
code: `@Composable
|
|
1973
1973
|
fun ARSurfaceCursorScreen() {
|
|
1974
1974
|
val engine = rememberEngine()
|
|
@@ -2024,7 +2024,7 @@ fun ARSurfaceCursorScreen() {
|
|
|
2024
2024
|
title: "Web 3D Model Viewer",
|
|
2025
2025
|
description: "Browser-based 3D model viewer using Filament.js (WebGL2/WASM) — same engine as SceneView Android",
|
|
2026
2026
|
tags: ["3d", "model", "web", "filament-js"],
|
|
2027
|
-
dependency: "
|
|
2027
|
+
dependency: "sceneview-web",
|
|
2028
2028
|
language: "kotlin-js",
|
|
2029
2029
|
prompt: "Create a browser-based 3D model viewer using SceneView Web (Kotlin/JS + Filament.js). Load a GLB model with camera and lighting.",
|
|
2030
2030
|
code: `import io.github.sceneview.web.SceneView
|
|
@@ -2068,7 +2068,7 @@ fun main() {
|
|
|
2068
2068
|
title: "Web Environment Lighting",
|
|
2069
2069
|
description: "Browser 3D scene with IBL environment lighting and skybox from KTX files",
|
|
2070
2070
|
tags: ["3d", "environment", "web", "filament-js", "lighting"],
|
|
2071
|
-
dependency: "
|
|
2071
|
+
dependency: "sceneview-web",
|
|
2072
2072
|
language: "kotlin-js",
|
|
2073
2073
|
prompt: "Create a browser 3D viewer with HDR environment lighting (IBL + skybox) using SceneView Web and Filament.js.",
|
|
2074
2074
|
code: `import io.github.sceneview.web.SceneView
|
package/dist/search-models.js
CHANGED
|
@@ -209,6 +209,6 @@ export function formatSearchResults(result) {
|
|
|
209
209
|
const downloadable = model.downloadable ? "downloadable" : "view-only";
|
|
210
210
|
lines.push(`### ${model.name}`, `- **Author:** ${model.author}`, `- **License:** ${model.license}`, `- **Geometry:** ${triangles} (${downloadable})`, `- **Viewer:** ${model.viewerUrl}`, `- **Embed URL:** ${model.embedUrl}`, `- **Thumbnail:** ${model.thumbnailUrl}`, `- **UID:** \`${model.uid}\``, "");
|
|
211
211
|
}
|
|
212
|
-
lines.push("---",
|
|
212
|
+
lines.push("---", 'Tip: use the viewer URL to verify the model, then download a GLB from Sketchfab and load it with `rememberModelInstance(modelLoader, "models/your-file.glb")`.');
|
|
213
213
|
return lines.join("\n");
|
|
214
214
|
}
|
package/dist/server.js
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SceneView MCP `Server`, built once and shared by both transports.
|
|
3
|
+
*
|
|
4
|
+
* `index.ts` (stdio, the `npx sceneview-mcp` path) and `http.ts` (Streamable
|
|
5
|
+
* HTTP, the `--http` path for ChatGPT / Codex / the OpenAI API `mcp` tool)
|
|
6
|
+
* used to be the same 200 lines of handler registration, so they now call
|
|
7
|
+
* `createSceneViewServer()` and only differ by the `surface` option:
|
|
8
|
+
*
|
|
9
|
+
* - `"stdio"` — lists and runs every tool, in-process. Every tool is free
|
|
10
|
+
* and nothing is forwarded anywhere.
|
|
11
|
+
* - `"remote"` — the anonymous public surface. Lists everything except the
|
|
12
|
+
* local-only tools of `surfaces.ts` (the ones needing your
|
|
13
|
+
* own third-party credentials) and refuses those names at
|
|
14
|
+
* call time with a clear `isError` text.
|
|
15
|
+
*
|
|
16
|
+
* Resources (`sceneview://api`, `sceneview://known-issues`, the two
|
|
17
|
+
* `examples://` patterns and the `ui://widget/3d-viewer.html` MCP Apps
|
|
18
|
+
* widget) are identical on both surfaces.
|
|
19
|
+
*/
|
|
20
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
21
|
+
import { CallToolRequestSchema, ListResourcesRequestSchema, ListToolsRequestSchema, ReadResourceRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
22
|
+
import { buildDiscoverResult, DiscoverRequestSchema, SERVER_CAPABILITIES, SERVER_INFO, } from "./discover.js";
|
|
23
|
+
import { DEMO_WITH_SETTINGS_EXAMPLE, SKETCHFAB_STREAMING_EXAMPLE } from "./examples.js";
|
|
24
|
+
import { LATEST_SCENEVIEW_RELEASE } from "./generated/version.js";
|
|
25
|
+
import { fetchKnownIssues } from "./issues.js";
|
|
26
|
+
import { isLocalOnlyTool } from "./surfaces.js";
|
|
27
|
+
import { recordClientInit, recordToolCall } from "./telemetry.js";
|
|
28
|
+
import { API_DOCS, dispatchTool, TOOL_DEFINITIONS } from "./tools/index.js";
|
|
29
|
+
import { listWidgetResources, readUiExtension, readWidgetResource, serveWidgetsTo, } from "./widgets.js";
|
|
30
|
+
/** Tool declarations the remote surface publishes: everything but the local-only tools. */
|
|
31
|
+
export function remoteToolDefinitions() {
|
|
32
|
+
return TOOL_DEFINITIONS.filter((tool) => !isLocalOnlyTool(tool.name));
|
|
33
|
+
}
|
|
34
|
+
/** The refusal a remote caller gets for a local-only tool name. Exported for tests. */
|
|
35
|
+
export function remoteUnavailableRefusal(toolName) {
|
|
36
|
+
return (`\`${toolName}\` is not available on this remote server: it needs your own ` +
|
|
37
|
+
`third-party credentials, which a shared anonymous endpoint cannot hold. ` +
|
|
38
|
+
`Run the package locally (\`npx sceneview-mcp\`) to use it. It is free.`);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Strips the MCP Apps `_meta.ui` pointer off a definition or a result.
|
|
42
|
+
*
|
|
43
|
+
* Everything else in `_meta` survives, the `openai/*` keys included: those are
|
|
44
|
+
* a different vendor's mechanism, and a client that speaks the extension is
|
|
45
|
+
* not the host that reads them.
|
|
46
|
+
*/
|
|
47
|
+
function withoutWidgetPointer(value) {
|
|
48
|
+
if (!value._meta || !("ui" in value._meta))
|
|
49
|
+
return value;
|
|
50
|
+
const meta = { ...value._meta };
|
|
51
|
+
delete meta.ui;
|
|
52
|
+
return { ...value, _meta: meta };
|
|
53
|
+
}
|
|
54
|
+
export function createSceneViewServer(options = {}) {
|
|
55
|
+
const surface = options.surface ?? "stdio";
|
|
56
|
+
const remote = surface === "remote";
|
|
57
|
+
// `SERVER_INFO` / `SERVER_CAPABILITIES` live in `./discover.ts` so the
|
|
58
|
+
// handshake and `server/discover` answer the identity/capability question the
|
|
59
|
+
// same way, from one source.
|
|
60
|
+
const server = new Server({ ...SERVER_INFO }, { capabilities: { ...SERVER_CAPABILITIES } });
|
|
61
|
+
// ─── server/discover (MCP 2026-07-28) ──────────────────────────────────────
|
|
62
|
+
//
|
|
63
|
+
// Handshake-free discovery: answered before `initialize`, with no session and
|
|
64
|
+
// no negotiated version. The SDK routes on the method literal and imposes no
|
|
65
|
+
// pre-initialization gate, so registering the handler is enough. See
|
|
66
|
+
// `./discover.ts` for why we answer a 2026-07-28 method while serving
|
|
67
|
+
// 2025-11-25 (issue #3349).
|
|
68
|
+
server.setRequestHandler(DiscoverRequestSchema, async () => buildDiscoverResult());
|
|
69
|
+
// ─── Telemetry (anonymous, opt-out via SCENEVIEW_TELEMETRY=0) ──────────────
|
|
70
|
+
//
|
|
71
|
+
// Fire once when the client finishes the handshake. See `telemetry.ts` and
|
|
72
|
+
// `PRIVACY.md` for what's collected and how to opt out.
|
|
73
|
+
server.oninitialized = () => {
|
|
74
|
+
recordClientInit(server.getClientVersion());
|
|
75
|
+
};
|
|
76
|
+
// ─── Resources ─────────────────────────────────────────────────────────────
|
|
77
|
+
server.setRequestHandler(ListResourcesRequestSchema, async () => ({
|
|
78
|
+
resources: [
|
|
79
|
+
{
|
|
80
|
+
uri: "sceneview://api",
|
|
81
|
+
name: "SceneView API Reference",
|
|
82
|
+
description: `Complete SceneView ${LATEST_SCENEVIEW_RELEASE} API — SceneView, ARSceneView, SceneScope DSL, ARSceneScope DSL, node types, resource loading, camera, gestures, math types, threading rules, and common patterns. Read this before writing any SceneView code.`,
|
|
83
|
+
mimeType: "text/markdown",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
uri: "sceneview://known-issues",
|
|
87
|
+
name: "SceneView Open GitHub Issues",
|
|
88
|
+
description: "Live list of open issues from the SceneView GitHub repository. Check this before reporting a bug or when something isn't working — there may already be a known workaround.",
|
|
89
|
+
mimeType: "text/markdown",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
uri: "examples://demo-with-settings",
|
|
93
|
+
name: "Example — DemoScaffold v2 (full-screen scene + ModalBottomSheet)",
|
|
94
|
+
description: "Pattern for full-screen 3D / AR scene + Material 3 ModalBottomSheet controls. The DemoScaffold v2 contract used by every demo in samples/android-demo (issue #1154, PR #1169). Read this before adding a new demo with settings.",
|
|
95
|
+
mimeType: "text/markdown",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
uri: "examples://sketchfab-streaming",
|
|
99
|
+
name: "Example — Stream Sketchfab CC-BY models into a SceneView demo",
|
|
100
|
+
description: "Pattern for streaming CC-BY licensed glTF models from Sketchfab on demand instead of bundling 30 MB of GLBs in the APK. Uses SketchfabAssetResolver + SampleAssets registry + per-slug bundled fallback (Stage 2 of umbrella issue #1152). Read this before adding a streamed demo.",
|
|
101
|
+
mimeType: "text/markdown",
|
|
102
|
+
},
|
|
103
|
+
// MCP Apps widgets (`ui://…`), appended after the historical four so
|
|
104
|
+
// existing consumers see the same list prefix they always did.
|
|
105
|
+
...listWidgetResources(),
|
|
106
|
+
],
|
|
107
|
+
}));
|
|
108
|
+
server.setRequestHandler(ReadResourceRequestSchema, async (request) => {
|
|
109
|
+
switch (request.params.uri) {
|
|
110
|
+
case "sceneview://api":
|
|
111
|
+
return {
|
|
112
|
+
contents: [{ uri: "sceneview://api", mimeType: "text/markdown", text: API_DOCS }],
|
|
113
|
+
};
|
|
114
|
+
case "sceneview://known-issues": {
|
|
115
|
+
const issues = await fetchKnownIssues();
|
|
116
|
+
return {
|
|
117
|
+
contents: [{ uri: "sceneview://known-issues", mimeType: "text/markdown", text: issues }],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
case "examples://demo-with-settings":
|
|
121
|
+
return {
|
|
122
|
+
contents: [
|
|
123
|
+
{
|
|
124
|
+
uri: "examples://demo-with-settings",
|
|
125
|
+
mimeType: "text/markdown",
|
|
126
|
+
text: DEMO_WITH_SETTINGS_EXAMPLE,
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
};
|
|
130
|
+
case "examples://sketchfab-streaming":
|
|
131
|
+
return {
|
|
132
|
+
contents: [
|
|
133
|
+
{
|
|
134
|
+
uri: "examples://sketchfab-streaming",
|
|
135
|
+
mimeType: "text/markdown",
|
|
136
|
+
text: SKETCHFAB_STREAMING_EXAMPLE,
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
};
|
|
140
|
+
default: {
|
|
141
|
+
const widget = readWidgetResource(request.params.uri);
|
|
142
|
+
if (widget)
|
|
143
|
+
return { contents: [widget] };
|
|
144
|
+
throw new Error(`Unknown resource: ${request.params.uri}`);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
// ─── Tools ─────────────────────────────────────────────────────────────────
|
|
149
|
+
/**
|
|
150
|
+
* Whether this session gets MCP Apps widget pointers.
|
|
151
|
+
*
|
|
152
|
+
* The client's declared mime types arrive in the `initialize` handshake and
|
|
153
|
+
* the SDK keeps them on the server, so both tool handlers can ask the same
|
|
154
|
+
* question the HTTP gateway asks — otherwise the two transports drift and
|
|
155
|
+
* the stdio server hands a widget to a host that declared it cannot render
|
|
156
|
+
* one (#3485). Silence stays permissive: see `serveWidgetsTo`.
|
|
157
|
+
*/
|
|
158
|
+
const widgetsEnabled = () => serveWidgetsTo(readUiExtension(server.getClientCapabilities()));
|
|
159
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
160
|
+
const withWidgets = widgetsEnabled();
|
|
161
|
+
const negotiate = (tool) => withWidgets ? tool : withoutWidgetPointer(tool);
|
|
162
|
+
// Remote surface: everything the shared endpoint can actually run.
|
|
163
|
+
// Listing a tool it has no credentials for would advertise a dead end.
|
|
164
|
+
if (remote)
|
|
165
|
+
return { tools: remoteToolDefinitions().map(negotiate) };
|
|
166
|
+
// Local stdio: the whole tool list, unmodified. Every tool is free.
|
|
167
|
+
return { tools: TOOL_DEFINITIONS.map(negotiate) };
|
|
168
|
+
});
|
|
169
|
+
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
170
|
+
// Same decision as the declaration above, so a host that discovers
|
|
171
|
+
// widgets from RESULTS rather than declarations cannot be handed a
|
|
172
|
+
// pointer the session negotiated away (#3485). The tool still runs and
|
|
173
|
+
// still answers with its text content: degradation, not failure.
|
|
174
|
+
const negotiateResult = (result) => widgetsEnabled() ? result : withoutWidgetPointer(result);
|
|
175
|
+
const toolName = request.params.name;
|
|
176
|
+
const args = request.params.arguments;
|
|
177
|
+
// Record anonymous telemetry (fire-and-forget, non-blocking, opt-out via
|
|
178
|
+
// SCENEVIEW_TELEMETRY=0). See `telemetry.ts` and `PRIVACY.md`.
|
|
179
|
+
recordToolCall(toolName);
|
|
180
|
+
// Remote surface: a local-only tool name is refused with an explanation.
|
|
181
|
+
// Unknown names fall through to `dispatchTool`, whose "Unknown tool"
|
|
182
|
+
// answer is the honest one for a typo. Locally, nothing is refused —
|
|
183
|
+
// every tool runs in-process.
|
|
184
|
+
if (remote && isLocalOnlyTool(toolName)) {
|
|
185
|
+
return {
|
|
186
|
+
content: [{ type: "text", text: remoteUnavailableRefusal(toolName) }],
|
|
187
|
+
isError: true,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
// The dispatcher returns the narrower SceneView `ToolResult` shape, which
|
|
191
|
+
// structurally matches the MCP SDK's `CallToolResult` but TS can't prove
|
|
192
|
+
// it (the SDK's zod-derived type has additional optional members).
|
|
193
|
+
const result = await dispatchTool(toolName, args);
|
|
194
|
+
return negotiateResult(result);
|
|
195
|
+
});
|
|
196
|
+
return server;
|
|
197
|
+
}
|
package/dist/surfaces.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// ─── Tool surfaces ────────────────────────────────────────────────────────────
|
|
2
|
+
//
|
|
3
|
+
// Every SceneView MCP tool is free. There is no paid tier, no API key, no
|
|
4
|
+
// gateway: the hosted worker that once served a "Pro" tier was deleted in
|
|
5
|
+
// August 2026 and both of its URLs (`/mcp` and `/pricing`) have answered 404
|
|
6
|
+
// ever since, so the upsell that pointed at them was removed.
|
|
7
|
+
//
|
|
8
|
+
// What remains is a surface question, not a price one. Three generation tools
|
|
9
|
+
// need per-user credentials and external infrastructure that a shared,
|
|
10
|
+
// anonymous HTTP endpoint has no way to hold, so they run in the local stdio
|
|
11
|
+
// package only. Everything else is served by both surfaces.
|
|
12
|
+
/**
|
|
13
|
+
* Tools the anonymous remote surface (`--http`, `worker.ts`) does not serve.
|
|
14
|
+
*
|
|
15
|
+
* Not a paywall: these three call out to per-user third-party accounts
|
|
16
|
+
* (Tripo, the preview host) or return heavy generated artifacts, and a shared
|
|
17
|
+
* endpoint has no caller to bill them to. Run `npx sceneview-mcp` locally to
|
|
18
|
+
* use them.
|
|
19
|
+
*/
|
|
20
|
+
const LOCAL_ONLY_TOOLS = [
|
|
21
|
+
"render_3d_preview",
|
|
22
|
+
"create_3d_artifact",
|
|
23
|
+
"generate_scene",
|
|
24
|
+
];
|
|
25
|
+
/** Returns true if the tool is served by the local stdio package only. */
|
|
26
|
+
export function isLocalOnlyTool(toolName) {
|
|
27
|
+
return LOCAL_ONLY_TOOLS.includes(toolName);
|
|
28
|
+
}
|
|
29
|
+
/** Returns the names of the tools the remote surface does not serve. */
|
|
30
|
+
export function getLocalOnlyToolNames() {
|
|
31
|
+
return [...LOCAL_ONLY_TOOLS];
|
|
32
|
+
}
|
package/dist/telemetry.js
CHANGED
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
// - client: MCP client name (e.g. "claude-desktop", "cursor")
|
|
9
9
|
// - clientVersion: MCP client version string reported during handshake
|
|
10
10
|
// - mcpVersion: this package's version
|
|
11
|
-
// - tier: "free"
|
|
11
|
+
// - tier: always "free" — kept as a wire field for the worker schema;
|
|
12
|
+
// SceneView MCP has no paid tier
|
|
12
13
|
// - tool?: tool name (only for "tool" events)
|
|
13
14
|
// - installId?: opaque random UUID per install — lets the worker count
|
|
14
15
|
// unique developers per client runtime without identifying who they are
|
|
15
16
|
// - botLikelihood?: float in [0.0, 1.0] computed at the sender side from
|
|
16
17
|
// environment signals (CI flags, no-TTY, container hints). Worker uses
|
|
17
|
-
// it to exclude bot traffic from
|
|
18
|
+
// it to exclude bot traffic from usage analytics by default.
|
|
18
19
|
//
|
|
19
20
|
// What NEVER gets sent:
|
|
20
21
|
// - IP address (the endpoint strips it server-side; we never send headers)
|
|
@@ -23,12 +24,19 @@
|
|
|
23
24
|
// - API keys, billing info
|
|
24
25
|
//
|
|
25
26
|
// Opt out with `SCENEVIEW_TELEMETRY=0` or by running in CI (`CI=true`).
|
|
27
|
+
import { randomUUID } from "node:crypto";
|
|
26
28
|
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
27
29
|
import { homedir } from "node:os";
|
|
28
30
|
import { join } from "node:path";
|
|
29
|
-
import { randomUUID } from "node:crypto";
|
|
30
31
|
// Worker implementation: telemetry-worker/ (Hono + D1 + KV rate limiting).
|
|
31
32
|
// Deploy with: cd telemetry-worker && see DEPLOY.md
|
|
33
|
+
//
|
|
34
|
+
// `mcp-tools-lab` in this hostname is the Cloudflare account's workers.dev
|
|
35
|
+
// subdomain, NOT the GitHub org of the same name that was deleted on
|
|
36
|
+
// 2026-08-23. The worker is live and ingesting (checked 2026-09-25: `/health`
|
|
37
|
+
// answers ok, `/v1/stats` counts events from 4.0.16 over the last 24 h).
|
|
38
|
+
// Moving to a custom domain on sceneview.dev needs the worker to answer there
|
|
39
|
+
// first; re-pointing this constant before that would silently drop every event.
|
|
32
40
|
const TELEMETRY_ENDPOINT = "https://sceneview-telemetry.mcp-tools-lab.workers.dev/v1/events";
|
|
33
41
|
const TELEMETRY_BATCH_ENDPOINT = "https://sceneview-telemetry.mcp-tools-lab.workers.dev/v1/batch";
|
|
34
42
|
// Hard cap so we never hang the process on a slow endpoint.
|
|
@@ -343,11 +351,9 @@ export function recordClientInit(clientInfo) {
|
|
|
343
351
|
});
|
|
344
352
|
}
|
|
345
353
|
/**
|
|
346
|
-
* Record a tool invocation. Called from the `CallToolRequestSchema` handler
|
|
347
|
-
* after the tier check has passed. `tier` is the tier the tool resolved to,
|
|
348
|
-
* not the user's subscription status.
|
|
354
|
+
* Record a tool invocation. Called from the `CallToolRequestSchema` handler.
|
|
349
355
|
*/
|
|
350
|
-
export function recordToolCall(toolName
|
|
356
|
+
export function recordToolCall(toolName) {
|
|
351
357
|
if (!isEnabled())
|
|
352
358
|
return;
|
|
353
359
|
// If the client never completed initialization (which shouldn't happen in
|
|
@@ -359,7 +365,7 @@ export function recordToolCall(toolName, tier) {
|
|
|
359
365
|
client: ctx.client,
|
|
360
366
|
clientVersion: ctx.clientVersion,
|
|
361
367
|
mcpVersion: getMcpVersion(),
|
|
362
|
-
tier,
|
|
368
|
+
tier: "free",
|
|
363
369
|
tool: toolName,
|
|
364
370
|
...buildBase(),
|
|
365
371
|
});
|