@umbraco-cms/mcp-dev 17.6.9 → 17.6.11

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.
@@ -511,6 +511,20 @@ export interface UpdateDataTypeFolderInput {
511
511
  };
512
512
  }
513
513
 
514
+ export interface GetDataTypeSchemasInput {
515
+ id?: string[];
516
+ }
517
+
518
+ export interface GetDataTypeSchemasOutput {
519
+ total: number;
520
+ items: {
521
+ id: string;
522
+ valueTypeName?: string | null;
523
+ jsonSchema?: unknown;
524
+ error?: string | null;
525
+ }[];
526
+ }
527
+
514
528
  export interface FindDictionaryInput {
515
529
  filter?: string;
516
530
  /**
@@ -1605,6 +1619,155 @@ export interface UpdateBlockPropertyOutput {
1605
1619
  }[];
1606
1620
  }
1607
1621
 
1622
+ export interface CreateDocumentBlockInput {
1623
+ /**
1624
+ * The document to add the block to
1625
+ */
1626
+ documentId: string;
1627
+ /**
1628
+ * Document property alias of the BlockList, BlockGrid, or RichText property
1629
+ */
1630
+ propertyAlias: string;
1631
+ /**
1632
+ * Culture, only for culture-variant document properties
1633
+ */
1634
+ culture?: string | null;
1635
+ /**
1636
+ * Segment, only for segment-variant document properties
1637
+ */
1638
+ segment?: string | null;
1639
+ /**
1640
+ * Element type key of the new block; must be allowed by the property's data type
1641
+ */
1642
+ contentTypeKey: string;
1643
+ /**
1644
+ * Content property values for the new block
1645
+ */
1646
+ properties?: {
1647
+ /**
1648
+ * The property alias on the block's element type
1649
+ */
1650
+ alias: string;
1651
+ value?: unknown;
1652
+ /**
1653
+ * Culture code, only for culture-variant element type properties
1654
+ */
1655
+ culture?: string | null;
1656
+ /**
1657
+ * Segment, only for segment-variant element type properties
1658
+ */
1659
+ segment?: string | null;
1660
+ }[];
1661
+ /**
1662
+ * Settings for the new block; the settings element type comes from the data type configuration
1663
+ */
1664
+ settings?: {
1665
+ /**
1666
+ * Settings property values
1667
+ */
1668
+ properties: {
1669
+ /**
1670
+ * The property alias on the block's element type
1671
+ */
1672
+ alias: string;
1673
+ value?: unknown;
1674
+ /**
1675
+ * Culture code, only for culture-variant element type properties
1676
+ */
1677
+ culture?: string | null;
1678
+ /**
1679
+ * Segment, only for segment-variant element type properties
1680
+ */
1681
+ segment?: string | null;
1682
+ }[];
1683
+ };
1684
+ /**
1685
+ * Where to place the block relative to siblings (default: append)
1686
+ */
1687
+ placement?: {
1688
+ /**
1689
+ * 'before'/'after' an existing sibling block (requires contentKey), or 'append'/'prepend' to the target container
1690
+ */
1691
+ position: "before" | "after" | "append" | "prepend";
1692
+ /**
1693
+ * contentKey of the existing sibling block, required for 'before'/'after'
1694
+ */
1695
+ contentKey?: string | null;
1696
+ };
1697
+ /**
1698
+ * BlockGrid-only layout options. Rejected for BlockList/RichText properties
1699
+ */
1700
+ grid?: {
1701
+ /**
1702
+ * BlockGrid column span (default 12)
1703
+ */
1704
+ columnSpan?: number;
1705
+ /**
1706
+ * BlockGrid row span (default 1)
1707
+ */
1708
+ rowSpan?: number;
1709
+ /**
1710
+ * Key of the named area to insert into (requires parentContentKey)
1711
+ */
1712
+ areaKey?: string;
1713
+ /**
1714
+ * contentKey of the block that owns the area (requires areaKey)
1715
+ */
1716
+ parentContentKey?: string;
1717
+ };
1718
+ }
1719
+
1720
+ export interface CreateDocumentBlockOutput {
1721
+ success: boolean;
1722
+ message: string;
1723
+ results: {
1724
+ success: boolean;
1725
+ contentKey: string;
1726
+ message: string;
1727
+ updatedCount?: number;
1728
+ addedCount?: number;
1729
+ warnings?: string[];
1730
+ errors?: string[];
1731
+ }[];
1732
+ }
1733
+
1734
+ export interface DeleteDocumentBlockInput {
1735
+ /**
1736
+ * The document containing the block
1737
+ */
1738
+ documentId: string;
1739
+ /**
1740
+ * Document property alias of the BlockList, BlockGrid, or RichText property
1741
+ */
1742
+ propertyAlias: string;
1743
+ /**
1744
+ * Culture, only for culture-variant document properties
1745
+ */
1746
+ culture?: string | null;
1747
+ /**
1748
+ * Segment, only for segment-variant document properties
1749
+ */
1750
+ segment?: string | null;
1751
+ /**
1752
+ * contentKey of the block to delete
1753
+ */
1754
+ contentKey: string;
1755
+ }
1756
+
1757
+ export interface DeleteDocumentBlockOutput {
1758
+ success: boolean;
1759
+ message: string;
1760
+ results: {
1761
+ success: boolean;
1762
+ contentKey: string;
1763
+ message: string;
1764
+ updatedCount?: number;
1765
+ addedCount?: number;
1766
+ warnings?: string[];
1767
+ errors?: string[];
1768
+ }[];
1769
+ }
1770
+
1608
1771
  export interface PutDocumentDomainsInput {
1609
1772
  id: string;
1610
1773
  data: {
@@ -2431,6 +2594,72 @@ export interface GetDocumentRecycleBinSiblingsOutput {
2431
2594
  }[];
2432
2595
  }
2433
2596
 
2597
+ export interface CreateAndPublishDocumentInput {
2598
+ documentTypeId: string;
2599
+ parentId?: string;
2600
+ name: string;
2601
+ /**
2602
+ * 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.
2603
+ */
2604
+ templateId?: string;
2605
+ /**
2606
+ * Array of culture codes. If not provided or empty array, will create single variant with null culture.
2607
+ */
2608
+ cultures?: string[];
2609
+ /**
2610
+ * 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.
2611
+ */
2612
+ culturesToPublish?: string[];
2613
+ values: {
2614
+ editorAlias: string;
2615
+ culture: string | null;
2616
+ segment: string | null;
2617
+ alias: string;
2618
+ value: unknown;
2619
+ }[];
2620
+ }
2621
+
2622
+ export interface CreateAndPublishDocumentOutput {
2623
+ message: string;
2624
+ id: string;
2625
+ }
2626
+
2627
+ export interface SortDocumentChildrenInput {
2628
+ id: string;
2629
+ data: {
2630
+ field: "Name" | "CreateDate" | "UpdateDate";
2631
+ direction: "Ascending" | "Descending";
2632
+ culture?: string | null;
2633
+ };
2634
+ }
2635
+
2636
+ export interface SortDocumentRootChildrenInput {
2637
+ field: "Name" | "CreateDate" | "UpdateDate";
2638
+ direction: "Ascending" | "Descending";
2639
+ culture?: string | null;
2640
+ }
2641
+
2642
+ export interface UpdateAndPublishDocumentInput {
2643
+ id: string;
2644
+ data: {
2645
+ values: {
2646
+ culture?: string | null;
2647
+ segment?: string | null;
2648
+ alias: string;
2649
+ value?: unknown;
2650
+ }[];
2651
+ variants: {
2652
+ culture?: string | null;
2653
+ segment?: string | null;
2654
+ name: string;
2655
+ }[];
2656
+ template?: {
2657
+ id: string;
2658
+ } | null;
2659
+ culturesToPublish: string[];
2660
+ };
2661
+ }
2662
+
2434
2663
  export interface GetDocumentTypeByIdInput {
2435
2664
  id: string;
2436
2665
  }
@@ -12688,6 +12917,27 @@ export interface GetRecycleBinMediaOriginalParentOutput {
12688
12917
  id: string;
12689
12918
  }
12690
12919
 
12920
+ export interface SortMediaChildrenInput {
12921
+ id: string;
12922
+ data: {
12923
+ field: "Name" | "CreateDate" | "UpdateDate";
12924
+ direction: "Ascending" | "Descending";
12925
+ };
12926
+ }
12927
+
12928
+ export interface SortMediaRootChildrenInput {
12929
+ field: "Name" | "CreateDate" | "UpdateDate";
12930
+ direction: "Ascending" | "Descending";
12931
+ }
12932
+
12933
+ export interface GetMediaTypeSchemaInput {
12934
+ id: string;
12935
+ }
12936
+
12937
+ export interface GetMediaTypeSchemaOutput {
12938
+ schema: unknown;
12939
+ }
12940
+
12691
12941
  export interface GetMediaTypeFolderInput {
12692
12942
  id: string;
12693
12943
  }
@@ -13770,6 +14020,14 @@ export interface GetMemberAncestorsBatchOutput {
13770
14020
  }[];
13771
14021
  }
13772
14022
 
14023
+ export interface GetMemberTypeSchemaInput {
14024
+ id: string;
14025
+ }
14026
+
14027
+ export interface GetMemberTypeSchemaOutput {
14028
+ schema: unknown;
14029
+ }
14030
+
13773
14031
  export interface GetMemberGroupInput {
13774
14032
  id: string;
13775
14033
  }
@@ -15565,12 +15823,10 @@ export interface GetUserCurrentPermissionsDocumentInput {
15565
15823
  }
15566
15824
 
15567
15825
  export interface GetUserCurrentPermissionsDocumentOutput {
15568
- items: {
15569
- permissions: {
15570
- nodeKey: string;
15571
- permissions: string[];
15572
- }[];
15573
- };
15826
+ permissions: {
15827
+ nodeKey: string;
15828
+ permissions: string[];
15829
+ }[];
15574
15830
  }
15575
15831
 
15576
15832
  export interface GetUserCurrentPermissionsMediaInput {
@@ -15789,6 +16045,42 @@ export interface DeleteUserAvatarByIdInput {
15789
16045
  id: string;
15790
16046
  }
15791
16047
 
16048
+ export interface GetUserBatchInput {
16049
+ id?: string[];
16050
+ }
16051
+
16052
+ export interface GetUserBatchOutput {
16053
+ total: number;
16054
+ items: {
16055
+ email: string;
16056
+ userName: string;
16057
+ name: string;
16058
+ userGroupIds: {
16059
+ id: string;
16060
+ }[];
16061
+ id: string;
16062
+ languageIsoCode?: string | null;
16063
+ documentStartNodeIds: {
16064
+ id: string;
16065
+ }[];
16066
+ hasDocumentRootAccess: boolean;
16067
+ mediaStartNodeIds: {
16068
+ id: string;
16069
+ }[];
16070
+ hasMediaRootAccess: boolean;
16071
+ avatarUrls: string[];
16072
+ state: "Active" | "Disabled" | "LockedOut" | "Invited" | "Inactive" | "All";
16073
+ failedLoginAttempts: number;
16074
+ createDate: string;
16075
+ updateDate: string;
16076
+ lastLoginDate?: string | null;
16077
+ lastLockoutDate?: string | null;
16078
+ lastPasswordChangeDate?: string | null;
16079
+ isAdmin: boolean;
16080
+ kind: "Default" | "Api";
16081
+ }[];
16082
+ }
16083
+
15792
16084
  export interface CreateUserDataInput {
15793
16085
  group: string;
15794
16086
  identifier: string;
@@ -16335,6 +16627,7 @@ export interface CmsTools {
16335
16627
  "delete-data-type-folder": { input: DeleteDataTypeFolderInput; output: unknown };
16336
16628
  "get-data-type-folder": { input: GetDataTypeFolderInput; output: GetDataTypeFolderOutput };
16337
16629
  "update-data-type-folder": { input: UpdateDataTypeFolderInput; output: unknown };
16630
+ "get-data-type-schemas": { input: GetDataTypeSchemasInput; output: GetDataTypeSchemasOutput };
16338
16631
  "find-dictionary": { input: FindDictionaryInput; output: FindDictionaryOutput };
16339
16632
  "create-dictionary": { input: CreateDictionaryInput; output: CreateDictionaryOutput };
16340
16633
  "get-dictionary": { input: GetDictionaryInput; output: GetDictionaryOutput };
@@ -16386,6 +16679,8 @@ export interface CmsTools {
16386
16679
  "update-document-properties": { input: UpdateDocumentPropertiesInput; output: UpdateDocumentPropertiesOutput };
16387
16680
  "update-document-name": { input: UpdateDocumentNameInput; output: UpdateDocumentNameOutput };
16388
16681
  "update-block-property": { input: UpdateBlockPropertyInput; output: UpdateBlockPropertyOutput };
16682
+ "create-document-block": { input: CreateDocumentBlockInput; output: CreateDocumentBlockOutput };
16683
+ "delete-document-block": { input: DeleteDocumentBlockInput; output: DeleteDocumentBlockOutput };
16389
16684
  "put-document-domains": { input: PutDocumentDomainsInput; output: unknown };
16390
16685
  "put-document-notifications": { input: PutDocumentNotificationsInput; output: unknown };
16391
16686
  "put-document-public-access": { input: PutDocumentPublicAccessInput; output: unknown };
@@ -16410,6 +16705,10 @@ export interface CmsTools {
16410
16705
  "get-document-ancestors-batch": { input: GetDocumentAncestorsBatchInput; output: GetDocumentAncestorsBatchOutput };
16411
16706
  "get-document-siblings": { input: GetDocumentSiblingsInput; output: GetDocumentSiblingsOutput };
16412
16707
  "get-document-recycle-bin-siblings": { input: GetDocumentRecycleBinSiblingsInput; output: GetDocumentRecycleBinSiblingsOutput };
16708
+ "create-and-publish-document": { input: CreateAndPublishDocumentInput; output: CreateAndPublishDocumentOutput };
16709
+ "sort-document-children": { input: SortDocumentChildrenInput; output: unknown };
16710
+ "sort-document-root-children": { input: SortDocumentRootChildrenInput; output: unknown };
16711
+ "update-and-publish-document": { input: UpdateAndPublishDocumentInput; output: unknown };
16413
16712
  "get-document-type-by-id": { input: GetDocumentTypeByIdInput; output: GetDocumentTypeByIdOutput };
16414
16713
  "get-document-type-configuration": { input: GetDocumentTypeConfigurationInput; output: GetDocumentTypeConfigurationOutput };
16415
16714
  "get-document-type-blueprint": { input: GetDocumentTypeBlueprintInput; output: GetDocumentTypeBlueprintOutput };
@@ -16501,6 +16800,9 @@ export interface CmsTools {
16501
16800
  "get-collection-media": { input: GetCollectionMediaInput; output: GetCollectionMediaOutput };
16502
16801
  "get-recycle-bin-media-referenced-by": { input: GetRecycleBinMediaReferencedByInput; output: GetRecycleBinMediaReferencedByOutput };
16503
16802
  "get-recycle-bin-media-original-parent": { input: GetRecycleBinMediaOriginalParentInput; output: GetRecycleBinMediaOriginalParentOutput };
16803
+ "sort-media-children": { input: SortMediaChildrenInput; output: unknown };
16804
+ "sort-media-root-children": { input: SortMediaRootChildrenInput; output: unknown };
16805
+ "get-media-type-schema": { input: GetMediaTypeSchemaInput; output: GetMediaTypeSchemaOutput };
16504
16806
  "get-media-type-folder": { input: GetMediaTypeFolderInput; output: GetMediaTypeFolderOutput };
16505
16807
  "create-media-type-folder": { input: CreateMediaTypeFolderInput; output: CreateMediaTypeFolderOutput };
16506
16808
  "delete-media-type-folder": { input: DeleteMediaTypeFolderInput; output: unknown };
@@ -16539,6 +16841,7 @@ export interface CmsTools {
16539
16841
  "find-member": { input: FindMemberInput; output: FindMemberOutput };
16540
16842
  "get-item-member-search": { input: GetItemMemberSearchInput; output: GetItemMemberSearchOutput };
16541
16843
  "get-member-ancestors-batch": { input: GetMemberAncestorsBatchInput; output: GetMemberAncestorsBatchOutput };
16844
+ "get-member-type-schema": { input: GetMemberTypeSchemaInput; output: GetMemberTypeSchemaOutput };
16542
16845
  "get-member-group": { input: GetMemberGroupInput; output: GetMemberGroupOutput };
16543
16846
  "get-member-group-by-id-array": { input: GetMemberGroupByIdArrayInput; output: GetMemberGroupByIdArrayOutput };
16544
16847
  "get-all-member-groups": { input: GetAllMemberGroupsInput; output: GetAllMemberGroupsOutput };
@@ -16660,6 +16963,7 @@ export interface CmsTools {
16660
16963
  "get-user-by-id-calculate-start-nodes": { input: GetUserByIdCalculateStartNodesInput; output: GetUserByIdCalculateStartNodesOutput };
16661
16964
  "upload-user-avatar-by-id": { input: UploadUserAvatarByIdInput; output: unknown };
16662
16965
  "delete-user-avatar-by-id": { input: DeleteUserAvatarByIdInput; output: unknown };
16966
+ "get-user-batch": { input: GetUserBatchInput; output: GetUserBatchOutput };
16663
16967
  "create-user-data": { input: CreateUserDataInput; output: CreateUserDataOutput };
16664
16968
  "update-user-data": { input: UpdateUserDataInput; output: unknown };
16665
16969
  "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.9",
3
+ "version": "17.6.11",
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.0.0"
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.45",
75
- "@umbraco-cms/mcp-server-sdk": "^1.0.0-beta.45",
74
+ "@umbraco-cms/mcp-hosted": "^1.0.0-beta.46",
75
+ "@umbraco-cms/mcp-server-sdk": "^1.0.0-beta.46",
76
76
  "dotenv": "^16.5.0",
77
77
  "form-data": "^4.0.4",
78
78
  "mime-types": "^3.0.1",