sceneview-mcp 4.0.7 → 4.0.8
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/dist/generated/version.js +5 -0
- package/dist/index.js +1 -1
- package/dist/telemetry.js +6 -4
- package/package.json +4 -4
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate-version.js — do not edit by hand.
|
|
2
|
+
// Snapshots the package.json "version" field at build time so that
|
|
3
|
+
// the MCP server and telemetry report the actual published version
|
|
4
|
+
// instead of a stale hardcoded constant.
|
|
5
|
+
export const PACKAGE_VERSION = "4.0.8";
|
package/dist/index.js
CHANGED
|
@@ -21,13 +21,13 @@ import { recordClientInit, recordToolCall } from "./telemetry.js";
|
|
|
21
21
|
import { isProTool, getToolTier } from "./tiers.js";
|
|
22
22
|
import { dispatchProxyToolCall, isProxyConfigured, DEFAULT_PRICING_URL, } from "./proxy.js";
|
|
23
23
|
import { API_DOCS, TOOL_DEFINITIONS, dispatchTool, } from "./tools/index.js";
|
|
24
|
+
import { PACKAGE_VERSION } from "./generated/version.js";
|
|
24
25
|
// ─── v4 lite-mode startup banner ─────────────────────────────────────────────
|
|
25
26
|
//
|
|
26
27
|
// MCP servers must keep stdout clean for JSON-RPC, so we log to stderr.
|
|
27
28
|
// Claude Desktop surfaces this in the server's "Logs" panel. The banner
|
|
28
29
|
// tells the user which mode they're in (hosted vs free) and where to
|
|
29
30
|
// upgrade, without blocking the transport handshake.
|
|
30
|
-
const PACKAGE_VERSION = "4.0.0";
|
|
31
31
|
function logStartupBanner() {
|
|
32
32
|
if (process.env.SCENEVIEW_MCP_QUIET === "1")
|
|
33
33
|
return;
|
package/dist/telemetry.js
CHANGED
|
@@ -39,11 +39,13 @@ function isEnabled() {
|
|
|
39
39
|
return false;
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
|
-
// Read the package version
|
|
43
|
-
//
|
|
44
|
-
//
|
|
42
|
+
// Read the package version from the build-time generated module so the
|
|
43
|
+
// telemetry payload reports the real published version. Pre-4.0.8 this
|
|
44
|
+
// fell back to a hardcoded "4.0.0" string that was never bumped, which
|
|
45
|
+
// made it impossible to track adoption of any new release.
|
|
46
|
+
import { PACKAGE_VERSION } from "./generated/version.js";
|
|
45
47
|
function getMcpVersion() {
|
|
46
|
-
return process.env.SCENEVIEW_MCP_VERSION ??
|
|
48
|
+
return process.env.SCENEVIEW_MCP_VERSION ?? PACKAGE_VERSION;
|
|
47
49
|
}
|
|
48
50
|
// Fire-and-forget POST of a single payload to the individual event endpoint.
|
|
49
51
|
// Used as fallback when batch delivery fails.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sceneview-mcp",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
4
4
|
"mcpName": "io.github.sceneview/mcp",
|
|
5
5
|
"description": "MCP server for SceneView — cross-platform 3D & AR SDK for Android and iOS. Give Claude the full SceneView SDK so it writes correct, compilable code.",
|
|
6
6
|
"keywords": [
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"node": ">=18"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"prebuild": "node scripts/generate-llms-txt.js",
|
|
54
|
+
"prebuild": "node scripts/generate-llms-txt.js && node scripts/generate-version.js",
|
|
55
55
|
"build": "tsc",
|
|
56
|
-
"prepare": "cp ../llms.txt ./llms.txt && node scripts/generate-llms-txt.js && tsc",
|
|
56
|
+
"prepare": "cp ../llms.txt ./llms.txt && node scripts/generate-llms-txt.js && node scripts/generate-version.js && tsc",
|
|
57
57
|
"start": "node dist/index.js",
|
|
58
58
|
"dev": "tsx src/index.ts",
|
|
59
|
-
"test": "node scripts/generate-llms-txt.js && vitest run"
|
|
59
|
+
"test": "node scripts/generate-llms-txt.js && node scripts/generate-version.js && vitest run"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@modelcontextprotocol/sdk": "^1.29.0"
|