@umbraco-cms/mcp-dev 17.5.1 → 17.6.0-rc
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-A3EHFQJV.cjs → chunk-KDAEC7HU.cjs} +1450 -943
- package/dist/chunk-KDAEC7HU.cjs.map +1 -0
- package/dist/{chunk-KQR2L2F3.js → chunk-MWSQU2CY.js} +2472 -1965
- package/dist/chunk-MWSQU2CY.js.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 +6351 -588
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6160 -397
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +38 -0
- package/package.json +8 -4
- package/dist/chunk-A3EHFQJV.cjs.map +0 -1
- package/dist/chunk-KQR2L2F3.js.map +0 -1
package/dist/tool-types.d.ts
CHANGED
|
@@ -1162,6 +1162,7 @@ export interface DeleteDocumentRecycleBinItemInput {
|
|
|
1162
1162
|
|
|
1163
1163
|
export interface GetDocumentUrlsInput {
|
|
1164
1164
|
id?: string[];
|
|
1165
|
+
culture?: string;
|
|
1165
1166
|
}
|
|
1166
1167
|
|
|
1167
1168
|
export interface GetDocumentUrlsOutput {
|
|
@@ -1360,6 +1361,10 @@ export interface UpdateDocumentInput {
|
|
|
1360
1361
|
id: string;
|
|
1361
1362
|
} | null;
|
|
1362
1363
|
};
|
|
1364
|
+
/**
|
|
1365
|
+
* 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.
|
|
1366
|
+
*/
|
|
1367
|
+
confirmClearValues?: boolean;
|
|
1363
1368
|
}
|
|
1364
1369
|
|
|
1365
1370
|
export interface UpdateDocumentPropertiesInput {
|
|
@@ -1425,6 +1430,35 @@ export interface UpdateDocumentPropertiesOutput {
|
|
|
1425
1430
|
};
|
|
1426
1431
|
}
|
|
1427
1432
|
|
|
1433
|
+
export interface UpdateDocumentNameInput {
|
|
1434
|
+
/**
|
|
1435
|
+
* The unique identifier of the document to rename
|
|
1436
|
+
*/
|
|
1437
|
+
id: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* The new name for the document (or the document variant matching the given culture)
|
|
1440
|
+
*/
|
|
1441
|
+
name: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* 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.
|
|
1444
|
+
*/
|
|
1445
|
+
culture?: string | null;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
export interface UpdateDocumentNameOutput {
|
|
1449
|
+
success: boolean;
|
|
1450
|
+
message: string;
|
|
1451
|
+
previousName: string;
|
|
1452
|
+
name: string;
|
|
1453
|
+
culture: string | null;
|
|
1454
|
+
/**
|
|
1455
|
+
* The updated document object
|
|
1456
|
+
*/
|
|
1457
|
+
document: {
|
|
1458
|
+
[k: string]: unknown;
|
|
1459
|
+
};
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1428
1462
|
export interface UpdateBlockPropertyInput {
|
|
1429
1463
|
/**
|
|
1430
1464
|
* The document containing the block
|
|
@@ -3479,6 +3513,7 @@ export interface GetManifestManifestOutput {
|
|
|
3479
3513
|
name: string;
|
|
3480
3514
|
id?: string | null;
|
|
3481
3515
|
version?: string | null;
|
|
3516
|
+
cacheBuster?: string | null;
|
|
3482
3517
|
extensions: unknown[];
|
|
3483
3518
|
}[];
|
|
3484
3519
|
}
|
|
@@ -3490,6 +3525,7 @@ export interface GetManifestManifestPrivateOutput {
|
|
|
3490
3525
|
name: string;
|
|
3491
3526
|
id?: string | null;
|
|
3492
3527
|
version?: string | null;
|
|
3528
|
+
cacheBuster?: string | null;
|
|
3493
3529
|
extensions: unknown[];
|
|
3494
3530
|
}[];
|
|
3495
3531
|
}
|
|
@@ -3501,6 +3537,7 @@ export interface GetManifestManifestPublicOutput {
|
|
|
3501
3537
|
name: string;
|
|
3502
3538
|
id?: string | null;
|
|
3503
3539
|
version?: string | null;
|
|
3540
|
+
cacheBuster?: string | null;
|
|
3504
3541
|
extensions: unknown[];
|
|
3505
3542
|
}[];
|
|
3506
3543
|
}
|
|
@@ -16347,6 +16384,7 @@ export interface CmsTools {
|
|
|
16347
16384
|
"unpublish-document": { input: UnpublishDocumentInput; output: unknown };
|
|
16348
16385
|
"update-document": { input: UpdateDocumentInput; output: unknown };
|
|
16349
16386
|
"update-document-properties": { input: UpdateDocumentPropertiesInput; output: UpdateDocumentPropertiesOutput };
|
|
16387
|
+
"update-document-name": { input: UpdateDocumentNameInput; output: UpdateDocumentNameOutput };
|
|
16350
16388
|
"update-block-property": { input: UpdateBlockPropertyInput; output: UpdateBlockPropertyOutput };
|
|
16351
16389
|
"put-document-domains": { input: PutDocumentDomainsInput; output: unknown };
|
|
16352
16390
|
"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.
|
|
3
|
+
"version": "17.6.0-rc",
|
|
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
|
},
|
|
@@ -68,8 +71,8 @@
|
|
|
68
71
|
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
69
72
|
"@types/uuid": "^10.0.0",
|
|
70
73
|
"@types/yargs": "^17.0.33",
|
|
71
|
-
"@umbraco-cms/mcp-hosted": "^
|
|
72
|
-
"@umbraco-cms/mcp-server-sdk": "^
|
|
74
|
+
"@umbraco-cms/mcp-hosted": "^1.0.0-beta.35",
|
|
75
|
+
"@umbraco-cms/mcp-server-sdk": "^1.0.0-beta.35",
|
|
73
76
|
"dotenv": "^16.5.0",
|
|
74
77
|
"form-data": "^4.0.4",
|
|
75
78
|
"mime-types": "^3.0.1",
|
|
@@ -82,6 +85,7 @@
|
|
|
82
85
|
"@anthropic-ai/claude-agent-sdk": "0.2.39",
|
|
83
86
|
"@cloudflare/workers-oauth-provider": "^0.2.3",
|
|
84
87
|
"@jest/types": "^29.6.3",
|
|
88
|
+
"@modelcontextprotocol/inspector": "^1.0.1",
|
|
85
89
|
"@playwright/test": "^1.58.2",
|
|
86
90
|
"@types/dotenv": "^6.1.1",
|
|
87
91
|
"@types/jest": "^29.5.14",
|
|
@@ -93,7 +97,7 @@
|
|
|
93
97
|
"glob": "^11.0.2",
|
|
94
98
|
"jest": "^29.7.0",
|
|
95
99
|
"jest-extended": "^4.0.2",
|
|
96
|
-
"orval": "^
|
|
100
|
+
"orval": "^8.17.0",
|
|
97
101
|
"rimraf": "^6.0.1",
|
|
98
102
|
"ts-jest": "^29.3.2",
|
|
99
103
|
"ts-node": "^10.9.2",
|