@umbraco-cms/mcp-dev 17.6.8 → 17.6.10

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.
@@ -1605,6 +1605,155 @@ export interface UpdateBlockPropertyOutput {
1605
1605
  }[];
1606
1606
  }
1607
1607
 
1608
+ export interface CreateDocumentBlockInput {
1609
+ /**
1610
+ * The document to add the block to
1611
+ */
1612
+ documentId: string;
1613
+ /**
1614
+ * Document property alias of the BlockList, BlockGrid, or RichText property
1615
+ */
1616
+ propertyAlias: string;
1617
+ /**
1618
+ * Culture, only for culture-variant document properties
1619
+ */
1620
+ culture?: string | null;
1621
+ /**
1622
+ * Segment, only for segment-variant document properties
1623
+ */
1624
+ segment?: string | null;
1625
+ /**
1626
+ * Element type key of the new block; must be allowed by the property's data type
1627
+ */
1628
+ contentTypeKey: string;
1629
+ /**
1630
+ * Content property values for the new block
1631
+ */
1632
+ properties?: {
1633
+ /**
1634
+ * The property alias on the block's element type
1635
+ */
1636
+ alias: string;
1637
+ value?: unknown;
1638
+ /**
1639
+ * Culture code, only for culture-variant element type properties
1640
+ */
1641
+ culture?: string | null;
1642
+ /**
1643
+ * Segment, only for segment-variant element type properties
1644
+ */
1645
+ segment?: string | null;
1646
+ }[];
1647
+ /**
1648
+ * Settings for the new block; the settings element type comes from the data type configuration
1649
+ */
1650
+ settings?: {
1651
+ /**
1652
+ * Settings property values
1653
+ */
1654
+ properties: {
1655
+ /**
1656
+ * The property alias on the block's element type
1657
+ */
1658
+ alias: string;
1659
+ value?: unknown;
1660
+ /**
1661
+ * Culture code, only for culture-variant element type properties
1662
+ */
1663
+ culture?: string | null;
1664
+ /**
1665
+ * Segment, only for segment-variant element type properties
1666
+ */
1667
+ segment?: string | null;
1668
+ }[];
1669
+ };
1670
+ /**
1671
+ * Where to place the block relative to siblings (default: append)
1672
+ */
1673
+ placement?: {
1674
+ /**
1675
+ * 'before'/'after' an existing sibling block (requires contentKey), or 'append'/'prepend' to the target container
1676
+ */
1677
+ position: "before" | "after" | "append" | "prepend";
1678
+ /**
1679
+ * contentKey of the existing sibling block, required for 'before'/'after'
1680
+ */
1681
+ contentKey?: string | null;
1682
+ };
1683
+ /**
1684
+ * BlockGrid-only layout options. Rejected for BlockList/RichText properties
1685
+ */
1686
+ grid?: {
1687
+ /**
1688
+ * BlockGrid column span (default 12)
1689
+ */
1690
+ columnSpan?: number;
1691
+ /**
1692
+ * BlockGrid row span (default 1)
1693
+ */
1694
+ rowSpan?: number;
1695
+ /**
1696
+ * Key of the named area to insert into (requires parentContentKey)
1697
+ */
1698
+ areaKey?: string;
1699
+ /**
1700
+ * contentKey of the block that owns the area (requires areaKey)
1701
+ */
1702
+ parentContentKey?: string;
1703
+ };
1704
+ }
1705
+
1706
+ export interface CreateDocumentBlockOutput {
1707
+ success: boolean;
1708
+ message: string;
1709
+ results: {
1710
+ success: boolean;
1711
+ contentKey: string;
1712
+ message: string;
1713
+ updatedCount?: number;
1714
+ addedCount?: number;
1715
+ warnings?: string[];
1716
+ errors?: string[];
1717
+ }[];
1718
+ }
1719
+
1720
+ export interface DeleteDocumentBlockInput {
1721
+ /**
1722
+ * The document containing the block
1723
+ */
1724
+ documentId: string;
1725
+ /**
1726
+ * Document property alias of the BlockList, BlockGrid, or RichText property
1727
+ */
1728
+ propertyAlias: string;
1729
+ /**
1730
+ * Culture, only for culture-variant document properties
1731
+ */
1732
+ culture?: string | null;
1733
+ /**
1734
+ * Segment, only for segment-variant document properties
1735
+ */
1736
+ segment?: string | null;
1737
+ /**
1738
+ * contentKey of the block to delete
1739
+ */
1740
+ contentKey: string;
1741
+ }
1742
+
1743
+ export interface DeleteDocumentBlockOutput {
1744
+ success: boolean;
1745
+ message: string;
1746
+ results: {
1747
+ success: boolean;
1748
+ contentKey: string;
1749
+ message: string;
1750
+ updatedCount?: number;
1751
+ addedCount?: number;
1752
+ warnings?: string[];
1753
+ errors?: string[];
1754
+ }[];
1755
+ }
1756
+
1608
1757
  export interface PutDocumentDomainsInput {
1609
1758
  id: string;
1610
1759
  data: {
@@ -16386,6 +16535,8 @@ export interface CmsTools {
16386
16535
  "update-document-properties": { input: UpdateDocumentPropertiesInput; output: UpdateDocumentPropertiesOutput };
16387
16536
  "update-document-name": { input: UpdateDocumentNameInput; output: UpdateDocumentNameOutput };
16388
16537
  "update-block-property": { input: UpdateBlockPropertyInput; output: UpdateBlockPropertyOutput };
16538
+ "create-document-block": { input: CreateDocumentBlockInput; output: CreateDocumentBlockOutput };
16539
+ "delete-document-block": { input: DeleteDocumentBlockInput; output: DeleteDocumentBlockOutput };
16389
16540
  "put-document-domains": { input: PutDocumentDomainsInput; output: unknown };
16390
16541
  "put-document-notifications": { input: PutDocumentNotificationsInput; output: unknown };
16391
16542
  "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": "17.6.8",
3
+ "version": "17.6.10",
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.0.0-beta.41",
75
- "@umbraco-cms/mcp-server-sdk": "^1.0.0-beta.41",
74
+ "@umbraco-cms/mcp-hosted": "^1.0.0-beta.45",
75
+ "@umbraco-cms/mcp-server-sdk": "^1.0.0-beta.45",
76
76
  "dotenv": "^16.5.0",
77
77
  "form-data": "^4.0.4",
78
78
  "mime-types": "^3.0.1",