@umbraco-cms/mcp-dev 17.6.10 → 17.6.11
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-F2BYWHPV.js → chunk-3ZYNR47J.js} +55 -74
- package/dist/chunk-3ZYNR47J.js.map +1 -0
- package/dist/{chunk-3FBX4NTJ.cjs → chunk-WAZSHKMB.cjs} +77 -96
- package/dist/chunk-WAZSHKMB.cjs.map +1 -0
- package/dist/collections.cjs +2 -2
- package/dist/collections.js +1 -1
- package/dist/index.cjs +591 -294
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +443 -146
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +159 -6
- package/package.json +4 -4
- package/dist/chunk-3FBX4NTJ.cjs.map +0 -1
- package/dist/chunk-F2BYWHPV.js.map +0 -1
package/README.md
CHANGED
|
@@ -39,6 +39,8 @@ Download and install the [Claude Desktop app](https://claude.ai/download), then
|
|
|
39
39
|
|
|
40
40
|
3. Fully restart Claude Desktop (including in the system tray on Windows)
|
|
41
41
|
|
|
42
|
+
> **Tip:** Pin `@umbraco-cms/mcp-dev` to your site's Umbraco major (e.g. `@17` above, or `@18` for an Umbraco 18.x site) rather than `@latest`. Tool schemas track the Management API of the package's own major, so a mismatched major can fail confusingly mid-task once a tool's shape has drifted. The server checks the connected site's version on startup and warns on a mismatch, but pinning avoids it altogether.
|
|
43
|
+
|
|
42
44
|
## Documentation
|
|
43
45
|
|
|
44
46
|
For complete installation instructions, configuration options, tool listings, and usage examples, see the full documentation:
|
|
@@ -4726,6 +4726,7 @@ var UmbracoManagementClient3 = class {
|
|
|
4726
4726
|
};
|
|
4727
4727
|
|
|
4728
4728
|
// src/umbraco-api/runtime-context.ts
|
|
4729
|
+
import { getActiveRequestContext, UMBRACO_VERSION_CONTEXT_KEY } from "@umbraco-cms/mcp-server-sdk";
|
|
4729
4730
|
var umbracoVersion = null;
|
|
4730
4731
|
var allowFilePathUploads = false;
|
|
4731
4732
|
function setAllowFilePathUploads(allow) {
|
|
@@ -4737,9 +4738,10 @@ function isFilePathUploadAllowed() {
|
|
|
4737
4738
|
function setUmbracoVersion(version) {
|
|
4738
4739
|
umbracoVersion = version ?? null;
|
|
4739
4740
|
}
|
|
4740
|
-
function isUmbracoAtLeast(major, minor) {
|
|
4741
|
-
|
|
4742
|
-
|
|
4741
|
+
function isUmbracoAtLeast(major, minor, requestVersion) {
|
|
4742
|
+
const version = requestVersion ?? getActiveRequestContext()?.[UMBRACO_VERSION_CONTEXT_KEY] ?? umbracoVersion;
|
|
4743
|
+
if (!version) return false;
|
|
4744
|
+
const [maj, min] = version.split(".").map((n) => parseInt(n, 10));
|
|
4743
4745
|
if (Number.isNaN(maj) || Number.isNaN(min)) return false;
|
|
4744
4746
|
if (maj > major) return true;
|
|
4745
4747
|
if (maj < major) return false;
|
|
@@ -13542,7 +13544,7 @@ var DataTypeCollection = {
|
|
|
13542
13544
|
description: "Data type definitions and management",
|
|
13543
13545
|
dependencies: []
|
|
13544
13546
|
},
|
|
13545
|
-
tools: (user) => {
|
|
13547
|
+
tools: (user, options) => {
|
|
13546
13548
|
const tools = [get_search_default];
|
|
13547
13549
|
if (AuthorizationPolicies.TreeAccessDocumentsOrMediaOrMembersOrContentTypes(user)) {
|
|
13548
13550
|
tools.push(get_references_data_type_default);
|
|
@@ -13552,7 +13554,7 @@ var DataTypeCollection = {
|
|
|
13552
13554
|
tools.push(get_data_type_batch_default);
|
|
13553
13555
|
tools.push(get_data_type_configuration_default);
|
|
13554
13556
|
tools.push(get_data_type_schema_default);
|
|
13555
|
-
if (isUmbracoAtLeast(17, 4)) {
|
|
13557
|
+
if (isUmbracoAtLeast(17, 4, options?.umbracoVersion)) {
|
|
13556
13558
|
tools.push(get_data_type_schemas_default);
|
|
13557
13559
|
}
|
|
13558
13560
|
}
|
|
@@ -17728,7 +17730,7 @@ var DocumentCollection = {
|
|
|
17728
17730
|
description: "Document content management and publishing",
|
|
17729
17731
|
dependencies: []
|
|
17730
17732
|
},
|
|
17731
|
-
tools: (user) => {
|
|
17733
|
+
tools: (user, options) => {
|
|
17732
17734
|
const tools = [];
|
|
17733
17735
|
if (AuthorizationPolicies.TreeAccessDocuments(user)) {
|
|
17734
17736
|
tools.push(get_document_by_id_default);
|
|
@@ -17737,7 +17739,7 @@ var DocumentCollection = {
|
|
|
17737
17739
|
tools.push(get_document_type_schema_default);
|
|
17738
17740
|
tools.push(copy_document_default);
|
|
17739
17741
|
tools.push(create_document_default);
|
|
17740
|
-
if (isUmbracoAtLeast(17, 6)) {
|
|
17742
|
+
if (isUmbracoAtLeast(17, 6, options?.umbracoVersion)) {
|
|
17741
17743
|
tools.push(create_and_publish_document_default);
|
|
17742
17744
|
}
|
|
17743
17745
|
tools.push(post_document_public_access_default);
|
|
@@ -17754,13 +17756,13 @@ var DocumentCollection = {
|
|
|
17754
17756
|
tools.push(publish_document_default);
|
|
17755
17757
|
tools.push(publish_document_with_descendants_default);
|
|
17756
17758
|
tools.push(sort_document_default);
|
|
17757
|
-
if (isUmbracoAtLeast(17, 6)) {
|
|
17759
|
+
if (isUmbracoAtLeast(17, 6, options?.umbracoVersion)) {
|
|
17758
17760
|
tools.push(sort_document_children_default);
|
|
17759
17761
|
tools.push(sort_document_root_children_default);
|
|
17760
17762
|
}
|
|
17761
17763
|
tools.push(unpublish_document_default);
|
|
17762
17764
|
tools.push(update_document_default);
|
|
17763
|
-
if (isUmbracoAtLeast(17, 6)) {
|
|
17765
|
+
if (isUmbracoAtLeast(17, 6, options?.umbracoVersion)) {
|
|
17764
17766
|
tools.push(update_and_publish_document_default);
|
|
17765
17767
|
}
|
|
17766
17768
|
tools.push(update_document_properties_default);
|
|
@@ -20505,34 +20507,20 @@ function buildSourceTypeSection(allowFilePath, otherSources) {
|
|
|
20505
20507
|
}
|
|
20506
20508
|
|
|
20507
20509
|
// src/umbraco-api/tools/media/post/helpers/streaming-upload.ts
|
|
20508
|
-
import {
|
|
20509
|
-
getStoredUmbracoToken
|
|
20510
|
-
} from "@umbraco-cms/mcp-hosted";
|
|
20511
20510
|
import {
|
|
20512
20511
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE151,
|
|
20512
|
+
getActiveRequestContext as getActiveRequestContext2,
|
|
20513
|
+
getSessionUmbracoAuth,
|
|
20513
20514
|
createToolResult as createToolResult24,
|
|
20514
20515
|
createToolResultError as createToolResultError11,
|
|
20515
20516
|
normalizeBaseUrl
|
|
20516
20517
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20517
|
-
|
|
20518
|
-
|
|
20519
|
-
return authContext !== null;
|
|
20518
|
+
function isStreamingUploadAvailable() {
|
|
20519
|
+
return getActiveRequestContext2()?.umbracoAuth !== void 0;
|
|
20520
20520
|
}
|
|
20521
20521
|
async function resolveAuth() {
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
"Streaming auth context not configured. setStreamingAuthContext() must be called in worker init()."
|
|
20525
|
-
);
|
|
20526
|
-
}
|
|
20527
|
-
const entry = await getStoredUmbracoToken(authContext.env.OAUTH_KV, authContext.tokenKey);
|
|
20528
|
-
if (!entry?.tokens?.access_token) {
|
|
20529
|
-
throw new Error("No Umbraco access token in KV. Reconnect the MCP connector.");
|
|
20530
|
-
}
|
|
20531
|
-
const baseUrl = entry.site?.serverUrl ?? entry.site?.baseUrl ?? authContext.env.UMBRACO_SERVER_URL ?? authContext.env.UMBRACO_BASE_URL;
|
|
20532
|
-
if (!baseUrl) {
|
|
20533
|
-
throw new Error("No Umbraco base URL resolvable from site or env.");
|
|
20534
|
-
}
|
|
20535
|
-
return { accessToken: entry.tokens.access_token, baseUrl: normalizeBaseUrl(baseUrl) };
|
|
20522
|
+
const { accessToken, baseUrl } = await getSessionUmbracoAuth();
|
|
20523
|
+
return { accessToken, baseUrl: normalizeBaseUrl(baseUrl) };
|
|
20536
20524
|
}
|
|
20537
20525
|
function ensureExtension(name, contentType, urlPath) {
|
|
20538
20526
|
if (name.includes(".")) return name;
|
|
@@ -20556,10 +20544,7 @@ async function streamingUploadFromUrl(params) {
|
|
|
20556
20544
|
);
|
|
20557
20545
|
const [mediaTypeId, auth] = await Promise.all([
|
|
20558
20546
|
fetchMediaTypeId(client, validatedMediaTypeName),
|
|
20559
|
-
(
|
|
20560
|
-
await client.getTemporaryFileConfiguration().catch(() => void 0);
|
|
20561
|
-
return resolveAuth();
|
|
20562
|
-
})()
|
|
20547
|
+
resolveAuth()
|
|
20563
20548
|
]);
|
|
20564
20549
|
const { accessToken, baseUrl } = auth;
|
|
20565
20550
|
const ctl = new AbortController();
|
|
@@ -20761,7 +20746,7 @@ ${filePathSection}
|
|
|
20761
20746
|
} else {
|
|
20762
20747
|
effectiveSourceType = model.sourceType;
|
|
20763
20748
|
}
|
|
20764
|
-
if (effectiveSourceType === "url" &&
|
|
20749
|
+
if (effectiveSourceType === "url" && isStreamingUploadAvailable()) {
|
|
20765
20750
|
if (!effectiveFileUrl) {
|
|
20766
20751
|
return createToolResultError12({
|
|
20767
20752
|
detail: "Error creating media: fileUrl is required when sourceType is 'url'"
|
|
@@ -20890,7 +20875,7 @@ ${filePathSection}
|
|
|
20890
20875
|
});
|
|
20891
20876
|
}
|
|
20892
20877
|
const client = UmbracoManagementClient3.getClient();
|
|
20893
|
-
const streamingAvailable =
|
|
20878
|
+
const streamingAvailable = isStreamingUploadAvailable();
|
|
20894
20879
|
const results = await mapWithConcurrency(
|
|
20895
20880
|
model.files,
|
|
20896
20881
|
UPLOAD_CONCURRENCY,
|
|
@@ -21812,7 +21797,7 @@ var MediaCollection = {
|
|
|
21812
21797
|
description: "Media asset management and organization",
|
|
21813
21798
|
dependencies: ["temporary-file"]
|
|
21814
21799
|
},
|
|
21815
|
-
tools: (user) => {
|
|
21800
|
+
tools: (user, options) => {
|
|
21816
21801
|
const tools = [];
|
|
21817
21802
|
tools.push(get_media_by_id_default);
|
|
21818
21803
|
if (AuthorizationPolicies.SectionAccessForMediaTree(user)) {
|
|
@@ -21834,7 +21819,7 @@ var MediaCollection = {
|
|
|
21834
21819
|
tools.push(validate_media_default);
|
|
21835
21820
|
tools.push(validate_media_default2);
|
|
21836
21821
|
tools.push(sort_media_default);
|
|
21837
|
-
if (isUmbracoAtLeast(17, 6)) {
|
|
21822
|
+
if (isUmbracoAtLeast(17, 6, options?.umbracoVersion)) {
|
|
21838
21823
|
tools.push(sort_media_children_default);
|
|
21839
21824
|
tools.push(sort_media_root_children_default);
|
|
21840
21825
|
}
|
|
@@ -21855,7 +21840,7 @@ var MediaCollection = {
|
|
|
21855
21840
|
tools.push(get_collection_media_default);
|
|
21856
21841
|
tools.push(get_recycle_bin_media_referenced_by_default);
|
|
21857
21842
|
tools.push(get_recycle_bin_media_original_parent_default);
|
|
21858
|
-
if (isUmbracoAtLeast(17, 4)) {
|
|
21843
|
+
if (isUmbracoAtLeast(17, 4, options?.umbracoVersion)) {
|
|
21859
21844
|
tools.push(get_media_type_schema_default);
|
|
21860
21845
|
}
|
|
21861
21846
|
}
|
|
@@ -22979,7 +22964,7 @@ var MemberCollection = {
|
|
|
22979
22964
|
description: "Member account management and administration",
|
|
22980
22965
|
dependencies: []
|
|
22981
22966
|
},
|
|
22982
|
-
tools: (user) => {
|
|
22967
|
+
tools: (user, options) => {
|
|
22983
22968
|
const tools = [];
|
|
22984
22969
|
if (AuthorizationPolicies.SectionAccessMembers(user)) {
|
|
22985
22970
|
tools.push(get_member_default);
|
|
@@ -22991,7 +22976,7 @@ var MemberCollection = {
|
|
|
22991
22976
|
tools.push(get_member_are_referenced_default);
|
|
22992
22977
|
tools.push(get_member_by_id_referenced_by_default);
|
|
22993
22978
|
tools.push(get_member_by_id_referenced_descendants_default);
|
|
22994
|
-
if (isUmbracoAtLeast(17, 4)) {
|
|
22979
|
+
if (isUmbracoAtLeast(17, 4, options?.umbracoVersion)) {
|
|
22995
22980
|
tools.push(get_member_type_schema_default);
|
|
22996
22981
|
}
|
|
22997
22982
|
}
|
|
@@ -26418,20 +26403,16 @@ var GetUserCurrentPermissionsTool = {
|
|
|
26418
26403
|
var get_user_current_permissions_default = withStandardDecorators354(GetUserCurrentPermissionsTool);
|
|
26419
26404
|
|
|
26420
26405
|
// src/umbraco-api/tools/user/get/get-user-current-permissions-document.ts
|
|
26421
|
-
import { z as z153 } from "zod";
|
|
26422
26406
|
import {
|
|
26423
26407
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE323,
|
|
26424
26408
|
executeGetApiCall as executeGetApiCall167,
|
|
26425
26409
|
withStandardDecorators as withStandardDecorators355
|
|
26426
26410
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26427
|
-
var outputSchema62 = z153.object({
|
|
26428
|
-
items: getUserCurrentPermissionsDocumentResponse
|
|
26429
|
-
});
|
|
26430
26411
|
var GetUserCurrentPermissionsDocumentTool = {
|
|
26431
26412
|
name: "get-user-current-permissions-document",
|
|
26432
26413
|
description: "Gets the current user's document permissions for specific documents",
|
|
26433
26414
|
inputSchema: getUserCurrentPermissionsDocumentQueryParams.shape,
|
|
26434
|
-
outputSchema:
|
|
26415
|
+
outputSchema: getUserCurrentPermissionsDocumentResponse.shape,
|
|
26435
26416
|
annotations: { readOnlyHint: true },
|
|
26436
26417
|
slices: ["permissions"],
|
|
26437
26418
|
handler: (async (params) => {
|
|
@@ -26506,13 +26487,13 @@ var GetUserBatchTool = {
|
|
|
26506
26487
|
var get_user_batch_default = withStandardDecorators358(GetUserBatchTool);
|
|
26507
26488
|
|
|
26508
26489
|
// src/umbraco-api/tools/user/post/upload-user-avatar-by-id.ts
|
|
26509
|
-
import { z as
|
|
26490
|
+
import { z as z153 } from "zod";
|
|
26510
26491
|
import {
|
|
26511
26492
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE327,
|
|
26512
26493
|
executeVoidApiCall as executeVoidApiCall96,
|
|
26513
26494
|
withStandardDecorators as withStandardDecorators359
|
|
26514
26495
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26515
|
-
var inputSchema39 =
|
|
26496
|
+
var inputSchema39 = z153.object({
|
|
26516
26497
|
...postUserAvatarByIdParams.shape,
|
|
26517
26498
|
...postUserAvatarByIdBody.shape
|
|
26518
26499
|
});
|
|
@@ -26622,7 +26603,7 @@ var UserCollection = {
|
|
|
26622
26603
|
description: "User account management and administration",
|
|
26623
26604
|
dependencies: ["temporary-file"]
|
|
26624
26605
|
},
|
|
26625
|
-
tools: (user) => {
|
|
26606
|
+
tools: (user, options) => {
|
|
26626
26607
|
const tools = [];
|
|
26627
26608
|
tools.push(get_user_current_default);
|
|
26628
26609
|
tools.push(get_user_current_configuration_default);
|
|
@@ -26640,7 +26621,7 @@ var UserCollection = {
|
|
|
26640
26621
|
tools.push(get_item_user_default);
|
|
26641
26622
|
tools.push(get_user_configuration_default);
|
|
26642
26623
|
tools.push(get_user_by_id_calculate_start_nodes_default);
|
|
26643
|
-
if (isUmbracoAtLeast(17, 6)) {
|
|
26624
|
+
if (isUmbracoAtLeast(17, 6, options?.umbracoVersion)) {
|
|
26644
26625
|
tools.push(get_user_batch_default);
|
|
26645
26626
|
}
|
|
26646
26627
|
tools.push(upload_user_avatar_by_id_default);
|
|
@@ -26651,15 +26632,15 @@ var UserCollection = {
|
|
|
26651
26632
|
};
|
|
26652
26633
|
|
|
26653
26634
|
// src/umbraco-api/tools/user-data/post/create-user-data.ts
|
|
26654
|
-
import { z as
|
|
26635
|
+
import { z as z154 } from "zod";
|
|
26655
26636
|
import {
|
|
26656
26637
|
createToolResult as createToolResult48,
|
|
26657
26638
|
createToolResultError as createToolResultError30,
|
|
26658
26639
|
withStandardDecorators as withStandardDecorators364
|
|
26659
26640
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26660
|
-
var createUserDataOutputSchema =
|
|
26661
|
-
message:
|
|
26662
|
-
id:
|
|
26641
|
+
var createUserDataOutputSchema = z154.object({
|
|
26642
|
+
message: z154.string(),
|
|
26643
|
+
id: z154.string().guid()
|
|
26663
26644
|
});
|
|
26664
26645
|
var CreateUserDataTool = {
|
|
26665
26646
|
name: "create-user-data",
|
|
@@ -26822,20 +26803,20 @@ var GetUserGroupTool = {
|
|
|
26822
26803
|
var get_user_group_default = withStandardDecorators369(GetUserGroupTool);
|
|
26823
26804
|
|
|
26824
26805
|
// src/umbraco-api/tools/user-group/get/get-user-group-by-id-array.ts
|
|
26825
|
-
import { z as
|
|
26806
|
+
import { z as z155 } from "zod";
|
|
26826
26807
|
import {
|
|
26827
26808
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE337,
|
|
26828
26809
|
executeGetItemsApiCall as executeGetItemsApiCall52,
|
|
26829
26810
|
withStandardDecorators as withStandardDecorators370
|
|
26830
26811
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26831
|
-
var
|
|
26812
|
+
var outputSchema62 = z155.object({
|
|
26832
26813
|
items: getItemUserGroupResponse
|
|
26833
26814
|
});
|
|
26834
26815
|
var GetUserGroupByIdArrayTool = {
|
|
26835
26816
|
name: "get-user-group-by-id-array",
|
|
26836
26817
|
description: "Gets user groups by an array of IDs",
|
|
26837
26818
|
inputSchema: getItemUserGroupQueryParams.shape,
|
|
26838
|
-
outputSchema:
|
|
26819
|
+
outputSchema: outputSchema62.shape,
|
|
26839
26820
|
annotations: { readOnlyHint: true },
|
|
26840
26821
|
slices: ["list"],
|
|
26841
26822
|
handler: (async (params) => {
|
|
@@ -26889,15 +26870,15 @@ var GetFilterUserGroupTool = {
|
|
|
26889
26870
|
var get_filter_user_group_default = withStandardDecorators372(GetFilterUserGroupTool);
|
|
26890
26871
|
|
|
26891
26872
|
// src/umbraco-api/tools/user-group/post/create-user-group.ts
|
|
26892
|
-
import { z as
|
|
26873
|
+
import { z as z156 } from "zod";
|
|
26893
26874
|
import {
|
|
26894
26875
|
createToolResult as createToolResult49,
|
|
26895
26876
|
createToolResultError as createToolResultError31,
|
|
26896
26877
|
withStandardDecorators as withStandardDecorators373
|
|
26897
26878
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26898
|
-
var createUserGroupOutputSchema =
|
|
26899
|
-
message:
|
|
26900
|
-
id:
|
|
26879
|
+
var createUserGroupOutputSchema = z156.object({
|
|
26880
|
+
message: z156.string(),
|
|
26881
|
+
id: z156.string().guid()
|
|
26901
26882
|
});
|
|
26902
26883
|
var CreateUserGroupTool = {
|
|
26903
26884
|
name: "create-user-group",
|
|
@@ -26936,15 +26917,15 @@ var CreateUserGroupTool = {
|
|
|
26936
26917
|
var create_user_group_default = withStandardDecorators373(CreateUserGroupTool);
|
|
26937
26918
|
|
|
26938
26919
|
// src/umbraco-api/tools/user-group/put/update-user-group.ts
|
|
26939
|
-
import { z as
|
|
26920
|
+
import { z as z157 } from "zod";
|
|
26940
26921
|
import {
|
|
26941
26922
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE340,
|
|
26942
26923
|
executeVoidApiCall as executeVoidApiCall103,
|
|
26943
26924
|
withStandardDecorators as withStandardDecorators374
|
|
26944
26925
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26945
|
-
var updateUserGroupSchema =
|
|
26926
|
+
var updateUserGroupSchema = z157.object({
|
|
26946
26927
|
id: putUserGroupByIdParams.shape.id,
|
|
26947
|
-
data:
|
|
26928
|
+
data: z157.object(putUserGroupByIdBody.shape)
|
|
26948
26929
|
});
|
|
26949
26930
|
var UpdateUserGroupTool = {
|
|
26950
26931
|
name: "update-user-group",
|
|
@@ -27050,20 +27031,20 @@ var GetWebhookByIdTool = {
|
|
|
27050
27031
|
var get_webhook_by_id_default = withStandardDecorators377(GetWebhookByIdTool);
|
|
27051
27032
|
|
|
27052
27033
|
// src/umbraco-api/tools/webhook/get/get-webhook-by-id-array.ts
|
|
27053
|
-
import { z as
|
|
27034
|
+
import { z as z158 } from "zod";
|
|
27054
27035
|
import {
|
|
27055
27036
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE344,
|
|
27056
27037
|
executeGetItemsApiCall as executeGetItemsApiCall53,
|
|
27057
27038
|
withStandardDecorators as withStandardDecorators378
|
|
27058
27039
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27059
|
-
var
|
|
27040
|
+
var outputSchema63 = z158.object({
|
|
27060
27041
|
items: getItemWebhookResponse
|
|
27061
27042
|
});
|
|
27062
27043
|
var GetWebhookItemTool = {
|
|
27063
27044
|
name: "get-webhook-item",
|
|
27064
27045
|
description: "Gets webhooks by IDs (or empty array if no IDs are provided)",
|
|
27065
27046
|
inputSchema: getItemWebhookQueryParams.shape,
|
|
27066
|
-
outputSchema:
|
|
27047
|
+
outputSchema: outputSchema63.shape,
|
|
27067
27048
|
annotations: { readOnlyHint: true },
|
|
27068
27049
|
slices: ["list"],
|
|
27069
27050
|
handler: (async (params) => {
|
|
@@ -27118,15 +27099,15 @@ var DeleteWebhookTool = {
|
|
|
27118
27099
|
var delete_webhook_default = withStandardDecorators380(DeleteWebhookTool);
|
|
27119
27100
|
|
|
27120
27101
|
// src/umbraco-api/tools/webhook/put/update-webhook.ts
|
|
27121
|
-
import { z as
|
|
27102
|
+
import { z as z159 } from "zod";
|
|
27122
27103
|
import {
|
|
27123
27104
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE347,
|
|
27124
27105
|
executeVoidApiCall as executeVoidApiCall107,
|
|
27125
27106
|
withStandardDecorators as withStandardDecorators381
|
|
27126
27107
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27127
|
-
var updateWebhookSchema =
|
|
27108
|
+
var updateWebhookSchema = z159.object({
|
|
27128
27109
|
id: putWebhookByIdParams.shape.id,
|
|
27129
|
-
data:
|
|
27110
|
+
data: z159.object(putWebhookByIdBody.shape)
|
|
27130
27111
|
});
|
|
27131
27112
|
var UpdateWebhookTool = {
|
|
27132
27113
|
name: "update-webhook",
|
|
@@ -27185,15 +27166,15 @@ var GetAllWebhookLogsTool = {
|
|
|
27185
27166
|
var get_all_webhook_logs_default = withStandardDecorators383(GetAllWebhookLogsTool);
|
|
27186
27167
|
|
|
27187
27168
|
// src/umbraco-api/tools/webhook/post/create-webhook.ts
|
|
27188
|
-
import { z as
|
|
27169
|
+
import { z as z160 } from "zod";
|
|
27189
27170
|
import {
|
|
27190
27171
|
createToolResult as createToolResult50,
|
|
27191
27172
|
createToolResultError as createToolResultError32,
|
|
27192
27173
|
withStandardDecorators as withStandardDecorators384
|
|
27193
27174
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27194
|
-
var createWebhookOutputSchema =
|
|
27195
|
-
message:
|
|
27196
|
-
id:
|
|
27175
|
+
var createWebhookOutputSchema = z160.object({
|
|
27176
|
+
message: z160.string(),
|
|
27177
|
+
id: z160.string().guid()
|
|
27197
27178
|
});
|
|
27198
27179
|
var CreateWebhookTool = {
|
|
27199
27180
|
name: "create-webhook",
|
|
@@ -27446,4 +27427,4 @@ export {
|
|
|
27446
27427
|
allModeNames,
|
|
27447
27428
|
allSliceNames
|
|
27448
27429
|
};
|
|
27449
|
-
//# sourceMappingURL=chunk-
|
|
27430
|
+
//# sourceMappingURL=chunk-3ZYNR47J.js.map
|