@modelcontextprotocol/server-threejs 1.0.0 → 1.1.0
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/index.js +9 -9
- package/dist/mcp-app.html +35 -35
- package/dist/server.js +4 -4
- package/package.json +3 -3
package/dist/server.js
CHANGED
|
@@ -12297,7 +12297,7 @@ class Doc {
|
|
|
12297
12297
|
var version = {
|
|
12298
12298
|
major: 4,
|
|
12299
12299
|
minor: 3,
|
|
12300
|
-
patch:
|
|
12300
|
+
patch: 5
|
|
12301
12301
|
};
|
|
12302
12302
|
|
|
12303
12303
|
// ../../node_modules/zod/v4/core/schemas.js
|
|
@@ -13583,7 +13583,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
13583
13583
|
if (keyResult instanceof Promise) {
|
|
13584
13584
|
throw new Error("Async schemas not supported in object keys currently");
|
|
13585
13585
|
}
|
|
13586
|
-
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
|
|
13586
|
+
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length && keyResult.issues.some((iss) => iss.code === "invalid_type" && iss.expected === "number");
|
|
13587
13587
|
if (checkNumericKey) {
|
|
13588
13588
|
const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
|
|
13589
13589
|
if (retryResult instanceof Promise) {
|
|
@@ -20954,7 +20954,7 @@ function finalize(ctx, schema) {
|
|
|
20954
20954
|
}
|
|
20955
20955
|
}
|
|
20956
20956
|
}
|
|
20957
|
-
if (refSchema.$ref
|
|
20957
|
+
if (refSchema.$ref) {
|
|
20958
20958
|
for (const key in schema2) {
|
|
20959
20959
|
if (key === "$ref" || key === "allOf")
|
|
20960
20960
|
continue;
|
|
@@ -26966,7 +26966,7 @@ function mergeCapabilities(base, additional) {
|
|
|
26966
26966
|
return result;
|
|
26967
26967
|
}
|
|
26968
26968
|
|
|
26969
|
-
// ../../dist/src/server/index.js
|
|
26969
|
+
// ../../node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.js
|
|
26970
26970
|
var QI = Object.defineProperty;
|
|
26971
26971
|
var s = (r, i) => {
|
|
26972
26972
|
for (var o in i)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modelcontextprotocol/server-threejs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Three.js 3D visualization MCP App Server",
|
|
6
6
|
"repository": {
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"start": "npm run start:http",
|
|
22
22
|
"start:http": "cross-env NODE_ENV=development npm run build && npm run serve:http",
|
|
23
23
|
"start:stdio": "cross-env NODE_ENV=development npm run build && npm run serve:stdio",
|
|
24
|
-
"dev": "cross-env NODE_ENV=development concurrently
|
|
24
|
+
"dev": "cross-env NODE_ENV=development concurrently \"npm run watch\" \"npm run serve:http\"",
|
|
25
25
|
"prepublishOnly": "npm run build",
|
|
26
26
|
"serve": "bun --watch main.ts"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@modelcontextprotocol/ext-apps": "
|
|
29
|
+
"@modelcontextprotocol/ext-apps": "^1.0.0",
|
|
30
30
|
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
31
31
|
"cors": "^2.8.5",
|
|
32
32
|
"express": "^5.1.0",
|