@umbraco-cms/mcp-dev 17.6.14 → 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.
- package/README.md +2 -0
- package/dist/{chunk-KGS2P7IA.cjs → chunk-JXXGY3HS.cjs} +972 -578
- package/dist/chunk-JXXGY3HS.cjs.map +1 -0
- package/dist/{chunk-7WQYZOKX.js → chunk-SELP32TD.js} +2758 -2364
- package/dist/chunk-SELP32TD.js.map +1 -0
- package/dist/collections.cjs +2 -2
- package/dist/collections.js +1 -1
- package/dist/index.cjs +160 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -15
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +143 -0
- package/package.json +3 -3
- package/dist/chunk-7WQYZOKX.js.map +0 -1
- package/dist/chunk-KGS2P7IA.cjs.map +0 -1
package/dist/tool-types.d.ts
CHANGED
|
@@ -875,6 +875,15 @@ export interface GetDocumentBlueprintAncestorsOutput {
|
|
|
875
875
|
id: string;
|
|
876
876
|
} | null;
|
|
877
877
|
} | null;
|
|
878
|
+
variants?: {
|
|
879
|
+
name: string;
|
|
880
|
+
culture?: string | null;
|
|
881
|
+
id: string;
|
|
882
|
+
flags: {
|
|
883
|
+
alias: string;
|
|
884
|
+
}[];
|
|
885
|
+
state: "NotCreated" | "Draft" | "Published" | "PublishedPendingChanges" | "Trashed";
|
|
886
|
+
}[];
|
|
878
887
|
}[];
|
|
879
888
|
}
|
|
880
889
|
|
|
@@ -907,6 +916,15 @@ export interface GetDocumentBlueprintChildrenOutput {
|
|
|
907
916
|
id: string;
|
|
908
917
|
} | null;
|
|
909
918
|
} | null;
|
|
919
|
+
variants?: {
|
|
920
|
+
name: string;
|
|
921
|
+
culture?: string | null;
|
|
922
|
+
id: string;
|
|
923
|
+
flags: {
|
|
924
|
+
alias: string;
|
|
925
|
+
}[];
|
|
926
|
+
state: "NotCreated" | "Draft" | "Published" | "PublishedPendingChanges" | "Trashed";
|
|
927
|
+
}[];
|
|
910
928
|
}[];
|
|
911
929
|
/**
|
|
912
930
|
* Cursor for the next page. Pass as the cursor parameter to fetch more results. Absent when on the last page.
|
|
@@ -942,6 +960,15 @@ export interface GetDocumentBlueprintRootOutput {
|
|
|
942
960
|
id: string;
|
|
943
961
|
} | null;
|
|
944
962
|
} | null;
|
|
963
|
+
variants?: {
|
|
964
|
+
name: string;
|
|
965
|
+
culture?: string | null;
|
|
966
|
+
id: string;
|
|
967
|
+
flags: {
|
|
968
|
+
alias: string;
|
|
969
|
+
}[];
|
|
970
|
+
state: "NotCreated" | "Draft" | "Published" | "PublishedPendingChanges" | "Trashed";
|
|
971
|
+
}[];
|
|
945
972
|
}[];
|
|
946
973
|
/**
|
|
947
974
|
* Cursor for the next page. Pass as the cursor parameter to fetch more results. Absent when on the last page.
|
|
@@ -977,6 +1004,15 @@ export interface GetDocumentBlueprintSiblingsOutput {
|
|
|
977
1004
|
id: string;
|
|
978
1005
|
} | null;
|
|
979
1006
|
} | null;
|
|
1007
|
+
variants?: {
|
|
1008
|
+
name: string;
|
|
1009
|
+
culture?: string | null;
|
|
1010
|
+
id: string;
|
|
1011
|
+
flags: {
|
|
1012
|
+
alias: string;
|
|
1013
|
+
}[];
|
|
1014
|
+
state: "NotCreated" | "Draft" | "Published" | "PublishedPendingChanges" | "Trashed";
|
|
1015
|
+
}[];
|
|
980
1016
|
}[];
|
|
981
1017
|
}
|
|
982
1018
|
|
|
@@ -1205,6 +1241,7 @@ export interface GetDocumentUrlsOutput {
|
|
|
1205
1241
|
url: string | null;
|
|
1206
1242
|
message: string | null;
|
|
1207
1243
|
provider: string;
|
|
1244
|
+
isExternal?: boolean;
|
|
1208
1245
|
}[];
|
|
1209
1246
|
}[];
|
|
1210
1247
|
}
|
|
@@ -1733,6 +1770,10 @@ export interface CreateDocumentBlockInput {
|
|
|
1733
1770
|
*/
|
|
1734
1771
|
parentContentKey?: string;
|
|
1735
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";
|
|
1736
1777
|
}
|
|
1737
1778
|
|
|
1738
1779
|
export interface CreateDocumentBlockOutput {
|
|
@@ -1747,6 +1788,7 @@ export interface CreateDocumentBlockOutput {
|
|
|
1747
1788
|
warnings?: string[];
|
|
1748
1789
|
errors?: string[];
|
|
1749
1790
|
}[];
|
|
1791
|
+
kind: "BlockList" | "BlockGrid" | "RichText";
|
|
1750
1792
|
}
|
|
1751
1793
|
|
|
1752
1794
|
export interface DeleteDocumentBlockInput {
|
|
@@ -1786,6 +1828,71 @@ export interface DeleteDocumentBlockOutput {
|
|
|
1786
1828
|
}[];
|
|
1787
1829
|
}
|
|
1788
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
|
+
|
|
1789
1896
|
export interface PutDocumentDomainsInput {
|
|
1790
1897
|
id: string;
|
|
1791
1898
|
data: {
|
|
@@ -1980,6 +2087,27 @@ export interface ValidateDocumentInput {
|
|
|
1980
2087
|
} | null;
|
|
1981
2088
|
}
|
|
1982
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
|
+
|
|
1983
2111
|
export interface GetCollectionDocumentByIdInput {
|
|
1984
2112
|
id: string;
|
|
1985
2113
|
dataTypeId?: string;
|
|
@@ -2024,6 +2152,7 @@ export interface GetCollectionDocumentByIdOutput {
|
|
|
2024
2152
|
}[];
|
|
2025
2153
|
creator?: string | null;
|
|
2026
2154
|
sortOrder: number;
|
|
2155
|
+
hasChildren?: boolean;
|
|
2027
2156
|
documentType: {
|
|
2028
2157
|
id: string;
|
|
2029
2158
|
alias: string;
|
|
@@ -3478,6 +3607,7 @@ export interface ExecuteHealthCheckActionOutput {
|
|
|
3478
3607
|
|
|
3479
3608
|
export interface GetImagingResizeUrlsInput {
|
|
3480
3609
|
id?: string[];
|
|
3610
|
+
dataTypeId?: string;
|
|
3481
3611
|
height?: number;
|
|
3482
3612
|
width?: number;
|
|
3483
3613
|
mode?: "Crop" | "Max" | "Stretch" | "Pad" | "BoxPad" | "Min";
|
|
@@ -3846,6 +3976,7 @@ export interface GetMediaAncestorsOutput {
|
|
|
3846
3976
|
id: string;
|
|
3847
3977
|
} | null;
|
|
3848
3978
|
};
|
|
3979
|
+
extension?: string | null;
|
|
3849
3980
|
variants: {
|
|
3850
3981
|
name: string;
|
|
3851
3982
|
culture?: string | null;
|
|
@@ -3877,6 +4008,7 @@ export interface GetMediaAncestorsBatchOutput {
|
|
|
3877
4008
|
id: string;
|
|
3878
4009
|
} | null;
|
|
3879
4010
|
};
|
|
4011
|
+
extension?: string | null;
|
|
3880
4012
|
variants: {
|
|
3881
4013
|
name: string;
|
|
3882
4014
|
culture?: string | null;
|
|
@@ -3915,6 +4047,7 @@ export interface GetMediaChildrenOutput {
|
|
|
3915
4047
|
id: string;
|
|
3916
4048
|
} | null;
|
|
3917
4049
|
};
|
|
4050
|
+
extension?: string | null;
|
|
3918
4051
|
variants: {
|
|
3919
4052
|
name: string;
|
|
3920
4053
|
culture?: string | null;
|
|
@@ -3955,6 +4088,7 @@ export interface GetMediaSiblingsOutput {
|
|
|
3955
4088
|
id: string;
|
|
3956
4089
|
} | null;
|
|
3957
4090
|
};
|
|
4091
|
+
extension?: string | null;
|
|
3958
4092
|
variants: {
|
|
3959
4093
|
name: string;
|
|
3960
4094
|
culture?: string | null;
|
|
@@ -3991,6 +4125,7 @@ export interface GetMediaRootOutput {
|
|
|
3991
4125
|
id: string;
|
|
3992
4126
|
} | null;
|
|
3993
4127
|
};
|
|
4128
|
+
extension?: string | null;
|
|
3994
4129
|
variants: {
|
|
3995
4130
|
name: string;
|
|
3996
4131
|
culture?: string | null;
|
|
@@ -12367,6 +12502,7 @@ export interface GetMediaConfigurationOutput {
|
|
|
12367
12502
|
|
|
12368
12503
|
export interface GetMediaUrlsInput {
|
|
12369
12504
|
id?: string[];
|
|
12505
|
+
dataTypeId?: string;
|
|
12370
12506
|
}
|
|
12371
12507
|
|
|
12372
12508
|
export interface GetMediaUrlsOutput {
|
|
@@ -12449,6 +12585,7 @@ export interface GetMediaByIdArrayOutput {
|
|
|
12449
12585
|
id: string;
|
|
12450
12586
|
} | null;
|
|
12451
12587
|
};
|
|
12588
|
+
extension?: string | null;
|
|
12452
12589
|
variants: {
|
|
12453
12590
|
name: string;
|
|
12454
12591
|
culture?: string | null;
|
|
@@ -12811,6 +12948,7 @@ export interface GetCollectionMediaOutput {
|
|
|
12811
12948
|
}[];
|
|
12812
12949
|
creator?: string | null;
|
|
12813
12950
|
sortOrder: number;
|
|
12951
|
+
hasChildren?: boolean;
|
|
12814
12952
|
mediaType: {
|
|
12815
12953
|
id: string;
|
|
12816
12954
|
alias: string;
|
|
@@ -12819,6 +12957,7 @@ export interface GetCollectionMediaOutput {
|
|
|
12819
12957
|
id: string;
|
|
12820
12958
|
} | null;
|
|
12821
12959
|
};
|
|
12960
|
+
extension?: string | null;
|
|
12822
12961
|
}[];
|
|
12823
12962
|
/**
|
|
12824
12963
|
* Cursor for the next page. Pass as the cursor parameter to fetch more results. Absent when on the last page.
|
|
@@ -16590,6 +16729,7 @@ export interface GetAllWebhookLogsOutput {
|
|
|
16590
16729
|
key: string;
|
|
16591
16730
|
webhookKey: string;
|
|
16592
16731
|
statusCode: string;
|
|
16732
|
+
httpStatusCode?: number | null;
|
|
16593
16733
|
isSuccessStatusCode: boolean;
|
|
16594
16734
|
date: string;
|
|
16595
16735
|
eventAlias: string;
|
|
@@ -16621,6 +16761,7 @@ export interface GetWebhookLogsOutput {
|
|
|
16621
16761
|
key: string;
|
|
16622
16762
|
webhookKey: string;
|
|
16623
16763
|
statusCode: string;
|
|
16764
|
+
httpStatusCode?: number | null;
|
|
16624
16765
|
isSuccessStatusCode: boolean;
|
|
16625
16766
|
date: string;
|
|
16626
16767
|
eventAlias: string;
|
|
@@ -16720,6 +16861,7 @@ export interface CmsTools {
|
|
|
16720
16861
|
"update-block-property": { input: UpdateBlockPropertyInput; output: UpdateBlockPropertyOutput };
|
|
16721
16862
|
"create-document-block": { input: CreateDocumentBlockInput; output: CreateDocumentBlockOutput };
|
|
16722
16863
|
"delete-document-block": { input: DeleteDocumentBlockInput; output: DeleteDocumentBlockOutput };
|
|
16864
|
+
"move-document-block": { input: MoveDocumentBlockInput; output: MoveDocumentBlockOutput };
|
|
16723
16865
|
"put-document-domains": { input: PutDocumentDomainsInput; output: unknown };
|
|
16724
16866
|
"put-document-notifications": { input: PutDocumentNotificationsInput; output: unknown };
|
|
16725
16867
|
"put-document-public-access": { input: PutDocumentPublicAccessInput; output: unknown };
|
|
@@ -16730,6 +16872,7 @@ export interface CmsTools {
|
|
|
16730
16872
|
"get-recycle-bin-document-children": { input: GetRecycleBinDocumentChildrenInput; output: GetRecycleBinDocumentChildrenOutput };
|
|
16731
16873
|
"search-document": { input: SearchDocumentInput; output: SearchDocumentOutput };
|
|
16732
16874
|
"validate-document": { input: ValidateDocumentInput; output: unknown };
|
|
16875
|
+
"validate-document-update": { input: ValidateDocumentUpdateInput; output: unknown };
|
|
16733
16876
|
"get-collection-document-by-id": { input: GetCollectionDocumentByIdInput; output: GetCollectionDocumentByIdOutput };
|
|
16734
16877
|
"get-item-document": { input: GetItemDocumentInput; output: GetItemDocumentOutput };
|
|
16735
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.
|
|
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.
|
|
75
|
-
"@umbraco-cms/mcp-server-sdk": "^1.
|
|
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",
|