@antonytm/mcp-sitecore-server 0.8.3-bundle → 0.9.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.
Files changed (150) hide show
  1. package/README.md +1 -0
  2. package/dist/app.js +3 -0
  3. package/dist/app.js.map +1 -0
  4. package/dist/config.d.ts +2 -2
  5. package/dist/config.js +66 -0
  6. package/dist/config.js.map +1 -0
  7. package/dist/const.js +2 -0
  8. package/dist/const.js.map +1 -0
  9. package/dist/helper.js +19 -0
  10. package/dist/helper.js.map +1 -0
  11. package/dist/index.js +17 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/run.js +7 -0
  14. package/dist/run.js.map +1 -0
  15. package/dist/server.d.ts +1 -1
  16. package/dist/server.js +67 -0
  17. package/dist/server.js.map +1 -0
  18. package/dist/sse.d.ts +1 -1
  19. package/dist/sse.js +31 -0
  20. package/dist/sse.js.map +1 -0
  21. package/dist/stdio.js +8 -0
  22. package/dist/stdio.js.map +1 -0
  23. package/dist/streamable-http.d.ts +1 -0
  24. package/dist/streamable-http.js +69 -0
  25. package/dist/streamable-http.js.map +1 -0
  26. package/dist/tools/graphql/generic/introspection.js +34 -0
  27. package/dist/tools/graphql/generic/introspection.js.map +1 -0
  28. package/dist/tools/graphql/generic/query.js +37 -0
  29. package/dist/tools/graphql/generic/query.js.map +1 -0
  30. package/dist/tools/graphql/register-graphql.js +24 -0
  31. package/dist/tools/graphql/register-graphql.js.map +1 -0
  32. package/dist/tools/item-service/client.js +428 -0
  33. package/dist/tools/item-service/client.js.map +1 -0
  34. package/dist/tools/item-service/composite/get-item-descendants.js +30 -0
  35. package/dist/tools/item-service/composite/get-item-descendants.js.map +1 -0
  36. package/dist/tools/item-service/composite/get-languages.js +19 -0
  37. package/dist/tools/item-service/composite/get-languages.js.map +1 -0
  38. package/dist/tools/item-service/register-item-service.js +156 -0
  39. package/dist/tools/item-service/register-item-service.js.map +1 -0
  40. package/dist/tools/item-service/simple/create-item.js +17 -0
  41. package/dist/tools/item-service/simple/create-item.js.map +1 -0
  42. package/dist/tools/item-service/simple/delete-item.js +23 -0
  43. package/dist/tools/item-service/simple/delete-item.js.map +1 -0
  44. package/dist/tools/item-service/simple/edit-item.js +23 -0
  45. package/dist/tools/item-service/simple/edit-item.js.map +1 -0
  46. package/dist/tools/item-service/simple/get-item-by-path.js +17 -0
  47. package/dist/tools/item-service/simple/get-item-by-path.js.map +1 -0
  48. package/dist/tools/item-service/simple/get-item-children.js +17 -0
  49. package/dist/tools/item-service/simple/get-item-children.js.map +1 -0
  50. package/dist/tools/item-service/simple/get-item.js +18 -0
  51. package/dist/tools/item-service/simple/get-item.js.map +1 -0
  52. package/dist/tools/item-service/simple/run-stored-query.js +24 -0
  53. package/dist/tools/item-service/simple/run-stored-query.js.map +1 -0
  54. package/dist/tools/item-service/simple/run-stored-search.js +24 -0
  55. package/dist/tools/item-service/simple/run-stored-search.js.map +1 -0
  56. package/dist/tools/item-service/simple/search-items.js +17 -0
  57. package/dist/tools/item-service/simple/search-items.js.map +1 -0
  58. package/dist/tools/powershell/client.js +58 -0
  59. package/dist/tools/powershell/client.js.map +1 -0
  60. package/dist/tools/powershell/composite/register-composite-powershell.js +5 -0
  61. package/dist/tools/powershell/composite/register-composite-powershell.js.map +1 -0
  62. package/dist/tools/powershell/composite/security/register-security-powershell.js +5 -0
  63. package/dist/tools/powershell/composite/security/register-security-powershell.js.map +1 -0
  64. package/dist/tools/powershell/composite/security/register-set-item-acl.js +59 -0
  65. package/dist/tools/powershell/composite/security/register-set-item-acl.js.map +1 -0
  66. package/dist/tools/powershell/output.js +8 -0
  67. package/dist/tools/powershell/output.js.map +1 -0
  68. package/dist/tools/powershell/register-powershell.d.ts +1 -1
  69. package/dist/tools/powershell/register-powershell.js +7 -0
  70. package/dist/tools/powershell/register-powershell.js.map +1 -0
  71. package/dist/tools/powershell/simple/generic.js +27 -0
  72. package/dist/tools/powershell/simple/generic.js.map +1 -0
  73. package/dist/tools/powershell/simple/indexing/register-find-item.d.ts +3 -0
  74. package/dist/tools/powershell/simple/indexing/register-find-item.js +129 -0
  75. package/dist/tools/powershell/simple/indexing/register-find-item.js.map +1 -0
  76. package/dist/tools/powershell/simple/indexing/register-get-search-index.js +28 -0
  77. package/dist/tools/powershell/simple/indexing/register-get-search-index.js.map +1 -0
  78. package/dist/tools/powershell/simple/indexing/register-indexing-powershell.d.ts +1 -1
  79. package/dist/tools/powershell/simple/indexing/register-indexing-powershell.js +9 -0
  80. package/dist/tools/powershell/simple/indexing/register-indexing-powershell.js.map +1 -0
  81. package/dist/tools/powershell/simple/indexing/register-initialize-search-index.js +24 -0
  82. package/dist/tools/powershell/simple/indexing/register-initialize-search-index.js.map +1 -0
  83. package/dist/tools/powershell/simple/provider/register-get-item.js +118 -0
  84. package/dist/tools/powershell/simple/provider/register-get-item.js.map +1 -0
  85. package/dist/tools/powershell/simple/provider/register-provider-powershell.js +5 -0
  86. package/dist/tools/powershell/simple/provider/register-provider-powershell.js.map +1 -0
  87. package/dist/tools/powershell/simple/register-simple-powershell.d.ts +1 -1
  88. package/dist/tools/powershell/simple/register-simple-powershell.js +9 -0
  89. package/dist/tools/powershell/simple/register-simple-powershell.js.map +1 -0
  90. package/dist/tools/powershell/simple/security/access-rights.js +33 -0
  91. package/dist/tools/powershell/simple/security/access-rights.js.map +1 -0
  92. package/dist/tools/powershell/simple/security/register-add-item-acl.js +66 -0
  93. package/dist/tools/powershell/simple/security/register-add-item-acl.js.map +1 -0
  94. package/dist/tools/powershell/simple/security/register-add-role-member.js +19 -0
  95. package/dist/tools/powershell/simple/security/register-add-role-member.js.map +1 -0
  96. package/dist/tools/powershell/simple/security/register-clear-item-acl.js +46 -0
  97. package/dist/tools/powershell/simple/security/register-clear-item-acl.js.map +1 -0
  98. package/dist/tools/powershell/simple/security/register-disable-user.js +15 -0
  99. package/dist/tools/powershell/simple/security/register-disable-user.js.map +1 -0
  100. package/dist/tools/powershell/simple/security/register-enable-user.js +15 -0
  101. package/dist/tools/powershell/simple/security/register-enable-user.js.map +1 -0
  102. package/dist/tools/powershell/simple/security/register-get-domain.js +20 -0
  103. package/dist/tools/powershell/simple/security/register-get-domain.js.map +1 -0
  104. package/dist/tools/powershell/simple/security/register-get-item-acl.js +56 -0
  105. package/dist/tools/powershell/simple/security/register-get-item-acl.js.map +1 -0
  106. package/dist/tools/powershell/simple/security/register-get-role-member.js +31 -0
  107. package/dist/tools/powershell/simple/security/register-get-role-member.js.map +1 -0
  108. package/dist/tools/powershell/simple/security/register-get-role.js +24 -0
  109. package/dist/tools/powershell/simple/security/register-get-role.js.map +1 -0
  110. package/dist/tools/powershell/simple/security/register-get-user.js +31 -0
  111. package/dist/tools/powershell/simple/security/register-get-user.js.map +1 -0
  112. package/dist/tools/powershell/simple/security/register-lock-item.js +56 -0
  113. package/dist/tools/powershell/simple/security/register-lock-item.js.map +1 -0
  114. package/dist/tools/powershell/simple/security/register-new-domain.js +15 -0
  115. package/dist/tools/powershell/simple/security/register-new-domain.js.map +1 -0
  116. package/dist/tools/powershell/simple/security/register-new-role.js +16 -0
  117. package/dist/tools/powershell/simple/security/register-new-role.js.map +1 -0
  118. package/dist/tools/powershell/simple/security/register-new-user.js +43 -0
  119. package/dist/tools/powershell/simple/security/register-new-user.js.map +1 -0
  120. package/dist/tools/powershell/simple/security/register-protect-item.js +46 -0
  121. package/dist/tools/powershell/simple/security/register-protect-item.js.map +1 -0
  122. package/dist/tools/powershell/simple/security/register-remove-domain.js +16 -0
  123. package/dist/tools/powershell/simple/security/register-remove-domain.js.map +1 -0
  124. package/dist/tools/powershell/simple/security/register-remove-role.js +16 -0
  125. package/dist/tools/powershell/simple/security/register-remove-role.js.map +1 -0
  126. package/dist/tools/powershell/simple/security/register-remove-rolemember.js +19 -0
  127. package/dist/tools/powershell/simple/security/register-remove-rolemember.js.map +1 -0
  128. package/dist/tools/powershell/simple/security/register-remove-user.js +15 -0
  129. package/dist/tools/powershell/simple/security/register-remove-user.js.map +1 -0
  130. package/dist/tools/powershell/simple/security/register-security-powershell.js +55 -0
  131. package/dist/tools/powershell/simple/security/register-security-powershell.js.map +1 -0
  132. package/dist/tools/powershell/simple/security/register-set-user-password.js +29 -0
  133. package/dist/tools/powershell/simple/security/register-set-user-password.js.map +1 -0
  134. package/dist/tools/powershell/simple/security/register-set-user.js +66 -0
  135. package/dist/tools/powershell/simple/security/register-set-user.js.map +1 -0
  136. package/dist/tools/powershell/simple/security/register-test-account.js +21 -0
  137. package/dist/tools/powershell/simple/security/register-test-account.js.map +1 -0
  138. package/dist/tools/powershell/simple/security/register-test-item-acl.js +59 -0
  139. package/dist/tools/powershell/simple/security/register-test-item-acl.js.map +1 -0
  140. package/dist/tools/powershell/simple/security/register-unlock-item.js +52 -0
  141. package/dist/tools/powershell/simple/security/register-unlock-item.js.map +1 -0
  142. package/dist/tools/powershell/simple/security/register-unlock-user.js +16 -0
  143. package/dist/tools/powershell/simple/security/register-unlock-user.js.map +1 -0
  144. package/dist/tools/powershell/simple/security/register-unprotect-item.js +46 -0
  145. package/dist/tools/powershell/simple/security/register-unprotect-item.js.map +1 -0
  146. package/dist/tools/powershell/utils.js +18 -0
  147. package/dist/tools/powershell/utils.js.map +1 -0
  148. package/package.json +18 -13
  149. package/dist/bundle.js +0 -52284
  150. package/dist/bundle.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-item-service.js","sourceRoot":"","sources":["../../../src/tools/item-service/register-item-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,UAAU,E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mC,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,CAAA;AACL,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,MAAiB,EAAE,MAAc;IACjE,0BAA0B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,6BAA6B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAClD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import {} from "@modelcontextprotocol/sdk/types.js";
2
+ import {} from "../../../config.js";
3
+ import RestfulItemServiceClient from "../client.js";
4
+ export async function createItem(conf, parentPath, data, options = {}) {
5
+ const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
6
+ const response = await client.createItem(parentPath, data, options);
7
+ return {
8
+ content: [
9
+ {
10
+ type: "text",
11
+ text: JSON.stringify(response, null, 2),
12
+ },
13
+ ],
14
+ isError: false,
15
+ };
16
+ }
17
+ //# sourceMappingURL=create-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-item.js","sourceRoot":"","sources":["../../../../src/tools/item-service/simple/create-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,wBAAwB,MAAM,cAAc,CAAC;AAEpD,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"}
@@ -0,0 +1,23 @@
1
+ import {} from "@modelcontextprotocol/sdk/types.js";
2
+ import {} from "../../../config.js";
3
+ import RestfulItemServiceClient from "../client.js";
4
+ /**
5
+ * Delete a Sitecore item by ID using the RESTful ItemService API.
6
+ * @param conf - Sitecore connection config
7
+ * @param id - The GUID of the Sitecore item to delete
8
+ * @param options - Optional parameters (database, language, version)
9
+ */
10
+ export async function deleteItem(conf, id, options = {}) {
11
+ const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
12
+ const response = await client.deleteItem(id, options);
13
+ return {
14
+ content: [
15
+ {
16
+ type: "text",
17
+ text: JSON.stringify(response, null, 2),
18
+ },
19
+ ],
20
+ isError: false,
21
+ };
22
+ }
23
+ //# sourceMappingURL=delete-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-item.js","sourceRoot":"","sources":["../../../../src/tools/item-service/simple/delete-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,wBAAwB,MAAM,cAAc,CAAC;AAEpD;;;;;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"}
@@ -0,0 +1,23 @@
1
+ import {} from "@modelcontextprotocol/sdk/types.js";
2
+ import RestfulItemServiceClient from "../client.js";
3
+ /**
4
+ * Edit a Sitecore item by ID using the RESTful ItemService API.
5
+ * @param conf - Sitecore connection config
6
+ * @param id - The GUID of the Sitecore item to edit
7
+ * @param data - The data to update (fields, etc)
8
+ * @param options - Optional parameters (database, language, version)
9
+ */
10
+ export async function editItem(conf, id, data, options = {}) {
11
+ const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
12
+ const response = await client.editItem(id, data, options);
13
+ return {
14
+ content: [
15
+ {
16
+ type: "text",
17
+ text: JSON.stringify(response, null, 2),
18
+ },
19
+ ],
20
+ isError: false,
21
+ };
22
+ }
23
+ //# sourceMappingURL=edit-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-item.js","sourceRoot":"","sources":["../../../../src/tools/item-service/simple/edit-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,wBAAwB,MAAM,cAAc,CAAC;AAEpD;;;;;;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"}
@@ -0,0 +1,17 @@
1
+ import {} from "@modelcontextprotocol/sdk/types.js";
2
+ import {} from "../../../config.js";
3
+ import RestfulItemServiceClient from "../client.js";
4
+ export async function getItemByPath(conf, path, options) {
5
+ const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
6
+ const response = await client.getItemByPath(path, options);
7
+ return {
8
+ content: [
9
+ {
10
+ type: "text",
11
+ text: JSON.stringify(response, null, 2),
12
+ },
13
+ ],
14
+ isError: false,
15
+ };
16
+ }
17
+ //# 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/simple/get-item-by-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,wBAAwB,MAAM,cAAc,CAAC;AAEpD,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"}
@@ -0,0 +1,17 @@
1
+ import {} from "@modelcontextprotocol/sdk/types.js";
2
+ import {} from "../../../config.js";
3
+ import RestfulItemServiceClient from "../client.js";
4
+ export async function getItemChildren(conf, id, options) {
5
+ const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
6
+ const response = await client.getItemChildren(id, options);
7
+ return {
8
+ content: [
9
+ {
10
+ type: "text",
11
+ text: JSON.stringify(response, null, 2),
12
+ },
13
+ ],
14
+ isError: false,
15
+ };
16
+ }
17
+ //# sourceMappingURL=get-item-children.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-item-children.js","sourceRoot":"","sources":["../../../../src/tools/item-service/simple/get-item-children.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,wBAAwB,MAAM,cAAc,CAAC;AAEpD,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"}
@@ -0,0 +1,18 @@
1
+ import {} from "@modelcontextprotocol/sdk/types.js";
2
+ import {} from "../../../config.js";
3
+ import { get } from "http";
4
+ import RestfulItemServiceClient from "../client.js";
5
+ export async function getItemById(conf, id, options) {
6
+ const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
7
+ const response = await client.getItemById(id, options);
8
+ return {
9
+ content: [
10
+ {
11
+ type: "text",
12
+ text: JSON.stringify(response, null, 2),
13
+ },
14
+ ],
15
+ isError: false,
16
+ };
17
+ }
18
+ //# sourceMappingURL=get-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-item.js","sourceRoot":"","sources":["../../../../src/tools/item-service/simple/get-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,wBAAwB,MAAM,cAAc,CAAC;AAEpD,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"}
@@ -0,0 +1,24 @@
1
+ import {} from "@modelcontextprotocol/sdk/types.js";
2
+ import {} from "../../../config.js";
3
+ import RestfulItemServiceClient from "../client.js";
4
+ /**
5
+ * Calls the Sitecore RESTful ItemService to run a stored query.
6
+ * @param conf {Config} - The configuration object.
7
+ * @param id {string} - The GUID of the Sitecore query definition item.
8
+ * @param options {object} - Optional parameters for the request.
9
+ * @returns {Promise<CallToolResult>} - The query results.
10
+ */
11
+ export async function runStoredQuery(conf, id, options = {}) {
12
+ const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
13
+ const response = await client.runStoredQuery(id, options);
14
+ return {
15
+ content: [
16
+ {
17
+ type: "text",
18
+ text: JSON.stringify(response, null, 2),
19
+ },
20
+ ],
21
+ isError: false,
22
+ };
23
+ }
24
+ //# sourceMappingURL=run-stored-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-stored-query.js","sourceRoot":"","sources":["../../../../src/tools/item-service/simple/run-stored-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,wBAAwB,MAAM,cAAc,CAAC;AAEpD;;;;;;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"}
@@ -0,0 +1,24 @@
1
+ import {} from "@modelcontextprotocol/sdk/types.js";
2
+ import {} from "../../../config.js";
3
+ import RestfulItemServiceClient from "../client.js";
4
+ /**
5
+ * Calls the Sitecore RESTful ItemService to run a stored search.
6
+ * @param conf {Config} - The configuration object.
7
+ * @param id {string} - The GUID of the Sitecore search definition item.
8
+ * @param options {object} - Search options (term, pageSize, page, database, language, includeStandardTemplateFields, fields, facet, sorting).
9
+ * @returns {Promise<CallToolResult>} - The search results.
10
+ */
11
+ export async function runStoredSearch(conf, id, term, options) {
12
+ const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
13
+ const response = await client.runStoredSearch(id, term, options);
14
+ return {
15
+ content: [
16
+ {
17
+ type: "text",
18
+ text: JSON.stringify(response, null, 2),
19
+ },
20
+ ],
21
+ isError: false,
22
+ };
23
+ }
24
+ //# sourceMappingURL=run-stored-search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-stored-search.js","sourceRoot":"","sources":["../../../../src/tools/item-service/simple/run-stored-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,wBAAwB,MAAM,cAAc,CAAC;AAEpD;;;;;;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"}
@@ -0,0 +1,17 @@
1
+ import {} from "@modelcontextprotocol/sdk/types.js";
2
+ import {} from "../../../config.js";
3
+ import RestfulItemServiceClient from "../client.js";
4
+ export async function searchItems(conf, options) {
5
+ const client = new RestfulItemServiceClient(conf.itemService.serverUrl, conf.itemService.username, conf.itemService.password, conf.itemService.domain);
6
+ const response = await client.searchItems(options);
7
+ return {
8
+ content: [
9
+ {
10
+ type: "text",
11
+ text: JSON.stringify(response, null, 2),
12
+ },
13
+ ],
14
+ isError: false,
15
+ };
16
+ }
17
+ //# sourceMappingURL=search-items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-items.js","sourceRoot":"","sources":["../../../../src/tools/item-service/simple/search-items.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,wBAAwB,MAAM,cAAc,CAAC;AAEpD,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"}
@@ -0,0 +1,58 @@
1
+ import { convertObject, parseXMLString } from "@antonytm/clixml-parser";
2
+ class PowershellClient {
3
+ serverUrl;
4
+ username;
5
+ password;
6
+ domain;
7
+ bearertoken = null;
8
+ constructor(serverUrl, username, password, domain = 'sitecore') {
9
+ this.serverUrl = serverUrl;
10
+ this.username = username;
11
+ this.password = password;
12
+ this.domain = domain;
13
+ this.bearertoken = "Basic " + Buffer.from(`${username}:${password}`).toString("base64");
14
+ }
15
+ async executeScript(script, parameters = {}) {
16
+ const uuid = crypto.randomUUID();
17
+ const url = `${this.serverUrl}/-/script/script/?sessionId=${uuid}&rawOutput=False&persistentSession=False `;
18
+ const headers = {
19
+ 'Authorization': this.bearertoken || '',
20
+ 'Content-Type': 'application/json',
21
+ };
22
+ let scriptWithParameters = script;
23
+ if (parameters) {
24
+ for (const parameter in parameters) {
25
+ if (parameters[parameter] === "") {
26
+ scriptWithParameters += ` -${parameter}`;
27
+ }
28
+ else if (Array.isArray(parameters[parameter])) {
29
+ scriptWithParameters += ` -${parameter} "${parameters[parameter].join('","')}"`;
30
+ }
31
+ else {
32
+ scriptWithParameters += ` -${parameter} "${parameters[parameter]}"`;
33
+ }
34
+ }
35
+ }
36
+ const body = `${scriptWithParameters}\r\n <#${uuid}#>\r\n`;
37
+ const response = await fetch(url, {
38
+ method: 'POST',
39
+ headers: headers,
40
+ body: body,
41
+ });
42
+ if (!response.ok) {
43
+ throw new Error(`Error executing script: ${response.statusText}`);
44
+ }
45
+ return response.text();
46
+ }
47
+ async executeScriptJson(script, parameters = {}) {
48
+ return this.executeScript(script, parameters).then((text) => {
49
+ const json = parseXMLString(text
50
+ .trim("'")
51
+ .trim('"')
52
+ .replaceAll("\\\"", "\""));
53
+ return JSON.stringify(convertObject(json));
54
+ });
55
+ }
56
+ }
57
+ export { PowershellClient };
58
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/tools/powershell/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAExE,MAAM,gBAAgB;IACV,SAAS,CAAS;IAClB,QAAQ,CAAS;IACjB,QAAQ,CAAS;IACjB,MAAM,CAAS;IACf,WAAW,GAAkB,IAAI,CAAC;IAE1C,YAAY,SAAiB,EAAE,QAAgB,EAAE,QAAgB,EAAE,SAAiB,UAAU;QAC1F,IAAI,CAAC,SAAS,GAAG,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AM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;YAC9B,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,IAAI;SAEb,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,2BAA2B,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;QACtE,CAAC;QACD,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,MAAc,EAAE,aAAkC,EAAE;QACxE,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;YACxD,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI;iBAC3B,IAAI,CAAC,GAAG,CAAC;iBACT,IAAI,CAAC,GAAG,CAAC;iBACT,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;YAC/B,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { registerSecurityPowerShell } from "./security/register-security-powershell.js";
2
+ export function registerCompositePowerShell(server, config) {
3
+ registerSecurityPowerShell(server, config);
4
+ }
5
+ //# sourceMappingURL=register-composite-powershell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-composite-powershell.js","sourceRoot":"","sources":["../../../../src/tools/powershell/composite/register-composite-powershell.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAExF,MAAM,UAAU,2BAA2B,CAAC,MAAiB,EAAE,MAAc;IACzE,0BAA0B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { registerSetItemAclPowerShell } from "./register-set-item-acl.js";
2
+ export function registerSecurityPowerShell(server, config) {
3
+ registerSetItemAclPowerShell(server, config);
4
+ }
5
+ //# sourceMappingURL=register-security-powershell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-security-powershell.js","sourceRoot":"","sources":["../../../../../src/tools/powershell/composite/security/register-security-powershell.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAE1E,MAAM,UAAU,0BAA0B,CAAC,MAAiB,EAAE,MAAc;IACxE,4BAA4B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACjD,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { z } from "zod";
2
+ import { safeMcpResponse } from "../../../../helper.js";
3
+ import { prepareArgsString } from "../../utils.js";
4
+ import { AccessRights } from "../../simple/security/access-rights.js";
5
+ import { runGenericPowershellCommand } from "../../simple/generic.js";
6
+ // This security tool doesn't have sense as it could be replaced with Add-ItemAcl+Clear-ItemAcl tools.
7
+ // It is kept for testing "composite" tools.
8
+ export function registerSetItemAclPowerShell(server, config) {
9
+ server.tool("security-set-item-acl-by-id", "Sets an access control entry to a Sitecore item by its ID.", {
10
+ id: z.string()
11
+ .describe("The ID of the item to add ACL entry for"),
12
+ identity: z.string()
13
+ .describe("The identity of the account (user or role) to grant permissions to (e.g. 'sitecore\\admin')"),
14
+ accessRight: z.enum(AccessRights)
15
+ .describe("The access right to grant (e.g. 'item:read', 'item:write')"),
16
+ propagationType: z.enum(["Descendants", "Children", "Entity"]).default("Entity")
17
+ .describe("The propagation type for the access right"),
18
+ securityPermission: z.enum(["AllowAccess", "DenyAccess"]).default("AllowAccess")
19
+ .describe("Whether to allow or deny the specified access right"),
20
+ }, async (params) => {
21
+ const parameters1Obj = {};
22
+ parameters1Obj["Identity"] = params.identity;
23
+ parameters1Obj["AccessRight"] = params.accessRight;
24
+ parameters1Obj["PropagationType"] = params.propagationType;
25
+ parameters1Obj["SecurityPermission"] = params.securityPermission;
26
+ const parameters1 = prepareArgsString(parameters1Obj);
27
+ const command = `
28
+ $acl = New-ItemAcl ${parameters1}
29
+ Get-Item -Id ${params.id} | Set-ItemAcl -AccessRules $acl
30
+ `.replaceAll(/[\n]+/g, "");
31
+ ;
32
+ return safeMcpResponse(runGenericPowershellCommand(config, command, {}));
33
+ });
34
+ server.tool("security-set-item-acl-by-path", "Sets an access control entry to a Sitecore item by its path.", {
35
+ path: z.string()
36
+ .describe("The path of the item to add ACL entry for"),
37
+ identity: z.string()
38
+ .describe("The identity of the account (user or role) to grant permissions to (e.g. 'sitecore\\admin')"),
39
+ accessRight: z.enum(AccessRights)
40
+ .describe("The access right to grant (e.g. 'item:read', 'item:write')"),
41
+ propagationType: z.enum(["Descendants", "Children", "Entity"]).default("Entity")
42
+ .describe("The propagation type for the access right"),
43
+ securityPermission: z.enum(["AllowAccess", "DenyAccess"]).default("AllowAccess")
44
+ .describe("Whether to allow or deny the specified access right"),
45
+ }, async (params) => {
46
+ const parameters1Obj = {};
47
+ parameters1Obj["Identity"] = params.identity;
48
+ parameters1Obj["AccessRight"] = params.accessRight;
49
+ parameters1Obj["PropagationType"] = params.propagationType;
50
+ parameters1Obj["SecurityPermission"] = params.securityPermission;
51
+ const parameters1 = prepareArgsString(parameters1Obj);
52
+ const command = `
53
+ $acl = New-ItemAcl ${parameters1}
54
+ Get-Item -Path "${params.path}" | Set-ItemAcl -AccessRules $acl
55
+ `.replaceAll(/[\n]+/g, "");
56
+ return safeMcpResponse(runGenericPowershellCommand(config, command, {}));
57
+ });
58
+ }
59
+ //# sourceMappingURL=register-set-item-acl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-set-item-acl.js","sourceRoot":"","sources":["../../../../../src/tools/powershell/composite/security/register-set-item-acl.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,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iBAAiB,CAAC,cAAc,CAAC,CAAC;QACtD,MAAM,OAAO,GAAG;qCACS,WAAW;kCACd,MAAM,CAAC,IAAI;aAChC,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAE3B,OAAO,eAAe,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;IAC7E,CAAC,CACJ,CAAC;AACN,CAAC"}
@@ -0,0 +1,8 @@
1
+ export var PowerShellOutputType;
2
+ (function (PowerShellOutputType) {
3
+ PowerShellOutputType["XML"] = "xml";
4
+ PowerShellOutputType["JSON"] = "json";
5
+ PowerShellOutputType["JSONConverted"] = "json-converted";
6
+ PowerShellOutputType["JSONWriteHostExtracted"] = "json-write-host-extracted";
7
+ })(PowerShellOutputType || (PowerShellOutputType = {}));
8
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../../src/tools/powershell/output.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC5B,mCAAW,CAAA;IACX,qCAAa,CAAA;IACb,wDAAgC,CAAA;IAChC,4EAAoD,CAAA;AACxD,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B"}
@@ -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 registerPowerShell(server: McpServer, config: Config): void;
3
+ export declare function registerPowerShell(server: McpServer, config: Config): Promise<void>;
@@ -0,0 +1,7 @@
1
+ import { registerSimplePowerShell } from "./simple/register-simple-powershell.js";
2
+ import { registerCompositePowerShell } from "./composite/register-composite-powershell.js";
3
+ export async function registerPowerShell(server, config) {
4
+ await registerSimplePowerShell(server, config);
5
+ await registerCompositePowerShell(server, config);
6
+ }
7
+ //# sourceMappingURL=register-powershell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-powershell.js","sourceRoot":"","sources":["../../../src/tools/powershell/register-powershell.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAE3F,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,MAAiB,EAAE,MAAc;IACtE,MAAM,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,MAAM,2BAA2B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { PowershellClient } from "../client.js";
2
+ import { PowerShellOutputType } from "../output.js";
3
+ export async function runGenericPowershellCommand(config, command, options, outputFormat) {
4
+ const client = new PowershellClient(config.powershell.serverUrl, config.powershell.username, config.powershell.password, config.powershell.domain);
5
+ let text = "";
6
+ switch (outputFormat) {
7
+ case PowerShellOutputType.JSON:
8
+ text = await client.executeScriptJson(command, options);
9
+ break;
10
+ case PowerShellOutputType.XML:
11
+ text = await client.executeScript(command, options);
12
+ break;
13
+ default:
14
+ text = await client.executeScriptJson(command, options);
15
+ break;
16
+ }
17
+ return {
18
+ content: [
19
+ {
20
+ type: "text",
21
+ text: text,
22
+ },
23
+ ],
24
+ isError: false,
25
+ };
26
+ }
27
+ //# sourceMappingURL=generic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generic.js","sourceRoot":"","sources":["../../../../src/tools/powershell/simple/generic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,MAAc,EAAE,OAAe,EAAE,OAA4B,EAAE,YAAmC;IAChJ,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAC/B,MAAM,CAAC,UAAU,CAAC,SAAS,EAC3B,MAAM,CAAC,UAAU,CAAC,QAAQ,EAC1B,MAAM,CAAC,UAAU,CAAC,QAAQ,EAC1B,MAAM,CAAC,UAAU,CAAC,MAAM,CAC3B,CAAC;IAEF,IAAI,IAAI,GAAG,EAAE,CAAA;IACb,QAAQ,YAAY,EAAE,CAAC;QACnB,KAAK,oBAAoB,CAAC,IAAI;YAC1B,IAAI,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACxD,MAAM;QACV,KAAK,oBAAoB,CAAC,GAAG;YACzB,IAAI,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACpD,MAAM;QACV;YACI,IAAI,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACxD,MAAM;IACd,CAAC;IAED,OAAO;QACH,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI;aACb;SACJ;QACD,OAAO,EAAE,KAAK;KACjB,CAAA;AAEL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp";
2
+ import type { Config } from "../../../../config.js";
3
+ export declare function registerFindItemPowerShell(server: McpServer, config: Config): Promise<void>;