@umbraco-cms/mcp-dev 18.1.7 → 18.1.9

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.
@@ -1723,6 +1723,155 @@ export interface UpdateBlockPropertyOutput {
1723
1723
  }[];
1724
1724
  }
1725
1725
 
1726
+ export interface CreateDocumentBlockInput {
1727
+ /**
1728
+ * The document to add the block to
1729
+ */
1730
+ documentId: string;
1731
+ /**
1732
+ * Document property alias of the BlockList, BlockGrid, or RichText property
1733
+ */
1734
+ propertyAlias: string;
1735
+ /**
1736
+ * Culture, only for culture-variant document properties
1737
+ */
1738
+ culture?: string | null;
1739
+ /**
1740
+ * Segment, only for segment-variant document properties
1741
+ */
1742
+ segment?: string | null;
1743
+ /**
1744
+ * Element type key of the new block; must be allowed by the property's data type
1745
+ */
1746
+ contentTypeKey: string;
1747
+ /**
1748
+ * Content property values for the new block
1749
+ */
1750
+ properties?: {
1751
+ /**
1752
+ * The property alias on the block's element type
1753
+ */
1754
+ alias: string;
1755
+ value?: unknown;
1756
+ /**
1757
+ * Culture code, only for culture-variant element type properties
1758
+ */
1759
+ culture?: string | null;
1760
+ /**
1761
+ * Segment, only for segment-variant element type properties
1762
+ */
1763
+ segment?: string | null;
1764
+ }[];
1765
+ /**
1766
+ * Settings for the new block; the settings element type comes from the data type configuration
1767
+ */
1768
+ settings?: {
1769
+ /**
1770
+ * Settings property values
1771
+ */
1772
+ properties: {
1773
+ /**
1774
+ * The property alias on the block's element type
1775
+ */
1776
+ alias: string;
1777
+ value?: unknown;
1778
+ /**
1779
+ * Culture code, only for culture-variant element type properties
1780
+ */
1781
+ culture?: string | null;
1782
+ /**
1783
+ * Segment, only for segment-variant element type properties
1784
+ */
1785
+ segment?: string | null;
1786
+ }[];
1787
+ };
1788
+ /**
1789
+ * Where to place the block relative to siblings (default: append)
1790
+ */
1791
+ placement?: {
1792
+ /**
1793
+ * 'before'/'after' an existing sibling block (requires contentKey), or 'append'/'prepend' to the target container
1794
+ */
1795
+ position: "before" | "after" | "append" | "prepend";
1796
+ /**
1797
+ * contentKey of the existing sibling block, required for 'before'/'after'
1798
+ */
1799
+ contentKey?: string | null;
1800
+ };
1801
+ /**
1802
+ * BlockGrid-only layout options. Rejected for BlockList/RichText properties
1803
+ */
1804
+ grid?: {
1805
+ /**
1806
+ * BlockGrid column span (default 12)
1807
+ */
1808
+ columnSpan?: number;
1809
+ /**
1810
+ * BlockGrid row span (default 1)
1811
+ */
1812
+ rowSpan?: number;
1813
+ /**
1814
+ * Key of the named area to insert into (requires parentContentKey)
1815
+ */
1816
+ areaKey?: string;
1817
+ /**
1818
+ * contentKey of the block that owns the area (requires areaKey)
1819
+ */
1820
+ parentContentKey?: string;
1821
+ };
1822
+ }
1823
+
1824
+ export interface CreateDocumentBlockOutput {
1825
+ success: boolean;
1826
+ message: string;
1827
+ results: {
1828
+ success: boolean;
1829
+ contentKey: string;
1830
+ message: string;
1831
+ updatedCount?: number;
1832
+ addedCount?: number;
1833
+ warnings?: string[];
1834
+ errors?: string[];
1835
+ }[];
1836
+ }
1837
+
1838
+ export interface DeleteDocumentBlockInput {
1839
+ /**
1840
+ * The document containing the block
1841
+ */
1842
+ documentId: string;
1843
+ /**
1844
+ * Document property alias of the BlockList, BlockGrid, or RichText property
1845
+ */
1846
+ propertyAlias: string;
1847
+ /**
1848
+ * Culture, only for culture-variant document properties
1849
+ */
1850
+ culture?: string | null;
1851
+ /**
1852
+ * Segment, only for segment-variant document properties
1853
+ */
1854
+ segment?: string | null;
1855
+ /**
1856
+ * contentKey of the block to delete
1857
+ */
1858
+ contentKey: string;
1859
+ }
1860
+
1861
+ export interface DeleteDocumentBlockOutput {
1862
+ success: boolean;
1863
+ message: string;
1864
+ results: {
1865
+ success: boolean;
1866
+ contentKey: string;
1867
+ message: string;
1868
+ updatedCount?: number;
1869
+ addedCount?: number;
1870
+ warnings?: string[];
1871
+ errors?: string[];
1872
+ }[];
1873
+ }
1874
+
1726
1875
  export interface PutDocumentDomainsInput {
1727
1876
  id: string;
1728
1877
  data: {
@@ -17268,12 +17417,10 @@ export interface GetUserCurrentPermissionsDocumentInput {
17268
17417
  }
17269
17418
 
17270
17419
  export interface GetUserCurrentPermissionsDocumentOutput {
17271
- items: {
17272
- permissions: {
17273
- nodeKey: string;
17274
- permissions: string[];
17275
- }[];
17276
- };
17420
+ permissions: {
17421
+ nodeKey: string;
17422
+ permissions: string[];
17423
+ }[];
17277
17424
  }
17278
17425
 
17279
17426
  export interface GetUserCurrentPermissionsMediaInput {
@@ -18199,6 +18346,8 @@ export interface CmsTools {
18199
18346
  "update-document-properties": { input: UpdateDocumentPropertiesInput; output: UpdateDocumentPropertiesOutput };
18200
18347
  "update-document-name": { input: UpdateDocumentNameInput; output: UpdateDocumentNameOutput };
18201
18348
  "update-block-property": { input: UpdateBlockPropertyInput; output: UpdateBlockPropertyOutput };
18349
+ "create-document-block": { input: CreateDocumentBlockInput; output: CreateDocumentBlockOutput };
18350
+ "delete-document-block": { input: DeleteDocumentBlockInput; output: DeleteDocumentBlockOutput };
18202
18351
  "put-document-domains": { input: PutDocumentDomainsInput; output: unknown };
18203
18352
  "put-document-notifications": { input: PutDocumentNotificationsInput; output: unknown };
18204
18353
  "put-document-public-access": { input: PutDocumentPublicAccessInput; output: unknown };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-cms/mcp-dev",
3
- "version": "18.1.7",
3
+ "version": "18.1.9",
4
4
  "type": "module",
5
5
  "description": "A model context protocol (MCP) server for Umbraco CMS",
6
6
  "main": "dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "dev:hosted": "wrangler dev"
45
45
  },
46
46
  "engines": {
47
- "node": ">=22.0.0"
47
+ "node": ">=22.3.0"
48
48
  },
49
49
  "files": [
50
50
  "dist",
@@ -72,8 +72,8 @@
72
72
  "@modelcontextprotocol/sdk": "^1.28.0",
73
73
  "@types/uuid": "^10.0.0",
74
74
  "@types/yargs": "^17.0.33",
75
- "@umbraco-cms/mcp-hosted": "^1.0.0-beta.41",
76
- "@umbraco-cms/mcp-server-sdk": "^1.0.0-beta.41",
75
+ "@umbraco-cms/mcp-hosted": "^1.0.0-beta.46",
76
+ "@umbraco-cms/mcp-server-sdk": "^1.0.0-beta.46",
77
77
  "dotenv": "^16.5.0",
78
78
  "form-data": "^4.0.4",
79
79
  "mime-types": "^3.0.1",