@umbraco-cms/mcp-dev 17.5.1 → 17.5.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/dist/{chunk-KQR2L2F3.js → chunk-4ZLKJ22B.js} +1634 -1498
- package/dist/chunk-4ZLKJ22B.js.map +1 -0
- package/dist/{chunk-A3EHFQJV.cjs → chunk-WAIHDFP5.cjs} +612 -476
- package/dist/chunk-WAIHDFP5.cjs.map +1 -0
- package/dist/collections.cjs +2 -2
- package/dist/collections.cjs.map +1 -1
- package/dist/collections.js +1 -1
- package/dist/collections.js.map +1 -1
- package/dist/index.cjs +95 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +34 -0
- package/package.json +4 -1
- package/dist/chunk-A3EHFQJV.cjs.map +0 -1
- package/dist/chunk-KQR2L2F3.js.map +0 -1
package/dist/tool-types.d.ts
CHANGED
|
@@ -1360,6 +1360,10 @@ export interface UpdateDocumentInput {
|
|
|
1360
1360
|
id: string;
|
|
1361
1361
|
} | null;
|
|
1362
1362
|
};
|
|
1363
|
+
/**
|
|
1364
|
+
* Must be set to true to proceed when 'data.values' is an empty array and the document currently has property values. Without this, the call is rejected to prevent accidentally wiping every property value - the exact mistake that motivated this guard. Not needed if the document has no existing values, or if 'data.values' is non-empty.
|
|
1365
|
+
*/
|
|
1366
|
+
confirmClearValues?: boolean;
|
|
1363
1367
|
}
|
|
1364
1368
|
|
|
1365
1369
|
export interface UpdateDocumentPropertiesInput {
|
|
@@ -1425,6 +1429,35 @@ export interface UpdateDocumentPropertiesOutput {
|
|
|
1425
1429
|
};
|
|
1426
1430
|
}
|
|
1427
1431
|
|
|
1432
|
+
export interface UpdateDocumentNameInput {
|
|
1433
|
+
/**
|
|
1434
|
+
* The unique identifier of the document to rename
|
|
1435
|
+
*/
|
|
1436
|
+
id: string;
|
|
1437
|
+
/**
|
|
1438
|
+
* The new name for the document (or the document variant matching the given culture)
|
|
1439
|
+
*/
|
|
1440
|
+
name: string;
|
|
1441
|
+
/**
|
|
1442
|
+
* Optional culture code identifying which variant to rename (e.g., 'en-US'). Required when the document varies by culture and has more than one variant; omit for invariant documents.
|
|
1443
|
+
*/
|
|
1444
|
+
culture?: string | null;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
export interface UpdateDocumentNameOutput {
|
|
1448
|
+
success: boolean;
|
|
1449
|
+
message: string;
|
|
1450
|
+
previousName: string;
|
|
1451
|
+
name: string;
|
|
1452
|
+
culture: string | null;
|
|
1453
|
+
/**
|
|
1454
|
+
* The updated document object
|
|
1455
|
+
*/
|
|
1456
|
+
document: {
|
|
1457
|
+
[k: string]: unknown;
|
|
1458
|
+
};
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1428
1461
|
export interface UpdateBlockPropertyInput {
|
|
1429
1462
|
/**
|
|
1430
1463
|
* The document containing the block
|
|
@@ -16347,6 +16380,7 @@ export interface CmsTools {
|
|
|
16347
16380
|
"unpublish-document": { input: UnpublishDocumentInput; output: unknown };
|
|
16348
16381
|
"update-document": { input: UpdateDocumentInput; output: unknown };
|
|
16349
16382
|
"update-document-properties": { input: UpdateDocumentPropertiesInput; output: UpdateDocumentPropertiesOutput };
|
|
16383
|
+
"update-document-name": { input: UpdateDocumentNameInput; output: UpdateDocumentNameOutput };
|
|
16350
16384
|
"update-block-property": { input: UpdateBlockPropertyInput; output: UpdateBlockPropertyOutput };
|
|
16351
16385
|
"put-document-domains": { input: PutDocumentDomainsInput; output: unknown };
|
|
16352
16386
|
"put-document-notifications": { input: PutDocumentNotificationsInput; output: unknown };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-cms/mcp-dev",
|
|
3
|
-
"version": "17.5.
|
|
3
|
+
"version": "17.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A model context protocol (MCP) server for Umbraco CMS",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
30
30
|
"test:rerun-failures": "grep '^FAIL ' test-failures.log 2>/dev/null | sed 's/^FAIL //' | tr '\\n' ' ' | xargs -r node --experimental-vm-modules node_modules/jest/bin/jest.js --no-coverage || echo 'No failures to rerun (test-failures.log not found or empty)'",
|
|
31
31
|
"test:evals": "node --experimental-vm-modules node_modules/jest/bin/jest.js --no-coverage --config tests/evals/jest.config.ts",
|
|
32
|
+
"test:one": "node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand --forceExit",
|
|
33
|
+
"test:all": "npm run build && npm run test && npm run test:evals",
|
|
32
34
|
"patch-publish-alpha": "npm version prerelease --preid=alpha && npm publish --tag alpha --access public",
|
|
33
35
|
"test:e2e-sdk": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config tests/e2e-sdk/jest.config.ts --runInBand --silent --forceExit 2>/dev/null",
|
|
34
36
|
"test:e2e-sdk:verbose": "E2E_VERBOSITY=verbose node --experimental-vm-modules node_modules/jest/bin/jest.js tests/e2e-sdk --runInBand --testTimeout=120000 --forceExit",
|
|
@@ -36,6 +38,7 @@
|
|
|
36
38
|
"test:e2e": "npx playwright test --config tests/cms-hosted-e2e/playwright.config.ts",
|
|
37
39
|
"umbraco:bootstrap": "bash scripts/bootstrap-demo-site.sh",
|
|
38
40
|
"umbraco:start": "bash scripts/bootstrap-demo-site.sh && dotnet run --project demo-site",
|
|
41
|
+
"start:umbraco": "npm run umbraco:start",
|
|
39
42
|
"umbraco:stop": "lsof -ti :44391 | xargs kill 2>/dev/null; lsof -ti :56472 | xargs kill 2>/dev/null",
|
|
40
43
|
"dev:hosted": "wrangler dev"
|
|
41
44
|
},
|