@umbraco-cms/mcp-dev 17.6.10 → 17.6.12
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 +2 -0
- package/collections.d.ts +17 -0
- package/dist/{chunk-3FBX4NTJ.cjs → chunk-7BJSON54.cjs} +215 -207
- package/dist/chunk-7BJSON54.cjs.map +1 -0
- package/dist/{chunk-F2BYWHPV.js → chunk-BWVQ4TVW.js} +753 -745
- package/dist/chunk-BWVQ4TVW.js.map +1 -0
- package/dist/collections.cjs +6 -2
- package/dist/collections.cjs.map +1 -1
- package/dist/collections.js +7 -3
- package/dist/collections.js.map +1 -1
- package/dist/index.cjs +593 -296
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +445 -148
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +187 -8
- package/package.json +4 -4
- package/dist/chunk-3FBX4NTJ.cjs.map +0 -1
- package/dist/chunk-F2BYWHPV.js.map +0 -1
package/dist/tool-types.d.ts
CHANGED
|
@@ -48,6 +48,10 @@ export interface GetDataTypeSearchOutput {
|
|
|
48
48
|
|
|
49
49
|
export interface GetReferencesDataTypeInput {
|
|
50
50
|
id: string;
|
|
51
|
+
/**
|
|
52
|
+
* Pagination cursor from a previous response's nextCursor field. Omit for the first page.
|
|
53
|
+
*/
|
|
54
|
+
cursor?: string;
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
export interface GetReferencesDataTypeOutput {
|
|
@@ -140,6 +144,10 @@ export interface GetReferencesDataTypeOutput {
|
|
|
140
144
|
};
|
|
141
145
|
}
|
|
142
146
|
)[];
|
|
147
|
+
/**
|
|
148
|
+
* Cursor for the next page. Pass as the cursor parameter to fetch more results. Absent when on the last page.
|
|
149
|
+
*/
|
|
150
|
+
nextCursor?: string | null;
|
|
143
151
|
}
|
|
144
152
|
|
|
145
153
|
export interface IsUsedDataTypeInput {
|
|
@@ -511,6 +519,20 @@ export interface UpdateDataTypeFolderInput {
|
|
|
511
519
|
};
|
|
512
520
|
}
|
|
513
521
|
|
|
522
|
+
export interface GetDataTypeSchemasInput {
|
|
523
|
+
id?: string[];
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export interface GetDataTypeSchemasOutput {
|
|
527
|
+
total: number;
|
|
528
|
+
items: {
|
|
529
|
+
id: string;
|
|
530
|
+
valueTypeName?: string | null;
|
|
531
|
+
jsonSchema?: unknown;
|
|
532
|
+
error?: string | null;
|
|
533
|
+
}[];
|
|
534
|
+
}
|
|
535
|
+
|
|
514
536
|
export interface FindDictionaryInput {
|
|
515
537
|
filter?: string;
|
|
516
538
|
/**
|
|
@@ -1645,7 +1667,7 @@ export interface CreateDocumentBlockInput {
|
|
|
1645
1667
|
segment?: string | null;
|
|
1646
1668
|
}[];
|
|
1647
1669
|
/**
|
|
1648
|
-
* Settings for the new block; the settings element type comes from the data type configuration
|
|
1670
|
+
* Settings for the new block; the settings element type comes from the data type configuration. When the block type has a settings element type, a settings entry is always created (empty if this is omitted), as the backoffice does
|
|
1649
1671
|
*/
|
|
1650
1672
|
settings?: {
|
|
1651
1673
|
/**
|
|
@@ -2580,6 +2602,72 @@ export interface GetDocumentRecycleBinSiblingsOutput {
|
|
|
2580
2602
|
}[];
|
|
2581
2603
|
}
|
|
2582
2604
|
|
|
2605
|
+
export interface CreateAndPublishDocumentInput {
|
|
2606
|
+
documentTypeId: string;
|
|
2607
|
+
parentId?: string;
|
|
2608
|
+
name: string;
|
|
2609
|
+
/**
|
|
2610
|
+
* Optional template ID to apply to the document. If omitted, the document type's default template is applied automatically. Provide a value only when you need a specific allowed template other than the default.
|
|
2611
|
+
*/
|
|
2612
|
+
templateId?: string;
|
|
2613
|
+
/**
|
|
2614
|
+
* Array of culture codes. If not provided or empty array, will create single variant with null culture.
|
|
2615
|
+
*/
|
|
2616
|
+
cultures?: string[];
|
|
2617
|
+
/**
|
|
2618
|
+
* Culture codes to publish immediately after creation. Must contain real culture codes only - wildcards ("*") and nulls are rejected by Umbraco. If omitted, defaults to publishing every culture in the cultures array, or an empty array (which publishes the single invariant variant) when the document type does not vary by culture.
|
|
2619
|
+
*/
|
|
2620
|
+
culturesToPublish?: string[];
|
|
2621
|
+
values: {
|
|
2622
|
+
editorAlias: string;
|
|
2623
|
+
culture: string | null;
|
|
2624
|
+
segment: string | null;
|
|
2625
|
+
alias: string;
|
|
2626
|
+
value: unknown;
|
|
2627
|
+
}[];
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
export interface CreateAndPublishDocumentOutput {
|
|
2631
|
+
message: string;
|
|
2632
|
+
id: string;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
export interface SortDocumentChildrenInput {
|
|
2636
|
+
id: string;
|
|
2637
|
+
data: {
|
|
2638
|
+
field: "Name" | "CreateDate" | "UpdateDate";
|
|
2639
|
+
direction: "Ascending" | "Descending";
|
|
2640
|
+
culture?: string | null;
|
|
2641
|
+
};
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
export interface SortDocumentRootChildrenInput {
|
|
2645
|
+
field: "Name" | "CreateDate" | "UpdateDate";
|
|
2646
|
+
direction: "Ascending" | "Descending";
|
|
2647
|
+
culture?: string | null;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
export interface UpdateAndPublishDocumentInput {
|
|
2651
|
+
id: string;
|
|
2652
|
+
data: {
|
|
2653
|
+
values: {
|
|
2654
|
+
culture?: string | null;
|
|
2655
|
+
segment?: string | null;
|
|
2656
|
+
alias: string;
|
|
2657
|
+
value?: unknown;
|
|
2658
|
+
}[];
|
|
2659
|
+
variants: {
|
|
2660
|
+
culture?: string | null;
|
|
2661
|
+
segment?: string | null;
|
|
2662
|
+
name: string;
|
|
2663
|
+
}[];
|
|
2664
|
+
template?: {
|
|
2665
|
+
id: string;
|
|
2666
|
+
} | null;
|
|
2667
|
+
culturesToPublish: string[];
|
|
2668
|
+
};
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2583
2671
|
export interface GetDocumentTypeByIdInput {
|
|
2584
2672
|
id: string;
|
|
2585
2673
|
}
|
|
@@ -12837,6 +12925,27 @@ export interface GetRecycleBinMediaOriginalParentOutput {
|
|
|
12837
12925
|
id: string;
|
|
12838
12926
|
}
|
|
12839
12927
|
|
|
12928
|
+
export interface SortMediaChildrenInput {
|
|
12929
|
+
id: string;
|
|
12930
|
+
data: {
|
|
12931
|
+
field: "Name" | "CreateDate" | "UpdateDate";
|
|
12932
|
+
direction: "Ascending" | "Descending";
|
|
12933
|
+
};
|
|
12934
|
+
}
|
|
12935
|
+
|
|
12936
|
+
export interface SortMediaRootChildrenInput {
|
|
12937
|
+
field: "Name" | "CreateDate" | "UpdateDate";
|
|
12938
|
+
direction: "Ascending" | "Descending";
|
|
12939
|
+
}
|
|
12940
|
+
|
|
12941
|
+
export interface GetMediaTypeSchemaInput {
|
|
12942
|
+
id: string;
|
|
12943
|
+
}
|
|
12944
|
+
|
|
12945
|
+
export interface GetMediaTypeSchemaOutput {
|
|
12946
|
+
schema: unknown;
|
|
12947
|
+
}
|
|
12948
|
+
|
|
12840
12949
|
export interface GetMediaTypeFolderInput {
|
|
12841
12950
|
id: string;
|
|
12842
12951
|
}
|
|
@@ -13919,6 +14028,14 @@ export interface GetMemberAncestorsBatchOutput {
|
|
|
13919
14028
|
}[];
|
|
13920
14029
|
}
|
|
13921
14030
|
|
|
14031
|
+
export interface GetMemberTypeSchemaInput {
|
|
14032
|
+
id: string;
|
|
14033
|
+
}
|
|
14034
|
+
|
|
14035
|
+
export interface GetMemberTypeSchemaOutput {
|
|
14036
|
+
schema: unknown;
|
|
14037
|
+
}
|
|
14038
|
+
|
|
13922
14039
|
export interface GetMemberGroupInput {
|
|
13923
14040
|
id: string;
|
|
13924
14041
|
}
|
|
@@ -14653,7 +14770,13 @@ export interface GetPropertyTypeIsUsedOutput {
|
|
|
14653
14770
|
isUsed: boolean;
|
|
14654
14771
|
}
|
|
14655
14772
|
|
|
14656
|
-
export interface GetAllRedirectsInput {
|
|
14773
|
+
export interface GetAllRedirectsInput {
|
|
14774
|
+
filter?: string;
|
|
14775
|
+
/**
|
|
14776
|
+
* Pagination cursor from a previous response's nextCursor field. Omit for the first page.
|
|
14777
|
+
*/
|
|
14778
|
+
cursor?: string;
|
|
14779
|
+
}
|
|
14657
14780
|
|
|
14658
14781
|
export interface GetAllRedirectsOutput {
|
|
14659
14782
|
total: number;
|
|
@@ -14667,6 +14790,10 @@ export interface GetAllRedirectsOutput {
|
|
|
14667
14790
|
};
|
|
14668
14791
|
culture?: string | null;
|
|
14669
14792
|
}[];
|
|
14793
|
+
/**
|
|
14794
|
+
* Cursor for the next page. Pass as the cursor parameter to fetch more results. Absent when on the last page.
|
|
14795
|
+
*/
|
|
14796
|
+
nextCursor?: string | null;
|
|
14670
14797
|
}
|
|
14671
14798
|
|
|
14672
14799
|
export interface GetRedirectByIdInput {
|
|
@@ -15714,12 +15841,10 @@ export interface GetUserCurrentPermissionsDocumentInput {
|
|
|
15714
15841
|
}
|
|
15715
15842
|
|
|
15716
15843
|
export interface GetUserCurrentPermissionsDocumentOutput {
|
|
15717
|
-
|
|
15718
|
-
|
|
15719
|
-
|
|
15720
|
-
|
|
15721
|
-
}[];
|
|
15722
|
-
};
|
|
15844
|
+
permissions: {
|
|
15845
|
+
nodeKey: string;
|
|
15846
|
+
permissions: string[];
|
|
15847
|
+
}[];
|
|
15723
15848
|
}
|
|
15724
15849
|
|
|
15725
15850
|
export interface GetUserCurrentPermissionsMediaInput {
|
|
@@ -15938,6 +16063,42 @@ export interface DeleteUserAvatarByIdInput {
|
|
|
15938
16063
|
id: string;
|
|
15939
16064
|
}
|
|
15940
16065
|
|
|
16066
|
+
export interface GetUserBatchInput {
|
|
16067
|
+
id?: string[];
|
|
16068
|
+
}
|
|
16069
|
+
|
|
16070
|
+
export interface GetUserBatchOutput {
|
|
16071
|
+
total: number;
|
|
16072
|
+
items: {
|
|
16073
|
+
email: string;
|
|
16074
|
+
userName: string;
|
|
16075
|
+
name: string;
|
|
16076
|
+
userGroupIds: {
|
|
16077
|
+
id: string;
|
|
16078
|
+
}[];
|
|
16079
|
+
id: string;
|
|
16080
|
+
languageIsoCode?: string | null;
|
|
16081
|
+
documentStartNodeIds: {
|
|
16082
|
+
id: string;
|
|
16083
|
+
}[];
|
|
16084
|
+
hasDocumentRootAccess: boolean;
|
|
16085
|
+
mediaStartNodeIds: {
|
|
16086
|
+
id: string;
|
|
16087
|
+
}[];
|
|
16088
|
+
hasMediaRootAccess: boolean;
|
|
16089
|
+
avatarUrls: string[];
|
|
16090
|
+
state: "Active" | "Disabled" | "LockedOut" | "Invited" | "Inactive" | "All";
|
|
16091
|
+
failedLoginAttempts: number;
|
|
16092
|
+
createDate: string;
|
|
16093
|
+
updateDate: string;
|
|
16094
|
+
lastLoginDate?: string | null;
|
|
16095
|
+
lastLockoutDate?: string | null;
|
|
16096
|
+
lastPasswordChangeDate?: string | null;
|
|
16097
|
+
isAdmin: boolean;
|
|
16098
|
+
kind: "Default" | "Api";
|
|
16099
|
+
}[];
|
|
16100
|
+
}
|
|
16101
|
+
|
|
15941
16102
|
export interface CreateUserDataInput {
|
|
15942
16103
|
group: string;
|
|
15943
16104
|
identifier: string;
|
|
@@ -16436,6 +16597,10 @@ export interface GetAllWebhookLogsOutput {
|
|
|
16436
16597
|
|
|
16437
16598
|
export interface GetWebhookLogsInput {
|
|
16438
16599
|
id: string;
|
|
16600
|
+
/**
|
|
16601
|
+
* Pagination cursor from a previous response's nextCursor field. Omit for the first page.
|
|
16602
|
+
*/
|
|
16603
|
+
cursor?: string;
|
|
16439
16604
|
}
|
|
16440
16605
|
|
|
16441
16606
|
export interface GetWebhookLogsOutput {
|
|
@@ -16455,6 +16620,10 @@ export interface GetWebhookLogsOutput {
|
|
|
16455
16620
|
responseBody: string;
|
|
16456
16621
|
exceptionOccured: boolean;
|
|
16457
16622
|
}[];
|
|
16623
|
+
/**
|
|
16624
|
+
* Cursor for the next page. Pass as the cursor parameter to fetch more results. Absent when on the last page.
|
|
16625
|
+
*/
|
|
16626
|
+
nextCursor?: string | null;
|
|
16458
16627
|
}
|
|
16459
16628
|
|
|
16460
16629
|
export interface CmsTools {
|
|
@@ -16484,6 +16653,7 @@ export interface CmsTools {
|
|
|
16484
16653
|
"delete-data-type-folder": { input: DeleteDataTypeFolderInput; output: unknown };
|
|
16485
16654
|
"get-data-type-folder": { input: GetDataTypeFolderInput; output: GetDataTypeFolderOutput };
|
|
16486
16655
|
"update-data-type-folder": { input: UpdateDataTypeFolderInput; output: unknown };
|
|
16656
|
+
"get-data-type-schemas": { input: GetDataTypeSchemasInput; output: GetDataTypeSchemasOutput };
|
|
16487
16657
|
"find-dictionary": { input: FindDictionaryInput; output: FindDictionaryOutput };
|
|
16488
16658
|
"create-dictionary": { input: CreateDictionaryInput; output: CreateDictionaryOutput };
|
|
16489
16659
|
"get-dictionary": { input: GetDictionaryInput; output: GetDictionaryOutput };
|
|
@@ -16561,6 +16731,10 @@ export interface CmsTools {
|
|
|
16561
16731
|
"get-document-ancestors-batch": { input: GetDocumentAncestorsBatchInput; output: GetDocumentAncestorsBatchOutput };
|
|
16562
16732
|
"get-document-siblings": { input: GetDocumentSiblingsInput; output: GetDocumentSiblingsOutput };
|
|
16563
16733
|
"get-document-recycle-bin-siblings": { input: GetDocumentRecycleBinSiblingsInput; output: GetDocumentRecycleBinSiblingsOutput };
|
|
16734
|
+
"create-and-publish-document": { input: CreateAndPublishDocumentInput; output: CreateAndPublishDocumentOutput };
|
|
16735
|
+
"sort-document-children": { input: SortDocumentChildrenInput; output: unknown };
|
|
16736
|
+
"sort-document-root-children": { input: SortDocumentRootChildrenInput; output: unknown };
|
|
16737
|
+
"update-and-publish-document": { input: UpdateAndPublishDocumentInput; output: unknown };
|
|
16564
16738
|
"get-document-type-by-id": { input: GetDocumentTypeByIdInput; output: GetDocumentTypeByIdOutput };
|
|
16565
16739
|
"get-document-type-configuration": { input: GetDocumentTypeConfigurationInput; output: GetDocumentTypeConfigurationOutput };
|
|
16566
16740
|
"get-document-type-blueprint": { input: GetDocumentTypeBlueprintInput; output: GetDocumentTypeBlueprintOutput };
|
|
@@ -16652,6 +16826,9 @@ export interface CmsTools {
|
|
|
16652
16826
|
"get-collection-media": { input: GetCollectionMediaInput; output: GetCollectionMediaOutput };
|
|
16653
16827
|
"get-recycle-bin-media-referenced-by": { input: GetRecycleBinMediaReferencedByInput; output: GetRecycleBinMediaReferencedByOutput };
|
|
16654
16828
|
"get-recycle-bin-media-original-parent": { input: GetRecycleBinMediaOriginalParentInput; output: GetRecycleBinMediaOriginalParentOutput };
|
|
16829
|
+
"sort-media-children": { input: SortMediaChildrenInput; output: unknown };
|
|
16830
|
+
"sort-media-root-children": { input: SortMediaRootChildrenInput; output: unknown };
|
|
16831
|
+
"get-media-type-schema": { input: GetMediaTypeSchemaInput; output: GetMediaTypeSchemaOutput };
|
|
16655
16832
|
"get-media-type-folder": { input: GetMediaTypeFolderInput; output: GetMediaTypeFolderOutput };
|
|
16656
16833
|
"create-media-type-folder": { input: CreateMediaTypeFolderInput; output: CreateMediaTypeFolderOutput };
|
|
16657
16834
|
"delete-media-type-folder": { input: DeleteMediaTypeFolderInput; output: unknown };
|
|
@@ -16690,6 +16867,7 @@ export interface CmsTools {
|
|
|
16690
16867
|
"find-member": { input: FindMemberInput; output: FindMemberOutput };
|
|
16691
16868
|
"get-item-member-search": { input: GetItemMemberSearchInput; output: GetItemMemberSearchOutput };
|
|
16692
16869
|
"get-member-ancestors-batch": { input: GetMemberAncestorsBatchInput; output: GetMemberAncestorsBatchOutput };
|
|
16870
|
+
"get-member-type-schema": { input: GetMemberTypeSchemaInput; output: GetMemberTypeSchemaOutput };
|
|
16693
16871
|
"get-member-group": { input: GetMemberGroupInput; output: GetMemberGroupOutput };
|
|
16694
16872
|
"get-member-group-by-id-array": { input: GetMemberGroupByIdArrayInput; output: GetMemberGroupByIdArrayOutput };
|
|
16695
16873
|
"get-all-member-groups": { input: GetAllMemberGroupsInput; output: GetAllMemberGroupsOutput };
|
|
@@ -16811,6 +16989,7 @@ export interface CmsTools {
|
|
|
16811
16989
|
"get-user-by-id-calculate-start-nodes": { input: GetUserByIdCalculateStartNodesInput; output: GetUserByIdCalculateStartNodesOutput };
|
|
16812
16990
|
"upload-user-avatar-by-id": { input: UploadUserAvatarByIdInput; output: unknown };
|
|
16813
16991
|
"delete-user-avatar-by-id": { input: DeleteUserAvatarByIdInput; output: unknown };
|
|
16992
|
+
"get-user-batch": { input: GetUserBatchInput; output: GetUserBatchOutput };
|
|
16814
16993
|
"create-user-data": { input: CreateUserDataInput; output: CreateUserDataOutput };
|
|
16815
16994
|
"update-user-data": { input: UpdateUserDataInput; output: unknown };
|
|
16816
16995
|
"get-user-data": { input: GetUserDataInput; output: GetUserDataOutput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-cms/mcp-dev",
|
|
3
|
-
"version": "17.6.
|
|
3
|
+
"version": "17.6.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A model context protocol (MCP) server for Umbraco CMS",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dev:hosted": "wrangler dev"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=22.
|
|
46
|
+
"node": ">=22.3.0"
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
49
49
|
"dist",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
72
72
|
"@types/uuid": "^10.0.0",
|
|
73
73
|
"@types/yargs": "^17.0.33",
|
|
74
|
-
"@umbraco-cms/mcp-hosted": "^1.0.0-beta.
|
|
75
|
-
"@umbraco-cms/mcp-server-sdk": "^1.0.0-beta.
|
|
74
|
+
"@umbraco-cms/mcp-hosted": "^1.0.0-beta.47",
|
|
75
|
+
"@umbraco-cms/mcp-server-sdk": "^1.0.0-beta.47",
|
|
76
76
|
"dotenv": "^16.5.0",
|
|
77
77
|
"form-data": "^4.0.4",
|
|
78
78
|
"mime-types": "^3.0.1",
|