@antonytm/mcp-sitecore-server 0.10.6 → 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 +8 -1
- package/dist/bundle.js +358 -201
- package/dist/register.js +62 -32
- 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/client.js +1 -1
- package/dist/tools/powershell/client.js.map +1 -1
- package/dist/tools/powershell/composite/indexing/initialialize-search-indexing-item-by-id.d.ts +3 -0
- package/dist/tools/powershell/composite/indexing/initialialize-search-indexing-item-by-id.js +24 -0
- package/dist/tools/powershell/composite/indexing/initialialize-search-indexing-item-by-id.js.map +1 -0
- package/dist/tools/powershell/composite/indexing/initialialize-search-indexing-item-by-path.d.ts +3 -0
- package/dist/tools/powershell/composite/indexing/initialialize-search-indexing-item-by-path.js +21 -0
- package/dist/tools/powershell/composite/indexing/initialialize-search-indexing-item-by-path.js.map +1 -0
- package/dist/tools/powershell/composite/indexing/remove-search-index-item-by-id.d.ts +3 -0
- package/dist/tools/powershell/composite/indexing/remove-search-index-item-by-id.js +24 -0
- package/dist/tools/powershell/composite/indexing/remove-search-index-item-by-id.js.map +1 -0
- package/dist/tools/powershell/composite/indexing/remove-search-index-item-by-path.d.ts +3 -0
- package/dist/tools/powershell/composite/indexing/remove-search-index-item-by-path.js +21 -0
- package/dist/tools/powershell/composite/indexing/remove-search-index-item-by-path.js.map +1 -0
- package/dist/tools/powershell/{simple/security/get-domain.d.ts → composite/security/set-item-acl-by-id.d.ts} +1 -1
- package/dist/tools/powershell/composite/security/set-item-acl-by-id.js +35 -0
- package/dist/tools/powershell/composite/security/set-item-acl-by-id.js.map +1 -0
- package/dist/tools/powershell/composite/security/set-item-acl-by-path.d.ts +3 -0
- package/dist/tools/powershell/composite/security/set-item-acl-by-path.js +32 -0
- package/dist/tools/powershell/composite/security/set-item-acl-by-path.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/indexing/stop-search-index.d.ts +3 -0
- 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/{composite/security/set-item-acl.d.ts → simple/security/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/composite/security/set-item-acl.js +0 -59
- package/dist/tools/powershell/composite/security/set-item-acl.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.d.ts +0 -3
- 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
package/dist/register.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { registerGraphQL } from "./tools/graphql/register-graphql.js";
|
|
2
|
-
import { getItemTool } from "./tools/item-service/
|
|
3
|
-
import { getItemChildrenTool } from "./tools/item-service/
|
|
4
|
-
import { getItemByPathTool } from "./tools/item-service/
|
|
5
|
-
import { createItemTool } from "./tools/item-service/
|
|
6
|
-
import { editItemTool } from "./tools/item-service/
|
|
7
|
-
import { deleteItemTool } from "./tools/item-service/
|
|
8
|
-
import { searchItemsTool } from "./tools/item-service/
|
|
9
|
-
import { runStoredQueryTool } from "./tools/item-service/
|
|
10
|
-
import { runStoredSearchTool } from "./tools/item-service/
|
|
11
|
-
import { getItemDescendantsTool } from "./tools/item-service/
|
|
12
|
-
import { getLanguagesTool } from "./tools/item-service/
|
|
13
|
-
import {
|
|
2
|
+
import { getItemTool } from "./tools/item-service/tools/simple/get-item.js";
|
|
3
|
+
import { getItemChildrenTool } from "./tools/item-service/tools/simple/get-item-children.js";
|
|
4
|
+
import { getItemByPathTool } from "./tools/item-service/tools/simple/get-item-by-path.js";
|
|
5
|
+
import { createItemTool } from "./tools/item-service/tools/simple/create-item.js";
|
|
6
|
+
import { editItemTool } from "./tools/item-service/tools/simple/edit-item.js";
|
|
7
|
+
import { deleteItemTool } from "./tools/item-service/tools/simple/delete-item.js";
|
|
8
|
+
import { searchItemsTool } from "./tools/item-service/tools/simple/search-items.js";
|
|
9
|
+
import { runStoredQueryTool } from "./tools/item-service/tools/simple/run-stored-query.js";
|
|
10
|
+
import { runStoredSearchTool } from "./tools/item-service/tools/simple/run-stored-search.js";
|
|
11
|
+
import { getItemDescendantsTool } from "./tools/item-service/tools/composite/get-item-descendants.js";
|
|
12
|
+
import { getLanguagesTool } from "./tools/item-service/tools/composite/get-languages.js";
|
|
13
|
+
import { getUserByIdentityPowerShellTool } from "./tools/powershell/simple/security/get-user-by-identity.js";
|
|
14
|
+
import { getCurrentUserPowerShellTool } from "./tools/powershell/simple/security/get-current-user.js";
|
|
15
|
+
import { getUserByFilterPowerShellTool } from "./tools/powershell/simple/security/get-user-by-filter.js";
|
|
14
16
|
import { newUserPowerShellTool } from "./tools/powershell/simple/security/new-user.js";
|
|
15
17
|
import { removeUserPowerShellTool } from "./tools/powershell/simple/security/remove-user.js";
|
|
16
18
|
import { disableUserPowerShellTool } from "./tools/powershell/simple/security/disable-user.js";
|
|
@@ -18,15 +20,14 @@ import { enableUserPowerShellTool } from "./tools/powershell/simple/security/ena
|
|
|
18
20
|
import { unlockUserPowerShellTool } from "./tools/powershell/simple/security/unlock-user.js";
|
|
19
21
|
import { setUserPowerShellTool } from "./tools/powershell/simple/security/set-user.js";
|
|
20
22
|
import { setUserPasswordPowerShellTool } from "./tools/powershell/simple/security/set-user-password.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
+
import { getRoleByIdentityPowerShellTool } from "./tools/powershell/simple/security/get-role-by-identity.js";
|
|
24
|
+
import { getRoleByFilterPowerShellTool } from "./tools/powershell/simple/security/get-role-by-filter.js";
|
|
23
25
|
import { getRoleMemberPowerShellTool } from "./tools/powershell/simple/security/get-role-member.js";
|
|
24
26
|
import { addRoleMemberPowerShellTool } from "./tools/powershell/simple/security/add-role-member.js";
|
|
25
27
|
import { removeRoleMemberPowerShellTool } from "./tools/powershell/simple/security/remove-role-member.js";
|
|
26
|
-
import { lockItemPowerShellTool } from "./tools/powershell/simple/security/lock-item.js";
|
|
27
28
|
import { unlockItemPowerShellTool } from "./tools/powershell/simple/security/unlock-item.js";
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
29
|
+
import { protectItemByPathPowerShellTool } from "./tools/powershell/simple/security/protect-item-by-path.js";
|
|
30
|
+
import { protectItemByIdPowerShellTool } from "./tools/powershell/simple/security/protect-item-by-id.js";
|
|
30
31
|
import { newRolePowerShellTool } from "./tools/powershell/simple/security/new-role.js";
|
|
31
32
|
import { removeRolePowerShellTool } from "./tools/powershell/simple/security/remove-role.js";
|
|
32
33
|
import { newDomainPowerShellTool } from "./tools/powershell/simple/security/new-domain.js";
|
|
@@ -37,10 +38,24 @@ import { testItemAclPowerShellTool } from "./tools/powershell/simple/security/te
|
|
|
37
38
|
import { addItemAclPowerShellTool } from "./tools/powershell/simple/security/add-item-acl.js";
|
|
38
39
|
import { clearItemAclPowerShellTool } from "./tools/powershell/simple/security/clear-item-acl.js";
|
|
39
40
|
import { getItemPowerShellTool } from "./tools/powershell/simple/provider/get-item.js";
|
|
40
|
-
import { setItemAclPowerShellTool } from "./tools/powershell/composite/security/set-item-acl.js";
|
|
41
41
|
import { initializeSearchIndexPowerShellTool } from "./tools/powershell/simple/indexing/initialize-search-index.js";
|
|
42
42
|
import { getSearchIndexPowerShellTool } from "./tools/powershell/simple/indexing/get-search-index.js";
|
|
43
43
|
import { findItemPowerShellTool } from "./tools/powershell/simple/indexing/find-item.js";
|
|
44
|
+
import { resumeSearchIndexPowerShellTool } from "./tools/powershell/simple/indexing/resume-search-index.js";
|
|
45
|
+
import { suspendSearchIndexPowerShellTool } from "./tools/powershell/simple/indexing/suspend-search-index.js";
|
|
46
|
+
import { stopSearchIndexPowerShellTool } from "./tools/powershell/simple/indexing/stop-search-index.js";
|
|
47
|
+
import { setItemAclByIdPowerShellTool } from "./tools/powershell/composite/security/set-item-acl-by-id.js";
|
|
48
|
+
import { setItemAclByPathPowerShellTool } from "./tools/powershell/composite/security/set-item-acl-by-path.js";
|
|
49
|
+
import { initializeSearchIndexingItemByIdPowerShellTool } from "./tools/powershell/composite/indexing/initialialize-search-indexing-item-by-id.js";
|
|
50
|
+
import { initializeSearchIndexingItemByPathPowerShellTool } from "./tools/powershell/composite/indexing/initialialize-search-indexing-item-by-path.js";
|
|
51
|
+
import { removeSearchIndexItemByIdPowerShellTool } from "./tools/powershell/composite/indexing/remove-search-index-item-by-id.js";
|
|
52
|
+
import { removeSearchIndexItemByPathPowerShellTool } from "./tools/powershell/composite/indexing/remove-search-index-item-by-path.js";
|
|
53
|
+
import { lockItemByIdPowerShellTool } from "./tools/powershell/simple/security/lock-item-by-id.js";
|
|
54
|
+
import { lockItemByPathPowerShellTool } from "./tools/powershell/simple/security/lock-item-by-path.js";
|
|
55
|
+
import { unprotectItemByIdPowerShellTool } from "./tools/powershell/simple/security/unprotect-item-by-id.js";
|
|
56
|
+
import { unprotectItemByPathPowerShellTool } from "./tools/powershell/simple/security/unprotect-item-by-path.js";
|
|
57
|
+
import { getDomainByNamePowerShellTool } from "./tools/powershell/simple/security/get-domain-by-name.js";
|
|
58
|
+
import { getAllDomainsPowerShellTool } from "./tools/powershell/simple/security/get-all-domains.js";
|
|
44
59
|
export async function register(array, server, config) {
|
|
45
60
|
for (const register of array) {
|
|
46
61
|
await register(server, config);
|
|
@@ -48,7 +63,8 @@ export async function register(array, server, config) {
|
|
|
48
63
|
}
|
|
49
64
|
export async function registerAll(server, config) {
|
|
50
65
|
await register([
|
|
51
|
-
registerGraphQL,
|
|
66
|
+
registerGraphQL,
|
|
67
|
+
//Item Service
|
|
52
68
|
//Simple Item Service Tools
|
|
53
69
|
getItemTool,
|
|
54
70
|
getItemChildrenTool,
|
|
@@ -61,10 +77,13 @@ export async function registerAll(server, config) {
|
|
|
61
77
|
runStoredSearchTool,
|
|
62
78
|
//Composite Item Service Tools
|
|
63
79
|
getItemDescendantsTool,
|
|
64
|
-
getLanguagesTool,
|
|
80
|
+
getLanguagesTool,
|
|
81
|
+
//PowerShell tools
|
|
65
82
|
//Security
|
|
66
83
|
//Simple Security PowerShell Tools
|
|
67
|
-
|
|
84
|
+
getUserByIdentityPowerShellTool,
|
|
85
|
+
getCurrentUserPowerShellTool,
|
|
86
|
+
getUserByFilterPowerShellTool,
|
|
68
87
|
newUserPowerShellTool,
|
|
69
88
|
removeUserPowerShellTool,
|
|
70
89
|
disableUserPowerShellTool,
|
|
@@ -72,15 +91,20 @@ export async function registerAll(server, config) {
|
|
|
72
91
|
unlockUserPowerShellTool,
|
|
73
92
|
setUserPowerShellTool,
|
|
74
93
|
setUserPasswordPowerShellTool,
|
|
75
|
-
|
|
76
|
-
|
|
94
|
+
getDomainByNamePowerShellTool,
|
|
95
|
+
getAllDomainsPowerShellTool,
|
|
96
|
+
getRoleByIdentityPowerShellTool,
|
|
97
|
+
getRoleByFilterPowerShellTool,
|
|
77
98
|
getRoleMemberPowerShellTool,
|
|
78
99
|
addRoleMemberPowerShellTool,
|
|
79
100
|
removeRoleMemberPowerShellTool,
|
|
80
|
-
|
|
101
|
+
lockItemByIdPowerShellTool,
|
|
102
|
+
lockItemByPathPowerShellTool,
|
|
81
103
|
unlockItemPowerShellTool,
|
|
82
|
-
|
|
83
|
-
|
|
104
|
+
protectItemByPathPowerShellTool,
|
|
105
|
+
protectItemByIdPowerShellTool,
|
|
106
|
+
unprotectItemByIdPowerShellTool,
|
|
107
|
+
unprotectItemByPathPowerShellTool,
|
|
84
108
|
newRolePowerShellTool,
|
|
85
109
|
removeRolePowerShellTool,
|
|
86
110
|
newDomainPowerShellTool,
|
|
@@ -91,13 +115,19 @@ export async function registerAll(server, config) {
|
|
|
91
115
|
addItemAclPowerShellTool,
|
|
92
116
|
clearItemAclPowerShellTool,
|
|
93
117
|
//Composite Security PowerShell Tools
|
|
94
|
-
|
|
118
|
+
setItemAclByIdPowerShellTool,
|
|
119
|
+
setItemAclByPathPowerShellTool,
|
|
95
120
|
//Provider
|
|
96
|
-
getItemPowerShellTool,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
121
|
+
getItemPowerShellTool, //Indexing PowerShell Tools
|
|
122
|
+
initializeSearchIndexPowerShellTool, getSearchIndexPowerShellTool, findItemPowerShellTool,
|
|
123
|
+
resumeSearchIndexPowerShellTool,
|
|
124
|
+
suspendSearchIndexPowerShellTool,
|
|
125
|
+
stopSearchIndexPowerShellTool,
|
|
126
|
+
//Composite Indexing PowerShell Tools
|
|
127
|
+
initializeSearchIndexingItemByIdPowerShellTool,
|
|
128
|
+
initializeSearchIndexingItemByPathPowerShellTool,
|
|
129
|
+
removeSearchIndexItemByIdPowerShellTool,
|
|
130
|
+
removeSearchIndexItemByPathPowerShellTool,
|
|
101
131
|
], server, config);
|
|
102
132
|
}
|
|
103
133
|
//# sourceMappingURL=register.js.map
|
package/dist/register.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"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"}
|
|
@@ -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 getItemDescendants(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 getItemDescendants(conf, id, options) {
|
|
5
5
|
const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
|
|
6
6
|
const responseArray = [];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-item-descendants.js","sourceRoot":"","sources":["../../../../../src/tools/item-service/logic/composite/get-item-descendants.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,kBAAkB,CAAC,IAAY,EACjD,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,aAAa,GAAG,EAAE,CAAC;IACzB,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;IAEjC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEf,OAAM,MAAM,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;QACpB,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC;QACvD,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC3B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,WAAW,EAAE,OAAO,CAAQ,CAAC;QAE3E,IAAI,QAAQ,EAAE,CAAC;YACX,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE,CAAC;gBAC3B,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAC7B,CAAC;YACD,aAAa,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;QACpC,CAAC;IACL,CAAC;IAED,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;aAC/C;SACJ;QACD,OAAO,EAAE,KAAK;KACjB,CAAA;AACL,CAAC"}
|
|
@@ -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 getLanguages(conf) {
|
|
5
5
|
const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
|
|
6
6
|
const languagesItemResponse = await client.getItemByPath("/sitecore/system/Languages");
|
|
@@ -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"}
|