sceneview-mcp 4.1.0 → 4.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 +13 -4
- package/dist/generated/llms-txt.js +1 -1
- package/dist/generated/symbols.js +339 -1
- package/dist/generated/version.js +2 -2
- package/dist/samples.js +9 -9
- package/dist/tools/definitions.js +1 -1
- package/dist/tools/handler.js +1 -24
- package/dist/tools/index.js +1 -1
- package/dist/widgets.js +1 -1
- package/package.json +1 -1
package/dist/tools/handler.js
CHANGED
|
@@ -39,34 +39,11 @@ import { formatValidationReport, validateCode } from "../validator.js";
|
|
|
39
39
|
import { WIDGET_3D_VIEWER_URI } from "../widgets.js";
|
|
40
40
|
// ─── Legal disclaimer (identical to index.ts 4.0.0) ─────────────────────
|
|
41
41
|
const DISCLAIMER = "\n\n---\n*Generated code suggestion. Review before use in production. See [TERMS.md](https://github.com/sceneview/sceneview/blob/main/mcp/TERMS.md).*";
|
|
42
|
-
// ─── Sponsor CTA (shown every N tool calls, opt-out via env var) ────────────
|
|
43
|
-
//
|
|
44
|
-
// One line, every `SPONSOR_CTA_INTERVAL` tool calls, pointing at the donation
|
|
45
|
-
// page. Disabled by setting `SCENEVIEW_SPONSOR_CTA=0`. The counter is
|
|
46
|
-
// module-scoped (per MCP process lifetime), not persisted.
|
|
47
|
-
//
|
|
48
|
-
// One link only: an assistant's answer is a bad place for a menu, and Open
|
|
49
|
-
// Collective is the channel that actually receives donations. GitHub Sponsors
|
|
50
|
-
// stays listed in the README and on the site.
|
|
51
|
-
const SPONSOR_CTA_INTERVAL = 10;
|
|
52
|
-
const SPONSOR_CTA = "\n\n💙 *Building SceneView is a one-dev labor of love. If it saved you time, consider [supporting it on Open Collective](https://opencollective.com/sceneview).*";
|
|
53
|
-
let toolCallCount = 0;
|
|
54
|
-
/** Test-only: reset the module-scoped counter between test cases. */
|
|
55
|
-
export function __resetSponsorCounter() {
|
|
56
|
-
toolCallCount = 0;
|
|
57
|
-
}
|
|
58
|
-
function shouldShowSponsorCta() {
|
|
59
|
-
if (process.env.SCENEVIEW_SPONSOR_CTA === "0")
|
|
60
|
-
return false;
|
|
61
|
-
toolCallCount += 1;
|
|
62
|
-
return toolCallCount % SPONSOR_CTA_INTERVAL === 0;
|
|
63
|
-
}
|
|
64
42
|
function withDisclaimer(content) {
|
|
65
43
|
if (content.length === 0)
|
|
66
44
|
return content;
|
|
67
45
|
const last = content[content.length - 1];
|
|
68
|
-
|
|
69
|
-
return [...content.slice(0, -1), { ...last, text: last.text + suffix }];
|
|
46
|
+
return [...content.slice(0, -1), { ...last, text: last.text + DISCLAIMER }];
|
|
70
47
|
}
|
|
71
48
|
// ─── llms.txt-derived state ──────────────────────────────────────────────────
|
|
72
49
|
/** Raw API docs markdown — exported for the `sceneview://api` resource. */
|
package/dist/tools/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* `handler.ts` directly.
|
|
7
7
|
*/
|
|
8
8
|
export { TOOL_DEFINITIONS } from "./definitions.js";
|
|
9
|
-
export {
|
|
9
|
+
export { API_DOCS, dispatchTool } from "./handler.js";
|
|
10
10
|
import { TOOL_DEFINITIONS } from "./definitions.js";
|
|
11
11
|
/** Returns the full tool definition list (read-only copy). */
|
|
12
12
|
export function getAllTools() {
|
package/dist/widgets.js
CHANGED
|
@@ -160,7 +160,7 @@ const NEUTRAL_IBL_URL = `${CDN_BASE}/environments/neutral_ibl.ktx`;
|
|
|
160
160
|
*/
|
|
161
161
|
const QRCODE_JS_URL = `${CDN_BASE}/js/qrcode-vendor.js?v=${LATEST_SCENEVIEW_RELEASE}`;
|
|
162
162
|
/**
|
|
163
|
-
* AR Model Viewer's universal link for a remote model (`ar.sceneview.dev/open?url=`). A phone
|
|
163
|
+
* The 3D AR Model Viewer app's universal link for a remote model (`ar.sceneview.dev/open?url=`). A phone
|
|
164
164
|
* with the app opens the model in AR; anything else gets a SceneView-rendered page with the
|
|
165
165
|
* store badges (and a QR on desktop). The worker reads only `url`, `unit` and `name` and ignores
|
|
166
166
|
* any other parameter, which is what makes the `utm_source` tag below harmless.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sceneview-mcp",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"mcpName": "io.github.sceneview/mcp",
|
|
5
5
|
"description": "MCP server for SceneView — cross-platform 3D & AR SDK for Android and iOS. Gives your AI coding assistant the full SceneView SDK so it writes correct, compilable code.",
|
|
6
6
|
"keywords": [
|