@umbraco-cms/mcp-dev 18.3.0 → 18.3.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.
- package/dist/{chunk-FG6GMHN7.cjs → chunk-5OCJQREU.cjs} +430 -48
- package/dist/chunk-5OCJQREU.cjs.map +1 -0
- package/dist/{chunk-2BY27RPJ.js → chunk-7SIEQUOL.js} +2540 -2158
- package/dist/chunk-7SIEQUOL.js.map +1 -0
- package/dist/collections.cjs +2 -2
- package/dist/collections.js +1 -1
- package/dist/index.cjs +90 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +154 -0
- package/package.json +3 -3
- package/dist/chunk-2BY27RPJ.js.map +0 -1
- package/dist/chunk-FG6GMHN7.cjs.map +0 -1
package/dist/tool-types.d.ts
CHANGED
|
@@ -1866,6 +1866,71 @@ export interface DeleteDocumentBlockOutput {
|
|
|
1866
1866
|
}[];
|
|
1867
1867
|
}
|
|
1868
1868
|
|
|
1869
|
+
export interface MoveDocumentBlockInput {
|
|
1870
|
+
/**
|
|
1871
|
+
* The document containing the block
|
|
1872
|
+
*/
|
|
1873
|
+
documentId: string;
|
|
1874
|
+
/**
|
|
1875
|
+
* Document property alias of the BlockList, BlockGrid, or RichText property
|
|
1876
|
+
*/
|
|
1877
|
+
propertyAlias: string;
|
|
1878
|
+
/**
|
|
1879
|
+
* Culture, only for culture-variant document properties
|
|
1880
|
+
*/
|
|
1881
|
+
culture?: string | null;
|
|
1882
|
+
/**
|
|
1883
|
+
* Segment, only for segment-variant document properties
|
|
1884
|
+
*/
|
|
1885
|
+
segment?: string | null;
|
|
1886
|
+
/**
|
|
1887
|
+
* contentKey of the block to move
|
|
1888
|
+
*/
|
|
1889
|
+
contentKey: string;
|
|
1890
|
+
/**
|
|
1891
|
+
* Where to move the block
|
|
1892
|
+
*/
|
|
1893
|
+
target:
|
|
1894
|
+
| {
|
|
1895
|
+
/**
|
|
1896
|
+
* Move to the start or end of the block's container
|
|
1897
|
+
*/
|
|
1898
|
+
position: "first" | "last";
|
|
1899
|
+
}
|
|
1900
|
+
| {
|
|
1901
|
+
/**
|
|
1902
|
+
* Move directly before or after another block
|
|
1903
|
+
*/
|
|
1904
|
+
position: "before" | "after";
|
|
1905
|
+
/**
|
|
1906
|
+
* contentKey of the block to move next to; must be in the same container
|
|
1907
|
+
*/
|
|
1908
|
+
relativeToContentKey: string;
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
export interface MoveDocumentBlockOutput {
|
|
1913
|
+
success: boolean;
|
|
1914
|
+
message: string;
|
|
1915
|
+
contentKey: string;
|
|
1916
|
+
/**
|
|
1917
|
+
* False when the block was already at the requested position and nothing was saved
|
|
1918
|
+
*/
|
|
1919
|
+
moved: boolean;
|
|
1920
|
+
/**
|
|
1921
|
+
* contentKeys of the block's container, in their new order
|
|
1922
|
+
*/
|
|
1923
|
+
blockOrder: string[];
|
|
1924
|
+
/**
|
|
1925
|
+
* BlockGrid only: the block owning the area the block was moved within; null for the property root
|
|
1926
|
+
*/
|
|
1927
|
+
parentContentKey: string | null;
|
|
1928
|
+
/**
|
|
1929
|
+
* BlockGrid only: the area the block was moved within; null for the property root
|
|
1930
|
+
*/
|
|
1931
|
+
areaKey: string | null;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1869
1934
|
export interface PutDocumentDomainsInput {
|
|
1870
1935
|
id: string;
|
|
1871
1936
|
data: {
|
|
@@ -2060,6 +2125,27 @@ export interface ValidateDocumentInput {
|
|
|
2060
2125
|
}[];
|
|
2061
2126
|
}
|
|
2062
2127
|
|
|
2128
|
+
export interface ValidateDocumentUpdateInput {
|
|
2129
|
+
id: string;
|
|
2130
|
+
data: {
|
|
2131
|
+
cultures?: string[] | null;
|
|
2132
|
+
template?: null | {
|
|
2133
|
+
id: string;
|
|
2134
|
+
};
|
|
2135
|
+
values: {
|
|
2136
|
+
culture?: string | null;
|
|
2137
|
+
segment?: string | null;
|
|
2138
|
+
alias: string;
|
|
2139
|
+
value?: unknown;
|
|
2140
|
+
}[];
|
|
2141
|
+
variants: {
|
|
2142
|
+
culture?: string | null;
|
|
2143
|
+
segment?: string | null;
|
|
2144
|
+
name: string;
|
|
2145
|
+
}[];
|
|
2146
|
+
};
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2063
2149
|
export interface GetCollectionDocumentByIdInput {
|
|
2064
2150
|
id: string;
|
|
2065
2151
|
dataTypeId?: string;
|
|
@@ -4692,6 +4778,71 @@ export interface UpdateElementBlockPropertyOutput {
|
|
|
4692
4778
|
}[];
|
|
4693
4779
|
}
|
|
4694
4780
|
|
|
4781
|
+
export interface MoveElementBlockInput {
|
|
4782
|
+
/**
|
|
4783
|
+
* The Library element containing the block
|
|
4784
|
+
*/
|
|
4785
|
+
elementId: string;
|
|
4786
|
+
/**
|
|
4787
|
+
* Element property alias of the BlockList, BlockGrid, or RichText property
|
|
4788
|
+
*/
|
|
4789
|
+
propertyAlias: string;
|
|
4790
|
+
/**
|
|
4791
|
+
* Culture, only for culture-variant element properties
|
|
4792
|
+
*/
|
|
4793
|
+
culture?: string | null;
|
|
4794
|
+
/**
|
|
4795
|
+
* Segment, only for segment-variant element properties
|
|
4796
|
+
*/
|
|
4797
|
+
segment?: string | null;
|
|
4798
|
+
/**
|
|
4799
|
+
* contentKey of the block to move
|
|
4800
|
+
*/
|
|
4801
|
+
contentKey: string;
|
|
4802
|
+
/**
|
|
4803
|
+
* Where to move the block
|
|
4804
|
+
*/
|
|
4805
|
+
target:
|
|
4806
|
+
| {
|
|
4807
|
+
/**
|
|
4808
|
+
* Move to the start or end of the block's container
|
|
4809
|
+
*/
|
|
4810
|
+
position: "first" | "last";
|
|
4811
|
+
}
|
|
4812
|
+
| {
|
|
4813
|
+
/**
|
|
4814
|
+
* Move directly before or after another block
|
|
4815
|
+
*/
|
|
4816
|
+
position: "before" | "after";
|
|
4817
|
+
/**
|
|
4818
|
+
* contentKey of the block to move next to; must be in the same container
|
|
4819
|
+
*/
|
|
4820
|
+
relativeToContentKey: string;
|
|
4821
|
+
};
|
|
4822
|
+
}
|
|
4823
|
+
|
|
4824
|
+
export interface MoveElementBlockOutput {
|
|
4825
|
+
success: boolean;
|
|
4826
|
+
message: string;
|
|
4827
|
+
contentKey: string;
|
|
4828
|
+
/**
|
|
4829
|
+
* False when the block was already at the requested position and nothing was saved
|
|
4830
|
+
*/
|
|
4831
|
+
moved: boolean;
|
|
4832
|
+
/**
|
|
4833
|
+
* contentKeys of the block's container, in their new order
|
|
4834
|
+
*/
|
|
4835
|
+
blockOrder: string[];
|
|
4836
|
+
/**
|
|
4837
|
+
* BlockGrid only: the block owning the area the block was moved within; null for the property root
|
|
4838
|
+
*/
|
|
4839
|
+
parentContentKey: string | null;
|
|
4840
|
+
/**
|
|
4841
|
+
* BlockGrid only: the area the block was moved within; null for the property root
|
|
4842
|
+
*/
|
|
4843
|
+
areaKey: string | null;
|
|
4844
|
+
}
|
|
4845
|
+
|
|
4695
4846
|
export interface MoveElementInput {
|
|
4696
4847
|
id: string;
|
|
4697
4848
|
data: {
|
|
@@ -18443,6 +18594,7 @@ export interface CmsTools {
|
|
|
18443
18594
|
"update-block-property": { input: UpdateBlockPropertyInput; output: UpdateBlockPropertyOutput };
|
|
18444
18595
|
"create-document-block": { input: CreateDocumentBlockInput; output: CreateDocumentBlockOutput };
|
|
18445
18596
|
"delete-document-block": { input: DeleteDocumentBlockInput; output: DeleteDocumentBlockOutput };
|
|
18597
|
+
"move-document-block": { input: MoveDocumentBlockInput; output: MoveDocumentBlockOutput };
|
|
18446
18598
|
"put-document-domains": { input: PutDocumentDomainsInput; output: unknown };
|
|
18447
18599
|
"put-document-notifications": { input: PutDocumentNotificationsInput; output: unknown };
|
|
18448
18600
|
"put-document-public-access": { input: PutDocumentPublicAccessInput; output: unknown };
|
|
@@ -18453,6 +18605,7 @@ export interface CmsTools {
|
|
|
18453
18605
|
"get-recycle-bin-document-children": { input: GetRecycleBinDocumentChildrenInput; output: GetRecycleBinDocumentChildrenOutput };
|
|
18454
18606
|
"search-document": { input: SearchDocumentInput; output: SearchDocumentOutput };
|
|
18455
18607
|
"validate-document": { input: ValidateDocumentInput; output: unknown };
|
|
18608
|
+
"validate-document-update": { input: ValidateDocumentUpdateInput; output: unknown };
|
|
18456
18609
|
"get-collection-document-by-id": { input: GetCollectionDocumentByIdInput; output: GetCollectionDocumentByIdOutput };
|
|
18457
18610
|
"get-item-document": { input: GetItemDocumentInput; output: GetItemDocumentOutput };
|
|
18458
18611
|
"get-document-are-referenced": { input: GetDocumentAreReferencedInput; output: GetDocumentAreReferencedOutput };
|
|
@@ -18530,6 +18683,7 @@ export interface CmsTools {
|
|
|
18530
18683
|
"update-element": { input: UpdateElementInput; output: unknown };
|
|
18531
18684
|
"update-element-properties": { input: UpdateElementPropertiesInput; output: UpdateElementPropertiesOutput };
|
|
18532
18685
|
"update-element-block-property": { input: UpdateElementBlockPropertyInput; output: UpdateElementBlockPropertyOutput };
|
|
18686
|
+
"move-element-block": { input: MoveElementBlockInput; output: MoveElementBlockOutput };
|
|
18533
18687
|
"move-element": { input: MoveElementInput; output: unknown };
|
|
18534
18688
|
"move-element-to-recycle-bin": { input: MoveElementToRecycleBinInput; output: unknown };
|
|
18535
18689
|
"publish-element": { input: PublishElementInput; output: unknown };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-cms/mcp-dev",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A model context protocol (MCP) server for Umbraco CMS",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
73
73
|
"@types/uuid": "^10.0.0",
|
|
74
74
|
"@types/yargs": "^17.0.33",
|
|
75
|
-
"@umbraco-cms/mcp-hosted": "^1.
|
|
76
|
-
"@umbraco-cms/mcp-server-sdk": "^1.
|
|
75
|
+
"@umbraco-cms/mcp-hosted": "^1.2.0",
|
|
76
|
+
"@umbraco-cms/mcp-server-sdk": "^1.2.0",
|
|
77
77
|
"dotenv": "^16.5.0",
|
|
78
78
|
"form-data": "^4.0.4",
|
|
79
79
|
"mime-types": "^3.0.1",
|