@antonytm/mcp-sitecore-server 0.11.0 → 0.12.0
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 +3 -1
- package/dist/bundle.js +198 -129
- package/dist/register.js +49 -30
- package/dist/register.js.map +1 -1
- package/dist/tools/item-service/{composite → logic/composite}/get-item-descendants.d.ts +1 -1
- package/dist/tools/item-service/{composite → logic/composite}/get-item-descendants.js +2 -2
- package/dist/tools/item-service/logic/composite/get-item-descendants.js.map +1 -0
- package/dist/tools/item-service/{composite → logic/composite}/get-languages.d.ts +1 -1
- package/dist/tools/item-service/{composite → logic/composite}/get-languages.js +2 -2
- package/dist/tools/item-service/logic/composite/get-languages.js.map +1 -0
- package/dist/tools/item-service/{simple → logic/simple}/create-item.d.ts +1 -1
- package/dist/tools/item-service/{simple → logic/simple}/create-item.js +2 -2
- package/dist/tools/item-service/logic/simple/create-item.js.map +1 -0
- package/dist/tools/item-service/{simple → logic/simple}/delete-item.d.ts +1 -1
- package/dist/tools/item-service/{simple → logic/simple}/delete-item.js +2 -2
- package/dist/tools/item-service/logic/simple/delete-item.js.map +1 -0
- package/dist/tools/item-service/{simple → logic/simple}/edit-item.js +1 -1
- package/dist/tools/item-service/logic/simple/edit-item.js.map +1 -0
- package/dist/tools/item-service/{simple → logic/simple}/get-item-by-path.d.ts +1 -1
- package/dist/tools/item-service/{simple → logic/simple}/get-item-by-path.js +2 -2
- package/dist/tools/item-service/logic/simple/get-item-by-path.js.map +1 -0
- package/dist/tools/item-service/{simple → logic/simple}/get-item-children.d.ts +1 -1
- package/dist/tools/item-service/{simple → logic/simple}/get-item-children.js +2 -2
- package/dist/tools/item-service/logic/simple/get-item-children.js.map +1 -0
- package/dist/tools/item-service/{simple → logic/simple}/get-item.d.ts +1 -1
- package/dist/tools/item-service/{simple → logic/simple}/get-item.js +2 -2
- package/dist/tools/item-service/logic/simple/get-item.js.map +1 -0
- package/dist/tools/item-service/{simple → logic/simple}/run-stored-query.d.ts +1 -1
- package/dist/tools/item-service/{simple → logic/simple}/run-stored-query.js +2 -2
- package/dist/tools/item-service/logic/simple/run-stored-query.js.map +1 -0
- package/dist/tools/item-service/{simple → logic/simple}/run-stored-search.d.ts +1 -1
- package/dist/tools/item-service/{simple → logic/simple}/run-stored-search.js +2 -2
- package/dist/tools/item-service/logic/simple/run-stored-search.js.map +1 -0
- package/dist/tools/item-service/{simple → logic/simple}/search-items.d.ts +1 -1
- package/dist/tools/item-service/{simple → logic/simple}/search-items.js +2 -2
- package/dist/tools/item-service/logic/simple/search-items.js.map +1 -0
- package/dist/tools/item-service/{tool-registrations/composite/get-item-descendants.registration.js → tools/composite/get-item-descendants.js} +2 -2
- package/dist/tools/item-service/tools/composite/get-item-descendants.js.map +1 -0
- package/dist/tools/item-service/{tool-registrations/composite/get-languages.registration.js → tools/composite/get-languages.js} +2 -2
- package/dist/tools/item-service/tools/composite/get-languages.js.map +1 -0
- package/dist/tools/item-service/{tool-registrations/simple/create-item.registration.js → tools/simple/create-item.js} +2 -2
- package/dist/tools/item-service/tools/simple/create-item.js.map +1 -0
- package/dist/tools/item-service/{tool-registrations/simple/delete-item.registration.js → tools/simple/delete-item.js} +2 -2
- package/dist/tools/item-service/tools/simple/delete-item.js.map +1 -0
- package/dist/tools/item-service/{tool-registrations/simple/edit-item.registration.js → tools/simple/edit-item.js} +2 -2
- package/dist/tools/item-service/tools/simple/edit-item.js.map +1 -0
- package/dist/tools/item-service/{tool-registrations/simple/get-item-by-path.registration.js → tools/simple/get-item-by-path.js} +2 -2
- package/dist/tools/item-service/tools/simple/get-item-by-path.js.map +1 -0
- package/dist/tools/item-service/{tool-registrations/simple/get-item-children.registration.js → tools/simple/get-item-children.js} +2 -2
- package/dist/tools/item-service/tools/simple/get-item-children.js.map +1 -0
- package/dist/tools/item-service/{tool-registrations/simple/get-item.registration.js → tools/simple/get-item.js} +2 -2
- package/dist/tools/item-service/tools/simple/get-item.js.map +1 -0
- package/dist/tools/item-service/{tool-registrations/simple/run-stored-query.registration.js → tools/simple/run-stored-query.js} +2 -2
- package/dist/tools/item-service/tools/simple/run-stored-query.js.map +1 -0
- package/dist/tools/item-service/{tool-registrations/simple/run-stored-search.registration.js → tools/simple/run-stored-search.js} +2 -2
- package/dist/tools/item-service/tools/simple/run-stored-search.js.map +1 -0
- package/dist/tools/item-service/{tool-registrations/simple/search-items.registration.js → tools/simple/search-items.js} +2 -2
- package/dist/tools/item-service/tools/simple/search-items.js.map +1 -0
- package/dist/tools/powershell/simple/indexing/resume-search-index.d.ts +3 -0
- package/dist/tools/powershell/simple/indexing/resume-search-index.js +16 -0
- package/dist/tools/powershell/simple/indexing/resume-search-index.js.map +1 -0
- package/dist/tools/powershell/simple/{security/lock-item.d.ts → indexing/stop-search-index.d.ts} +1 -1
- package/dist/tools/powershell/simple/indexing/stop-search-index.js +16 -0
- package/dist/tools/powershell/simple/indexing/stop-search-index.js.map +1 -0
- package/dist/tools/powershell/simple/indexing/suspend-search-index.d.ts +3 -0
- package/dist/tools/powershell/simple/indexing/suspend-search-index.js +16 -0
- package/dist/tools/powershell/simple/indexing/suspend-search-index.js.map +1 -0
- package/dist/tools/powershell/simple/security/{unprotect-item.d.ts → get-all-domains.d.ts} +1 -1
- package/dist/tools/powershell/simple/security/get-all-domains.js +10 -0
- package/dist/tools/powershell/simple/security/get-all-domains.js.map +1 -0
- package/dist/tools/powershell/simple/security/{get-role.d.ts → get-current-user.d.ts} +1 -1
- package/dist/tools/powershell/simple/security/get-current-user.js +12 -0
- package/dist/tools/powershell/simple/security/get-current-user.js.map +1 -0
- package/dist/tools/powershell/simple/security/get-domain-by-name.d.ts +3 -0
- package/dist/tools/powershell/simple/security/{get-domain.js → get-domain-by-name.js} +2 -7
- package/dist/tools/powershell/simple/security/get-domain-by-name.js.map +1 -0
- package/dist/tools/powershell/simple/security/get-role-by-filter.d.ts +3 -0
- package/dist/tools/powershell/simple/security/{get-role.js → get-role-by-filter.js} +2 -11
- package/dist/tools/powershell/simple/security/get-role-by-filter.js.map +1 -0
- package/dist/tools/powershell/simple/security/get-role-by-identity.d.ts +3 -0
- package/dist/tools/powershell/simple/security/get-role-by-identity.js +15 -0
- package/dist/tools/powershell/simple/security/get-role-by-identity.js.map +1 -0
- package/dist/tools/powershell/simple/security/get-user-by-filter.d.ts +3 -0
- package/dist/tools/powershell/simple/security/get-user-by-filter.js +15 -0
- package/dist/tools/powershell/simple/security/get-user-by-filter.js.map +1 -0
- package/dist/tools/powershell/simple/security/get-user-by-identity.d.ts +3 -0
- package/dist/tools/powershell/simple/security/get-user-by-identity.js +15 -0
- package/dist/tools/powershell/simple/security/get-user-by-identity.js.map +1 -0
- package/dist/tools/powershell/simple/security/{get-domain.d.ts → lock-item-by-id.d.ts} +1 -1
- package/dist/tools/powershell/simple/security/lock-item-by-id.js +31 -0
- package/dist/tools/powershell/simple/security/lock-item-by-id.js.map +1 -0
- package/dist/tools/powershell/simple/security/{get-user.d.ts → lock-item-by-path.d.ts} +1 -1
- package/dist/tools/powershell/simple/security/{lock-item.js → lock-item-by-path.js} +2 -27
- package/dist/tools/powershell/simple/security/lock-item-by-path.js.map +1 -0
- package/dist/tools/powershell/simple/security/protect-item-by-id.d.ts +3 -0
- package/dist/tools/powershell/simple/security/protect-item-by-id.js +26 -0
- package/dist/tools/powershell/simple/security/protect-item-by-id.js.map +1 -0
- package/dist/tools/powershell/simple/security/protect-item-by-path.d.ts +3 -0
- package/dist/tools/powershell/simple/security/{protect-item.js → protect-item-by-path.js} +2 -22
- package/dist/tools/powershell/simple/security/protect-item-by-path.js.map +1 -0
- package/dist/tools/powershell/simple/security/unprotect-item-by-id.d.ts +3 -0
- package/dist/tools/powershell/simple/security/unprotect-item-by-id.js +26 -0
- package/dist/tools/powershell/simple/security/unprotect-item-by-id.js.map +1 -0
- package/dist/tools/powershell/simple/security/unprotect-item-by-path.d.ts +3 -0
- package/dist/tools/powershell/simple/security/{unprotect-item.js → unprotect-item-by-path.js} +2 -22
- package/dist/tools/powershell/simple/security/unprotect-item-by-path.js.map +1 -0
- package/package.json +1 -1
- package/dist/tools/item-service/composite/get-item-descendants.js.map +0 -1
- package/dist/tools/item-service/composite/get-languages.js.map +0 -1
- package/dist/tools/item-service/simple/create-item.js.map +0 -1
- package/dist/tools/item-service/simple/delete-item.js.map +0 -1
- package/dist/tools/item-service/simple/edit-item.js.map +0 -1
- package/dist/tools/item-service/simple/get-item-by-path.js.map +0 -1
- package/dist/tools/item-service/simple/get-item-children.js.map +0 -1
- package/dist/tools/item-service/simple/get-item.js.map +0 -1
- package/dist/tools/item-service/simple/run-stored-query.js.map +0 -1
- package/dist/tools/item-service/simple/run-stored-search.js.map +0 -1
- package/dist/tools/item-service/simple/search-items.js.map +0 -1
- package/dist/tools/item-service/tool-registrations/composite/get-item-descendants.registration.js.map +0 -1
- package/dist/tools/item-service/tool-registrations/composite/get-languages.registration.js.map +0 -1
- package/dist/tools/item-service/tool-registrations/simple/create-item.registration.js.map +0 -1
- package/dist/tools/item-service/tool-registrations/simple/delete-item.registration.js.map +0 -1
- package/dist/tools/item-service/tool-registrations/simple/edit-item.registration.js.map +0 -1
- package/dist/tools/item-service/tool-registrations/simple/get-item-by-path.registration.js.map +0 -1
- package/dist/tools/item-service/tool-registrations/simple/get-item-children.registration.js.map +0 -1
- package/dist/tools/item-service/tool-registrations/simple/get-item.registration.js.map +0 -1
- package/dist/tools/item-service/tool-registrations/simple/run-stored-query.registration.js.map +0 -1
- package/dist/tools/item-service/tool-registrations/simple/run-stored-search.registration.js.map +0 -1
- package/dist/tools/item-service/tool-registrations/simple/search-items.registration.js.map +0 -1
- package/dist/tools/powershell/simple/media/media-management.d.ts +0 -0
- package/dist/tools/powershell/simple/media/media-management.js +0 -2
- package/dist/tools/powershell/simple/media/media-management.js.map +0 -1
- package/dist/tools/powershell/simple/packages/package-management.d.ts +0 -0
- package/dist/tools/powershell/simple/packages/package-management.js +0 -2
- package/dist/tools/powershell/simple/packages/package-management.js.map +0 -1
- package/dist/tools/powershell/simple/security/get-domain.js.map +0 -1
- package/dist/tools/powershell/simple/security/get-role.js.map +0 -1
- package/dist/tools/powershell/simple/security/get-user.js +0 -31
- package/dist/tools/powershell/simple/security/get-user.js.map +0 -1
- package/dist/tools/powershell/simple/security/lock-item.js.map +0 -1
- package/dist/tools/powershell/simple/security/protect-item.d.ts +0 -3
- package/dist/tools/powershell/simple/security/protect-item.js.map +0 -1
- package/dist/tools/powershell/simple/security/unprotect-item.js.map +0 -1
- /package/dist/tools/item-service/{simple → logic/simple}/edit-item.d.ts +0 -0
- /package/dist/tools/item-service/{tool-registrations/composite/get-item-descendants.registration.d.ts → tools/composite/get-item-descendants.d.ts} +0 -0
- /package/dist/tools/item-service/{tool-registrations/composite/get-languages.registration.d.ts → tools/composite/get-languages.d.ts} +0 -0
- /package/dist/tools/item-service/{tool-registrations/simple/create-item.registration.d.ts → tools/simple/create-item.d.ts} +0 -0
- /package/dist/tools/item-service/{tool-registrations/simple/delete-item.registration.d.ts → tools/simple/delete-item.d.ts} +0 -0
- /package/dist/tools/item-service/{tool-registrations/simple/edit-item.registration.d.ts → tools/simple/edit-item.d.ts} +0 -0
- /package/dist/tools/item-service/{tool-registrations/simple/get-item-by-path.registration.d.ts → tools/simple/get-item-by-path.d.ts} +0 -0
- /package/dist/tools/item-service/{tool-registrations/simple/get-item-children.registration.d.ts → tools/simple/get-item-children.d.ts} +0 -0
- /package/dist/tools/item-service/{tool-registrations/simple/get-item.registration.d.ts → tools/simple/get-item.d.ts} +0 -0
- /package/dist/tools/item-service/{tool-registrations/simple/run-stored-query.registration.d.ts → tools/simple/run-stored-query.d.ts} +0 -0
- /package/dist/tools/item-service/{tool-registrations/simple/run-stored-search.registration.d.ts → tools/simple/run-stored-search.d.ts} +0 -0
- /package/dist/tools/item-service/{tool-registrations/simple/search-items.registration.d.ts → tools/simple/search-items.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-languages.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/logic/composite/get-languages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,aAAa,CAAC;AAC1C,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,IAAY;IAC3C,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,EAClE,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,MAAM,CAC1B,CAAC;IAEF,MAAM,qBAAqB,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,4BAA4B,CAAmC,CAAC;IAEzH,MAAM,MAAM,GAAG,qBAAqB,CAAC,MAAM,CAAC;IAE5C,MAAM,yBAAyB,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IAEvE,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,yBAAyB,EAAE,IAAI,EAAE,CAAC,CAAC;aAC3D;SACJ;QACD,OAAO,EAAE,KAAK;KACjB,CAAA;AACL,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import { type Config } from "
|
|
2
|
+
import { type Config } from "../../../../config.js";
|
|
3
3
|
export declare function createItem(conf: Config, parentPath: string, data: {
|
|
4
4
|
ItemName: string;
|
|
5
5
|
TemplateID: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {} from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import {} from "
|
|
3
|
-
import RestfulItemServiceClient from "
|
|
2
|
+
import {} from "../../../../config.js";
|
|
3
|
+
import RestfulItemServiceClient from "../../client.js";
|
|
4
4
|
export async function createItem(conf, parentPath, data, options = {}) {
|
|
5
5
|
const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
|
|
6
6
|
const response = await client.createItem(parentPath, data, options);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-item.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/logic/simple/create-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,aAAa,CAAC;AAC1C,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,IAAY,EACzC,UAAkB,EAClB,IAIC,EACD,UAGI,EAAE;IAEN,MAAM,MAAM,GAAG,IAAI,wBAAwB,CACvC,IAAI,CAAC,WAAW,CAAC,SAAS,EAC1B,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,MAAM,CAC1B,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAEpE,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;aAC1C;SACJ;QACD,OAAO,EAAE,KAAK;KACjB,CAAC;AACN,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import { type Config } from "
|
|
2
|
+
import { type Config } from "../../../../config.js";
|
|
3
3
|
/**
|
|
4
4
|
* Delete a Sitecore item by ID using the RESTful ItemService API.
|
|
5
5
|
* @param conf - Sitecore connection config
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {} from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import {} from "
|
|
3
|
-
import RestfulItemServiceClient from "
|
|
2
|
+
import {} from "../../../../config.js";
|
|
3
|
+
import RestfulItemServiceClient from "../../client.js";
|
|
4
4
|
/**
|
|
5
5
|
* Delete a Sitecore item by ID using the RESTful ItemService API.
|
|
6
6
|
* @param conf - Sitecore connection config
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-item.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/logic/simple/delete-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,aAAa,CAAC;AAC1C,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC5B,IAAY,EACZ,EAAU,EACV,UAAsE,EAAE;IAExE,MAAM,MAAM,GAAG,IAAI,wBAAwB,CACvC,IAAI,CAAC,WAAW,CAAC,SAAS,EAC1B,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,MAAM,CAC1B,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACtD,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;aAC1C;SACJ;QACD,OAAO,EAAE,KAAK;KACjB,CAAC;AACN,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {} from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import RestfulItemServiceClient from "
|
|
2
|
+
import RestfulItemServiceClient from "../../client.js";
|
|
3
3
|
/**
|
|
4
4
|
* Edit a Sitecore item by ID using the RESTful ItemService API.
|
|
5
5
|
* @param conf - Sitecore connection config
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-item.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/logic/simple/edit-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AAEvD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAC1B,IAAS,EACT,EAAU,EACV,IAA4B,EAC5B,UAAsE,EAAE;IAExE,MAAM,MAAM,GAAG,IAAI,wBAAwB,CACvC,IAAI,CAAC,WAAW,CAAC,SAAS,EAC1B,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,MAAM,CAC1B,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1D,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;aAC1C;SACJ;QACD,OAAO,EAAE,KAAK;KACjB,CAAC;AACN,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import { type Config } from "
|
|
2
|
+
import { type Config } from "../../../../config.js";
|
|
3
3
|
export declare function getItemByPath(conf: Config, path: string, options: {
|
|
4
4
|
database?: string;
|
|
5
5
|
language?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {} from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import {} from "
|
|
3
|
-
import RestfulItemServiceClient from "
|
|
2
|
+
import {} from "../../../../config.js";
|
|
3
|
+
import RestfulItemServiceClient from "../../client.js";
|
|
4
4
|
export async function getItemByPath(conf, path, options) {
|
|
5
5
|
const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
|
|
6
6
|
const response = await client.getItemByPath(path, options);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-item-by-path.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/logic/simple/get-item-by-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,aAAa,CAAC;AAC1C,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAAY,EAC5C,IAAY,EAAE,OAOb;IAED,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,EAClE,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,MAAM,CAC1B,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE3D,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;aAC1C;SACJ;QACD,OAAO,EAAE,KAAK;KACjB,CAAA;AACL,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import { type Config } from "
|
|
2
|
+
import { type Config } from "../../../../config.js";
|
|
3
3
|
export declare function getItemChildren(conf: Config, id: string, options: {
|
|
4
4
|
database?: string;
|
|
5
5
|
language?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {} from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import {} from "
|
|
3
|
-
import RestfulItemServiceClient from "
|
|
2
|
+
import {} from "../../../../config.js";
|
|
3
|
+
import RestfulItemServiceClient from "../../client.js";
|
|
4
4
|
export async function getItemChildren(conf, id, options) {
|
|
5
5
|
const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
|
|
6
6
|
const response = await client.getItemChildren(id, options);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-item-children.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/logic/simple/get-item-children.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,aAAa,CAAC;AAC1C,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,IAAY,EAC9C,EAAU,EAAE,OAOX;IAED,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,EAClE,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,MAAM,CAC1B,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAE3D,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;aAC1C;SACJ;QACD,OAAO,EAAE,KAAK;KACjB,CAAA;AACL,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import { type Config } from "
|
|
2
|
+
import { type Config } from "../../../../config.js";
|
|
3
3
|
export declare function getItemById(conf: Config, id: string, options: {
|
|
4
4
|
database?: string;
|
|
5
5
|
language?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {} from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import {} from "
|
|
2
|
+
import {} from "../../../../config.js";
|
|
3
3
|
import { get } from "http";
|
|
4
|
-
import RestfulItemServiceClient from "
|
|
4
|
+
import RestfulItemServiceClient from "../../client.js";
|
|
5
5
|
export async function getItemById(conf, id, options) {
|
|
6
6
|
const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
|
|
7
7
|
const response = await client.getItemById(id, options);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-item.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/logic/simple/get-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAY,EAC1C,EAAU,EAAE,OAOX;IAED,MAAM,MAAM,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,EAClE,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,MAAM,CAC1B,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAEvD,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;aAC1C;SACJ;QACD,OAAO,EAAE,KAAK;KACjB,CAAA;AACL,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import { type Config } from "
|
|
2
|
+
import { type Config } from "../../../../config.js";
|
|
3
3
|
/**
|
|
4
4
|
* Calls the Sitecore RESTful ItemService to run a stored query.
|
|
5
5
|
* @param conf {Config} - The configuration object.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {} from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import {} from "
|
|
3
|
-
import RestfulItemServiceClient from "
|
|
2
|
+
import {} from "../../../../config.js";
|
|
3
|
+
import RestfulItemServiceClient from "../../client.js";
|
|
4
4
|
/**
|
|
5
5
|
* Calls the Sitecore RESTful ItemService to run a stored query.
|
|
6
6
|
* @param conf {Config} - The configuration object.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-stored-query.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/logic/simple/run-stored-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,aAAa,CAAC;AAC1C,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AAEvD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,IAAY,EACZ,EAAU,EACV,UAOI,EAAE;IAEN,MAAM,MAAM,GAAG,IAAI,wBAAwB,CACzC,IAAI,CAAC,WAAW,CAAC,SAAS,EAC1B,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,MAAM,CACxB,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;aACxC;SACF;QACD,OAAO,EAAE,KAAK;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import { type Config } from "
|
|
2
|
+
import { type Config } from "../../../../config.js";
|
|
3
3
|
/**
|
|
4
4
|
* Calls the Sitecore RESTful ItemService to run a stored search.
|
|
5
5
|
* @param conf {Config} - The configuration object.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {} from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import {} from "
|
|
3
|
-
import RestfulItemServiceClient from "
|
|
2
|
+
import {} from "../../../../config.js";
|
|
3
|
+
import RestfulItemServiceClient from "../../client.js";
|
|
4
4
|
/**
|
|
5
5
|
* Calls the Sitecore RESTful ItemService to run a stored search.
|
|
6
6
|
* @param conf {Config} - The configuration object.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-stored-search.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/logic/simple/run-stored-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,aAAa,CAAC;AAC1C,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AAEvD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,IAAY,EACZ,EAAU,EACV,IAAY,EACZ,OASC;IAED,MAAM,MAAM,GAAG,IAAI,wBAAwB,CACzC,IAAI,CAAC,WAAW,CAAC,SAAS,EAC1B,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,MAAM,CACxB,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACjE,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;aACxC;SACF;QACD,OAAO,EAAE,KAAK;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import { type Config } from "
|
|
2
|
+
import { type Config } from "../../../../config.js";
|
|
3
3
|
export declare function searchItems(conf: Config, options: {
|
|
4
4
|
term: string;
|
|
5
5
|
fields?: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {} from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import {} from "
|
|
3
|
-
import RestfulItemServiceClient from "
|
|
2
|
+
import {} from "../../../../config.js";
|
|
3
|
+
import RestfulItemServiceClient from "../../client.js";
|
|
4
4
|
export async function searchItems(conf, options) {
|
|
5
5
|
const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
|
|
6
6
|
const response = await client.searchItems(options);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-items.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/logic/simple/search-items.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,aAAa,CAAC;AAC1C,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,IAAY,EACZ,OAQC;IAED,MAAM,MAAM,GAAG,IAAI,wBAAwB,CACzC,IAAI,CAAC,WAAW,CAAC,SAAS,EAC1B,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EACzB,IAAI,CAAC,WAAW,CAAC,MAAM,CACxB,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;aACxC;SACF;QACD,OAAO,EAAE,KAAK;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { getItemDescendants } from "../../composite/get-item-descendants.js";
|
|
3
|
+
import { getItemDescendants } from "../../logic/composite/get-item-descendants.js";
|
|
4
4
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
5
5
|
export function getItemDescendantsTool(server, config) {
|
|
6
6
|
server.tool('item-service-get-item-descendants', "Get descendants of a Sitecore item by its ID.", {
|
|
@@ -17,4 +17,4 @@ export function getItemDescendantsTool(server, config) {
|
|
|
17
17
|
return safeMcpResponse(getItemDescendants(config, params.id, params.options || {}));
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
//# sourceMappingURL=get-item-descendants.
|
|
20
|
+
//# sourceMappingURL=get-item-descendants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-item-descendants.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/tools/composite/get-item-descendants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,sBAAsB,CAAC,MAAiB,EAAE,MAAc;IACpE,MAAM,CAAC,IAAI,CACP,mCAAmC,EACnC,+CAA+C,EAC/C;QACI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC9B,6BAA6B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YACrD,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YACvC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SACzC,CAAC,CAAC,QAAQ,EAAE;KAChB,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,OAAO,eAAe,CAAC,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IACxF,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { getLanguages } from "../../composite/get-languages.js";
|
|
3
|
+
import { getLanguages } from "../../logic/composite/get-languages.js";
|
|
4
4
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
5
5
|
export function getLanguagesTool(server, config) {
|
|
6
6
|
server.tool('item-service-get-languages', "Get Sitecore languages.", {}, async () => {
|
|
7
7
|
return safeMcpResponse(getLanguages(config));
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=get-languages.
|
|
10
|
+
//# sourceMappingURL=get-languages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-languages.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/tools/composite/get-languages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,gBAAgB,CAAC,MAAiB,EAAE,MAAc;IAC9D,MAAM,CAAC,IAAI,CACP,4BAA4B,EAC5B,yBAAyB,EACzB,EAAE,EACF,KAAK,IAAI,EAAE;QACP,OAAO,eAAe,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IACjD,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { createItem } from "../../simple/create-item.js";
|
|
3
|
+
import { createItem } from "../../logic/simple/create-item.js";
|
|
4
4
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
5
5
|
export function createItemTool(server, config) {
|
|
6
6
|
server.tool('item-service-create-item', "Create a new Sitecore item under parent path with name using template id.", {
|
|
@@ -16,4 +16,4 @@ export function createItemTool(server, config) {
|
|
|
16
16
|
return safeMcpResponse(createItem(config, params.parentPath, { ItemName: params.itemName, TemplateID: params.templateId, ...params.data }, params.options || {}));
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
//# sourceMappingURL=create-item.
|
|
19
|
+
//# sourceMappingURL=create-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-item.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/tools/simple/create-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,cAAc,CAAC,MAAiB,EAAE,MAAc;IAC5D,MAAM,CAAC,IAAI,CACP,0BAA0B,EAC1B,2EAA2E,EAC3E;QACI,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;QACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,IAAI,EACA,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC/C,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAClC,CAAC,CAAC,QAAQ,EAAE;KAChB,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,OAAO,eAAe,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IACtK,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { deleteItem } from "../../simple/delete-item.js";
|
|
3
|
+
import { deleteItem } from "../../logic/simple/delete-item.js";
|
|
4
4
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
5
5
|
export function deleteItemTool(server, config) {
|
|
6
6
|
server.tool('item-service-delete-item', "Delete a Sitecore item by its ID.", {
|
|
@@ -14,4 +14,4 @@ export function deleteItemTool(server, config) {
|
|
|
14
14
|
return safeMcpResponse(deleteItem(config, params.id, params.options || {}));
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
//# sourceMappingURL=delete-item.
|
|
17
|
+
//# sourceMappingURL=delete-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-item.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/tools/simple/delete-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,cAAc,CAAC,MAAiB,EAAE,MAAc;IAC5D,MAAM,CAAC,IAAI,CACP,0BAA0B,EAC1B,mCAAmC,EACnC;QACI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACjC,CAAC,CAAC,QAAQ,EAAE;KAChB,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,OAAO,eAAe,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IAChF,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { editItem } from "../../simple/edit-item.js";
|
|
3
|
+
import { editItem } from "../../logic/simple/edit-item.js";
|
|
4
4
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
5
5
|
export function editItemTool(server, config) {
|
|
6
6
|
server.tool('item-service-edit-item', "Edit a Sitecore item by its ID.", {
|
|
@@ -15,4 +15,4 @@ export function editItemTool(server, config) {
|
|
|
15
15
|
return safeMcpResponse(editItem(config, params.id, params.data, params.options || {}));
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=edit-item.
|
|
18
|
+
//# sourceMappingURL=edit-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-item.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/tools/simple/edit-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,YAAY,CAAC,MAAiB,EAAE,MAAc;IAC1D,MAAM,CAAC,IAAI,CACP,wBAAwB,EACxB,iCAAiC,EACjC;QACI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,IAAI,EACA,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QACpC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACjC,CAAC,CAAC,QAAQ,EAAE;KAChB,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,OAAO,eAAe,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IAC3F,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { getItemByPath } from "../../simple/get-item-by-path.js";
|
|
3
|
+
import { getItemByPath } from "../../logic/simple/get-item-by-path.js";
|
|
4
4
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
5
5
|
export function getItemByPathTool(server, config) {
|
|
6
6
|
server.tool('item-service-get-item-by-path', "Get a Sitecore item by its path.", {
|
|
@@ -17,4 +17,4 @@ export function getItemByPathTool(server, config) {
|
|
|
17
17
|
return safeMcpResponse(getItemByPath(config, params.path, params.options || {}));
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
//# sourceMappingURL=get-item-by-path.
|
|
20
|
+
//# sourceMappingURL=get-item-by-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-item-by-path.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/tools/simple/get-item-by-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,iBAAiB,CAAC,MAAiB,EAAE,MAAc;IAC/D,MAAM,CAAC,IAAI,CACP,+BAA+B,EAC/B,kCAAkC,EAClC;QACI,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC9B,6BAA6B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YACrD,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YACvC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SACzC,CAAC,CAAC,QAAQ,EAAE;KAChB,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,OAAO,eAAe,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IACrF,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { getItemChildren } from "../../simple/get-item-children.js";
|
|
3
|
+
import { getItemChildren } from "../../logic/simple/get-item-children.js";
|
|
4
4
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
5
5
|
export function getItemChildrenTool(server, config) {
|
|
6
6
|
server.tool('item-service-get-item-children', "Get children of a Sitecore item by its ID.", {
|
|
@@ -17,4 +17,4 @@ export function getItemChildrenTool(server, config) {
|
|
|
17
17
|
return safeMcpResponse(getItemChildren(config, params.id, params.options || {}));
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
//# sourceMappingURL=get-item-children.
|
|
20
|
+
//# sourceMappingURL=get-item-children.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-item-children.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/tools/simple/get-item-children.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,mBAAmB,CAAC,MAAiB,EAAE,MAAc;IACjE,MAAM,CAAC,IAAI,CACP,gCAAgC,EAChC,4CAA4C,EAC5C;QACI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC9B,6BAA6B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YACrD,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YACvC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SACzC,CAAC,CAAC,QAAQ,EAAE;KAChB,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,OAAO,eAAe,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IACrF,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { getItemById } from "../../simple/get-item.js";
|
|
3
|
+
import { getItemById } from "../../logic/simple/get-item.js";
|
|
4
4
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
5
5
|
export function getItemTool(server, config) {
|
|
6
6
|
server.tool('item-service-get-item', "Get a Sitecore item by its ID.", {
|
|
@@ -17,4 +17,4 @@ export function getItemTool(server, config) {
|
|
|
17
17
|
return safeMcpResponse(getItemById(config, params.id, params.options || {}));
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
//# sourceMappingURL=get-item.
|
|
20
|
+
//# sourceMappingURL=get-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-item.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/tools/simple/get-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,WAAW,CAAC,MAAiB,EAAE,MAAc;IACzD,MAAM,CAAC,IAAI,CACP,uBAAuB,EACvB,gCAAgC,EAChC;QACI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC9B,6BAA6B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YACrD,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YACvC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SACzC,CAAC,CAAC,QAAQ,EAAE;KAChB,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,OAAO,eAAe,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IACjF,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { runStoredQuery } from "../../simple/run-stored-query.js";
|
|
3
|
+
import { runStoredQuery } from "../../logic/simple/run-stored-query.js";
|
|
4
4
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
5
5
|
export function runStoredQueryTool(server, config) {
|
|
6
6
|
server.tool('item-service-run-stored-query', "Run a stored Sitecore query by its definition item ID.", {
|
|
@@ -17,4 +17,4 @@ export function runStoredQueryTool(server, config) {
|
|
|
17
17
|
return safeMcpResponse(runStoredQuery(config, params.id, params.options || {}));
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
//# sourceMappingURL=run-stored-query.
|
|
20
|
+
//# sourceMappingURL=run-stored-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-stored-query.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/tools/simple/run-stored-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,kBAAkB,CAAC,MAAiB,EAAE,MAAc;IAChE,MAAM,CAAC,IAAI,CACP,+BAA+B,EAC/B,wDAAwD,EACxD;QACI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;YACtC,6BAA6B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;SACxD,CAAC,CAAC,QAAQ,EAAE;KAChB,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,OAAO,eAAe,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IACpF,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { runStoredSearch } from "../../simple/run-stored-search.js";
|
|
3
|
+
import { runStoredSearch } from "../../logic/simple/run-stored-search.js";
|
|
4
4
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
5
5
|
export function runStoredSearchTool(server, config) {
|
|
6
6
|
server.tool('item-service-run-stored-search', "Run a stored Sitecore search by its definition item ID.", {
|
|
@@ -20,4 +20,4 @@ export function runStoredSearchTool(server, config) {
|
|
|
20
20
|
return safeMcpResponse(runStoredSearch(config, params.id, params.term, params.options || {}));
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
//# sourceMappingURL=run-stored-search.
|
|
23
|
+
//# sourceMappingURL=run-stored-search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-stored-search.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/tools/simple/run-stored-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,mBAAmB,CAAC,MAAiB,EAAE,MAAc;IACjE,MAAM,CAAC,IAAI,CACP,gCAAgC,EAChC,yDAAyD,EACzD;QACI,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,6BAA6B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YACrD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;YACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC5B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACjC,CAAC,CAAC,QAAQ,EAAE;KAChB,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,OAAO,eAAe,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;IAClG,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { searchItems } from "../../simple/search-items.js";
|
|
3
|
+
import { searchItems } from "../../logic/simple/search-items.js";
|
|
4
4
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
5
5
|
export function searchItemsTool(server, config) {
|
|
6
6
|
server.tool('item-service-search-items', "Search Sitecore items using the ItemService RESTful API.", {
|
|
@@ -15,4 +15,4 @@ export function searchItemsTool(server, config) {
|
|
|
15
15
|
return safeMcpResponse(searchItems(config, params));
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=search-items.
|
|
18
|
+
//# sourceMappingURL=search-items.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-items.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/tools/simple/search-items.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,UAAU,eAAe,CAAC,MAAiB,EAAE,MAAc;IAC7D,MAAM,CAAC,IAAI,CACP,2BAA2B,EAC3B,0DAA0D,EAC1D;QACI,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,6BAA6B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACxD,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,OAAO,eAAe,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACxD,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { safeMcpResponse } from "../../../../helper.js";
|
|
3
|
+
import { runGenericPowershellCommand } from "../generic.js";
|
|
4
|
+
export function resumeSearchIndexPowerShellTool(server, config) {
|
|
5
|
+
server.tool("indexing-resume-search-index", "Resume one or more Sitecore search indexes. If no name is provided, all paused indexes will be resumed.", {
|
|
6
|
+
name: z.string().optional().describe("The name of the index to resume. If not provided, all paused indexes will be resumed."),
|
|
7
|
+
}, async (params) => {
|
|
8
|
+
const command = `Resume-SearchIndex`;
|
|
9
|
+
const options = {};
|
|
10
|
+
if (params.name) {
|
|
11
|
+
options["Name"] = params.name;
|
|
12
|
+
}
|
|
13
|
+
return safeMcpResponse(runGenericPowershellCommand(config, command, options));
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=resume-search-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resume-search-index.js","sourceRoot":"","sources":["../../../../../src/tools/powershell/simple/indexing/resume-search-index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,UAAU,+BAA+B,CAAC,MAAiB,EAAE,MAAc;IAC7E,MAAM,CAAC,IAAI,CACP,8BAA8B,EAC9B,yGAAyG,EACzG;QACI,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uFAAuF,CAAC;KAChI,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,MAAM,OAAO,GAAG,oBAAoB,CAAC;QACrC,MAAM,OAAO,GAAwB,EAAE,CAAC;QAExC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YACd,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC;QAClC,CAAC;QAED,OAAO,eAAe,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAClF,CAAC,CACJ,CAAC;AACN,CAAC"}
|
package/dist/tools/powershell/simple/{security/lock-item.d.ts → indexing/stop-search-index.d.ts}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp";
|
|
2
2
|
import type { Config } from "../../../../config.js";
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function stopSearchIndexPowerShellTool(server: McpServer, config: Config): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { safeMcpResponse } from "../../../../helper.js";
|
|
3
|
+
import { runGenericPowershellCommand } from "../generic.js";
|
|
4
|
+
export function stopSearchIndexPowerShellTool(server, config) {
|
|
5
|
+
server.tool("indexing-stop-search-index", "Stop one or more Sitecore search indexes. If no name is provided, all running indexes will be stopped.", {
|
|
6
|
+
name: z.string().optional().describe("The name of the index to stop. If not provided, all running indexes will be stopped."),
|
|
7
|
+
}, async (params) => {
|
|
8
|
+
const command = `Stop-SearchIndex`;
|
|
9
|
+
const options = {};
|
|
10
|
+
if (params.name) {
|
|
11
|
+
options["Name"] = params.name;
|
|
12
|
+
}
|
|
13
|
+
return safeMcpResponse(runGenericPowershellCommand(config, command, options));
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=stop-search-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stop-search-index.js","sourceRoot":"","sources":["../../../../../src/tools/powershell/simple/indexing/stop-search-index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,UAAU,6BAA6B,CAAC,MAAiB,EAAE,MAAc;IAC3E,MAAM,CAAC,IAAI,CACP,4BAA4B,EAC5B,wGAAwG,EACxG;QACI,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sFAAsF,CAAC;KAC/H,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,MAAM,OAAO,GAAG,kBAAkB,CAAC;QACnC,MAAM,OAAO,GAAwB,EAAE,CAAC;QAExC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YACd,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC;QAClC,CAAC;QAED,OAAO,eAAe,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAClF,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { safeMcpResponse } from "../../../../helper.js";
|
|
3
|
+
import { runGenericPowershellCommand } from "../generic.js";
|
|
4
|
+
export function suspendSearchIndexPowerShellTool(server, config) {
|
|
5
|
+
server.tool("indexing-suspend-search-index", "Suspend one or more Sitecore search indexes. If no name is provided, all running indexes will be suspended.", {
|
|
6
|
+
name: z.string().optional().describe("The name of the index to suspend. If not provided, all running indexes will be suspended."),
|
|
7
|
+
}, async (params) => {
|
|
8
|
+
const command = `Suspend-SearchIndex`;
|
|
9
|
+
const options = {};
|
|
10
|
+
if (params.name) {
|
|
11
|
+
options["Name"] = params.name;
|
|
12
|
+
}
|
|
13
|
+
return safeMcpResponse(runGenericPowershellCommand(config, command, options));
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=suspend-search-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suspend-search-index.js","sourceRoot":"","sources":["../../../../../src/tools/powershell/simple/indexing/suspend-search-index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,UAAU,gCAAgC,CAAC,MAAiB,EAAE,MAAc;IAC9E,MAAM,CAAC,IAAI,CACP,+BAA+B,EAC/B,6GAA6G,EAC7G;QACI,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2FAA2F,CAAC;KACpI,EACD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,MAAM,OAAO,GAAG,qBAAqB,CAAC;QACtC,MAAM,OAAO,GAAwB,EAAE,CAAC;QAExC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YACd,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC;QAClC,CAAC;QAED,OAAO,eAAe,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAClF,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp";
|
|
2
2
|
import type { Config } from "../../../../config.js";
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function getAllDomainsPowerShellTool(server: McpServer, config: Config): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { safeMcpResponse } from "../../../../helper.js";
|
|
2
|
+
import { runGenericPowershellCommand } from "../generic.js";
|
|
3
|
+
export function getAllDomainsPowerShellTool(server, config) {
|
|
4
|
+
server.tool("security-get-domain", "Get all Sitecore domains.", {}, async () => {
|
|
5
|
+
const command = `Get-Domain`;
|
|
6
|
+
const options = {};
|
|
7
|
+
return safeMcpResponse(runGenericPowershellCommand(config, command, options));
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=get-all-domains.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-all-domains.js","sourceRoot":"","sources":["../../../../../src/tools/powershell/simple/security/get-all-domains.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,UAAU,2BAA2B,CAAC,MAAiB,EAAE,MAAc;IACzE,MAAM,CAAC,IAAI,CACP,qBAAqB,EACrB,2BAA2B,EAC3B,EAAE,EACF,KAAK,IAAI,EAAE;QACP,MAAM,OAAO,GAAG,YAAY,CAAC;QAC7B,MAAM,OAAO,GAAwB,EAAE,CAAC;QACxC,OAAO,eAAe,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAClF,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp";
|
|
2
2
|
import type { Config } from "../../../../config.js";
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function getCurrentUserPowerShellTool(server: McpServer, config: Config): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { safeMcpResponse } from "../../../../helper.js";
|
|
2
|
+
import { runGenericPowershellCommand } from "../generic.js";
|
|
3
|
+
export function getCurrentUserPowerShellTool(server, config) {
|
|
4
|
+
server.tool("security-get-current-user", "Get the current Sitecore user.", {}, async () => {
|
|
5
|
+
const command = `Get-User`;
|
|
6
|
+
const options = {
|
|
7
|
+
"Current": "",
|
|
8
|
+
};
|
|
9
|
+
return safeMcpResponse(runGenericPowershellCommand(config, command, options));
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=get-current-user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-current-user.js","sourceRoot":"","sources":["../../../../../src/tools/powershell/simple/security/get-current-user.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,UAAU,4BAA4B,CAAC,MAAiB,EAAE,MAAc;IAC1E,MAAM,CAAC,IAAI,CACP,2BAA2B,EAC3B,gCAAgC,EAChC,EAAE,EACF,KAAK,IAAI,EAAE;QACP,MAAM,OAAO,GAAG,UAAU,CAAC;QAC3B,MAAM,OAAO,GAAuB;YAChC,SAAS,EAAE,EAAE;SAChB,CAAC;QACF,OAAO,eAAe,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAClF,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { safeMcpResponse } from "../../../../helper.js";
|
|
3
3
|
import { runGenericPowershellCommand } from "../generic.js";
|
|
4
|
-
export function
|
|
4
|
+
export function getDomainByNamePowerShellTool(server, config) {
|
|
5
5
|
server.tool("security-get-domain-by-name", "Get a Sitecore domain by its name.", {
|
|
6
6
|
name: z.string(),
|
|
7
7
|
}, async (params) => {
|
|
@@ -11,10 +11,5 @@ export function getDomainPowerShellTool(server, config) {
|
|
|
11
11
|
};
|
|
12
12
|
return safeMcpResponse(runGenericPowershellCommand(config, command, options));
|
|
13
13
|
});
|
|
14
|
-
server.tool("security-get-domain", "Get all Sitecore domains.", {}, async () => {
|
|
15
|
-
const command = `Get-Domain`;
|
|
16
|
-
const options = {};
|
|
17
|
-
return safeMcpResponse(runGenericPowershellCommand(config, command, options));
|
|
18
|
-
});
|
|
19
14
|
}
|
|
20
|
-
//# sourceMappingURL=get-domain.js.map
|
|
15
|
+
//# sourceMappingURL=get-domain-by-name.js.map
|