@umbraco-cms/mcp-dev 17.8.0 → 17.8.1

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.
@@ -1770,6 +1770,10 @@ export interface CreateDocumentBlockInput {
1770
1770
  */
1771
1771
  parentContentKey?: string;
1772
1772
  };
1773
+ /**
1774
+ * Optional guard: the editor the property must use. If the property uses a different editor, nothing is written and the call is rejected
1775
+ */
1776
+ expectedKind?: "BlockList" | "BlockGrid" | "RichText";
1773
1777
  }
1774
1778
 
1775
1779
  export interface CreateDocumentBlockOutput {
@@ -1784,6 +1788,7 @@ export interface CreateDocumentBlockOutput {
1784
1788
  warnings?: string[];
1785
1789
  errors?: string[];
1786
1790
  }[];
1791
+ kind: "BlockList" | "BlockGrid" | "RichText";
1787
1792
  }
1788
1793
 
1789
1794
  export interface DeleteDocumentBlockInput {
@@ -1823,6 +1828,71 @@ export interface DeleteDocumentBlockOutput {
1823
1828
  }[];
1824
1829
  }
1825
1830
 
1831
+ export interface MoveDocumentBlockInput {
1832
+ /**
1833
+ * The document containing the block
1834
+ */
1835
+ documentId: string;
1836
+ /**
1837
+ * Document property alias of the BlockList, BlockGrid, or RichText property
1838
+ */
1839
+ propertyAlias: string;
1840
+ /**
1841
+ * Culture, only for culture-variant document properties
1842
+ */
1843
+ culture?: string | null;
1844
+ /**
1845
+ * Segment, only for segment-variant document properties
1846
+ */
1847
+ segment?: string | null;
1848
+ /**
1849
+ * contentKey of the block to move
1850
+ */
1851
+ contentKey: string;
1852
+ /**
1853
+ * Where to move the block
1854
+ */
1855
+ target:
1856
+ | {
1857
+ /**
1858
+ * Move to the start or end of the block's container
1859
+ */
1860
+ position: "first" | "last";
1861
+ }
1862
+ | {
1863
+ /**
1864
+ * Move directly before or after another block
1865
+ */
1866
+ position: "before" | "after";
1867
+ /**
1868
+ * contentKey of the block to move next to; must be in the same container
1869
+ */
1870
+ relativeToContentKey: string;
1871
+ };
1872
+ }
1873
+
1874
+ export interface MoveDocumentBlockOutput {
1875
+ success: boolean;
1876
+ message: string;
1877
+ contentKey: string;
1878
+ /**
1879
+ * False when the block was already at the requested position and nothing was saved
1880
+ */
1881
+ moved: boolean;
1882
+ /**
1883
+ * contentKeys of the block's container, in their new order
1884
+ */
1885
+ blockOrder: string[];
1886
+ /**
1887
+ * BlockGrid only: the block owning the area the block was moved within; null for the property root
1888
+ */
1889
+ parentContentKey: string | null;
1890
+ /**
1891
+ * BlockGrid only: the area the block was moved within; null for the property root
1892
+ */
1893
+ areaKey: string | null;
1894
+ }
1895
+
1826
1896
  export interface PutDocumentDomainsInput {
1827
1897
  id: string;
1828
1898
  data: {
@@ -2017,6 +2087,27 @@ export interface ValidateDocumentInput {
2017
2087
  } | null;
2018
2088
  }
2019
2089
 
2090
+ export interface ValidateDocumentUpdateInput {
2091
+ id: string;
2092
+ data: {
2093
+ values: {
2094
+ culture?: string | null;
2095
+ segment?: string | null;
2096
+ alias: string;
2097
+ value?: unknown;
2098
+ }[];
2099
+ variants: {
2100
+ culture?: string | null;
2101
+ segment?: string | null;
2102
+ name: string;
2103
+ }[];
2104
+ template?: {
2105
+ id: string;
2106
+ } | null;
2107
+ cultures?: string[] | null;
2108
+ };
2109
+ }
2110
+
2020
2111
  export interface GetCollectionDocumentByIdInput {
2021
2112
  id: string;
2022
2113
  dataTypeId?: string;
@@ -16770,6 +16861,7 @@ export interface CmsTools {
16770
16861
  "update-block-property": { input: UpdateBlockPropertyInput; output: UpdateBlockPropertyOutput };
16771
16862
  "create-document-block": { input: CreateDocumentBlockInput; output: CreateDocumentBlockOutput };
16772
16863
  "delete-document-block": { input: DeleteDocumentBlockInput; output: DeleteDocumentBlockOutput };
16864
+ "move-document-block": { input: MoveDocumentBlockInput; output: MoveDocumentBlockOutput };
16773
16865
  "put-document-domains": { input: PutDocumentDomainsInput; output: unknown };
16774
16866
  "put-document-notifications": { input: PutDocumentNotificationsInput; output: unknown };
16775
16867
  "put-document-public-access": { input: PutDocumentPublicAccessInput; output: unknown };
@@ -16780,6 +16872,7 @@ export interface CmsTools {
16780
16872
  "get-recycle-bin-document-children": { input: GetRecycleBinDocumentChildrenInput; output: GetRecycleBinDocumentChildrenOutput };
16781
16873
  "search-document": { input: SearchDocumentInput; output: SearchDocumentOutput };
16782
16874
  "validate-document": { input: ValidateDocumentInput; output: unknown };
16875
+ "validate-document-update": { input: ValidateDocumentUpdateInput; output: unknown };
16783
16876
  "get-collection-document-by-id": { input: GetCollectionDocumentByIdInput; output: GetCollectionDocumentByIdOutput };
16784
16877
  "get-item-document": { input: GetItemDocumentInput; output: GetItemDocumentOutput };
16785
16878
  "get-document-are-referenced": { input: GetDocumentAreReferencedInput; output: GetDocumentAreReferencedOutput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-cms/mcp-dev",
3
- "version": "17.8.0",
3
+ "version": "17.8.1",
4
4
  "type": "module",
5
5
  "description": "A model context protocol (MCP) server for Umbraco CMS",
6
6
  "main": "dist/index.js",
@@ -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.1.0",
75
- "@umbraco-cms/mcp-server-sdk": "^1.1.0",
74
+ "@umbraco-cms/mcp-hosted": "^1.2.0",
75
+ "@umbraco-cms/mcp-server-sdk": "^1.2.0",
76
76
  "dotenv": "^16.5.0",
77
77
  "form-data": "^4.0.4",
78
78
  "mime-types": "^3.0.1",