@antonytm/mcp-sitecore-server 0.21.0 → 1.0.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 (157) hide show
  1. package/README.md +58 -8
  2. package/dist/bundle.js +1780 -68
  3. package/dist/register.js +106 -5
  4. package/dist/register.js.map +1 -1
  5. package/dist/tools/powershell/composite/common/get-archive-item.d.ts +3 -0
  6. package/dist/tools/powershell/composite/common/get-archive-item.js +32 -0
  7. package/dist/tools/powershell/composite/common/get-archive-item.js.map +1 -0
  8. package/dist/tools/powershell/composite/common/get-archive.d.ts +3 -0
  9. package/dist/tools/powershell/composite/common/get-archive.js +24 -0
  10. package/dist/tools/powershell/composite/common/get-archive.js.map +1 -0
  11. package/dist/tools/powershell/composite/common/new-item-clone-by-id.d.ts +3 -0
  12. package/dist/tools/powershell/composite/common/new-item-clone-by-id.js +36 -0
  13. package/dist/tools/powershell/composite/common/new-item-clone-by-id.js.map +1 -0
  14. package/dist/tools/powershell/composite/common/new-item-clone-by-path.d.ts +3 -0
  15. package/dist/tools/powershell/composite/common/new-item-clone-by-path.js +36 -0
  16. package/dist/tools/powershell/composite/common/new-item-clone-by-path.js.map +1 -0
  17. package/dist/tools/powershell/composite/common/remove-archive-item.d.ts +3 -0
  18. package/dist/tools/powershell/composite/common/remove-archive-item.js +32 -0
  19. package/dist/tools/powershell/composite/common/remove-archive-item.js.map +1 -0
  20. package/dist/tools/powershell/composite/common/restore-archive-item.d.ts +3 -0
  21. package/dist/tools/powershell/composite/common/restore-archive-item.js +32 -0
  22. package/dist/tools/powershell/composite/common/restore-archive-item.js.map +1 -0
  23. package/dist/tools/powershell/composite/common/update-item-referrer-by-id.d.ts +3 -0
  24. package/dist/tools/powershell/composite/common/update-item-referrer-by-id.js +40 -0
  25. package/dist/tools/powershell/composite/common/update-item-referrer-by-id.js.map +1 -0
  26. package/dist/tools/powershell/composite/common/update-item-referrer-by-path.d.ts +3 -0
  27. package/dist/tools/powershell/composite/common/update-item-referrer-by-path.js +40 -0
  28. package/dist/tools/powershell/composite/common/update-item-referrer-by-path.js.map +1 -0
  29. package/dist/tools/powershell/composite/presentation/add-placeholder-setting-by-id.d.ts +3 -0
  30. package/dist/tools/powershell/composite/presentation/add-placeholder-setting-by-id.js +35 -0
  31. package/dist/tools/powershell/composite/presentation/add-placeholder-setting-by-id.js.map +1 -0
  32. package/dist/tools/powershell/composite/presentation/add-placeholder-setting-by-path.d.ts +3 -0
  33. package/dist/tools/powershell/composite/presentation/add-placeholder-setting-by-path.js +32 -0
  34. package/dist/tools/powershell/composite/presentation/add-placeholder-setting-by-path.js.map +1 -0
  35. package/dist/tools/powershell/composite/presentation/get-rendering-parameter-by-id.d.ts +3 -0
  36. package/dist/tools/powershell/composite/presentation/get-rendering-parameter-by-id.js +34 -0
  37. package/dist/tools/powershell/composite/presentation/get-rendering-parameter-by-id.js.map +1 -0
  38. package/dist/tools/powershell/composite/presentation/get-rendering-parameter-by-path.d.ts +3 -0
  39. package/dist/tools/powershell/composite/presentation/get-rendering-parameter-by-path.js +32 -0
  40. package/dist/tools/powershell/composite/presentation/get-rendering-parameter-by-path.js.map +1 -0
  41. package/dist/tools/powershell/composite/presentation/remove-rendering-parameter-by-id.d.ts +3 -0
  42. package/dist/tools/powershell/composite/presentation/remove-rendering-parameter-by-id.js +40 -0
  43. package/dist/tools/powershell/composite/presentation/remove-rendering-parameter-by-id.js.map +1 -0
  44. package/dist/tools/powershell/composite/presentation/remove-rendering-parameter-by-path.d.ts +3 -0
  45. package/dist/tools/powershell/composite/presentation/remove-rendering-parameter-by-path.js +37 -0
  46. package/dist/tools/powershell/composite/presentation/remove-rendering-parameter-by-path.js.map +1 -0
  47. package/dist/tools/powershell/composite/presentation/set-layout-by-path.js +2 -2
  48. package/dist/tools/powershell/composite/presentation/set-layout-by-path.js.map +1 -1
  49. package/dist/tools/powershell/composite/presentation/set-rendering-parameter-by-id.d.ts +3 -0
  50. package/dist/tools/powershell/composite/presentation/set-rendering-parameter-by-id.js +40 -0
  51. package/dist/tools/powershell/composite/presentation/set-rendering-parameter-by-id.js.map +1 -0
  52. package/dist/tools/powershell/composite/presentation/set-rendering-parameter-by-path.d.ts +3 -0
  53. package/dist/tools/powershell/composite/presentation/set-rendering-parameter-by-path.js +37 -0
  54. package/dist/tools/powershell/composite/presentation/set-rendering-parameter-by-path.js.map +1 -0
  55. package/dist/tools/powershell/simple/common/add-base-template-by-id.d.ts +3 -0
  56. package/dist/tools/powershell/simple/common/add-base-template-by-id.js +24 -0
  57. package/dist/tools/powershell/simple/common/add-base-template-by-id.js.map +1 -0
  58. package/dist/tools/powershell/simple/common/add-base-template-by-path.d.ts +3 -0
  59. package/dist/tools/powershell/simple/common/add-base-template-by-path.js +24 -0
  60. package/dist/tools/powershell/simple/common/add-base-template-by-path.js.map +1 -0
  61. package/dist/tools/powershell/simple/common/add-item-version-by-id.d.ts +3 -0
  62. package/dist/tools/powershell/simple/common/add-item-version-by-id.js +55 -0
  63. package/dist/tools/powershell/simple/common/add-item-version-by-id.js.map +1 -0
  64. package/dist/tools/powershell/simple/common/add-item-version-by-path.d.ts +3 -0
  65. package/dist/tools/powershell/simple/common/add-item-version-by-path.js +55 -0
  66. package/dist/tools/powershell/simple/common/add-item-version-by-path.js.map +1 -0
  67. package/dist/tools/powershell/simple/common/convert-from-item-clone-by-id.d.ts +3 -0
  68. package/dist/tools/powershell/simple/common/convert-from-item-clone-by-id.js +32 -0
  69. package/dist/tools/powershell/simple/common/convert-from-item-clone-by-id.js.map +1 -0
  70. package/dist/tools/powershell/simple/common/convert-from-item-clone-by-path.d.ts +3 -0
  71. package/dist/tools/powershell/simple/common/convert-from-item-clone-by-path.js +32 -0
  72. package/dist/tools/powershell/simple/common/convert-from-item-clone-by-path.js.map +1 -0
  73. package/dist/tools/powershell/simple/common/get-item-clone-by-id.d.ts +3 -0
  74. package/dist/tools/powershell/simple/common/get-item-clone-by-id.js +21 -0
  75. package/dist/tools/powershell/simple/common/get-item-clone-by-id.js.map +1 -0
  76. package/dist/tools/powershell/simple/common/get-item-clone-by-path.d.ts +3 -0
  77. package/dist/tools/powershell/simple/common/get-item-clone-by-path.js +21 -0
  78. package/dist/tools/powershell/simple/common/get-item-clone-by-path.js.map +1 -0
  79. package/dist/tools/powershell/simple/common/get-item-field-by-id.d.ts +3 -0
  80. package/dist/tools/powershell/simple/common/get-item-field-by-id.js +42 -0
  81. package/dist/tools/powershell/simple/common/get-item-field-by-id.js.map +1 -0
  82. package/dist/tools/powershell/simple/common/get-item-field-by-path.d.ts +3 -0
  83. package/dist/tools/powershell/simple/common/get-item-field-by-path.js +42 -0
  84. package/dist/tools/powershell/simple/common/get-item-field-by-path.js.map +1 -0
  85. package/dist/tools/powershell/simple/common/get-item-workflow-event-by-id.d.ts +3 -0
  86. package/dist/tools/powershell/simple/common/get-item-workflow-event-by-id.js +31 -0
  87. package/dist/tools/powershell/simple/common/get-item-workflow-event-by-id.js.map +1 -0
  88. package/dist/tools/powershell/simple/common/get-item-workflow-event-by-path.d.ts +3 -0
  89. package/dist/tools/powershell/simple/common/get-item-workflow-event-by-path.js +31 -0
  90. package/dist/tools/powershell/simple/common/get-item-workflow-event-by-path.js.map +1 -0
  91. package/dist/tools/powershell/simple/common/get-sitecore-job.d.ts +3 -0
  92. package/dist/tools/powershell/simple/common/get-sitecore-job.js +10 -0
  93. package/dist/tools/powershell/simple/common/get-sitecore-job.js.map +1 -0
  94. package/dist/tools/powershell/simple/common/invoke-workflow-by-id.d.ts +3 -0
  95. package/dist/tools/powershell/simple/common/invoke-workflow-by-id.js +34 -0
  96. package/dist/tools/powershell/simple/common/invoke-workflow-by-id.js.map +1 -0
  97. package/dist/tools/powershell/simple/common/invoke-workflow-by-path.d.ts +3 -0
  98. package/dist/tools/powershell/simple/common/invoke-workflow-by-path.js +34 -0
  99. package/dist/tools/powershell/simple/common/invoke-workflow-by-path.js.map +1 -0
  100. package/dist/tools/powershell/simple/common/new-item-workflow-event-by-id.d.ts +3 -0
  101. package/dist/tools/powershell/simple/common/new-item-workflow-event-by-id.js +41 -0
  102. package/dist/tools/powershell/simple/common/new-item-workflow-event-by-id.js.map +1 -0
  103. package/dist/tools/powershell/simple/common/new-item-workflow-event-by-path.d.ts +3 -0
  104. package/dist/tools/powershell/simple/common/new-item-workflow-event-by-path.js +41 -0
  105. package/dist/tools/powershell/simple/common/new-item-workflow-event-by-path.js.map +1 -0
  106. package/dist/tools/powershell/simple/common/publish-item-by-id.d.ts +3 -0
  107. package/dist/tools/powershell/simple/common/publish-item-by-id.js +67 -0
  108. package/dist/tools/powershell/simple/common/publish-item-by-id.js.map +1 -0
  109. package/dist/tools/powershell/simple/common/publish-item-by-path.d.ts +3 -0
  110. package/dist/tools/powershell/simple/common/publish-item-by-path.js +67 -0
  111. package/dist/tools/powershell/simple/common/publish-item-by-path.js.map +1 -0
  112. package/dist/tools/powershell/simple/common/remove-base-template-by-id.d.ts +3 -0
  113. package/dist/tools/powershell/simple/common/remove-base-template-by-id.js +24 -0
  114. package/dist/tools/powershell/simple/common/remove-base-template-by-id.js.map +1 -0
  115. package/dist/tools/powershell/simple/common/remove-base-template-by-path.d.ts +3 -0
  116. package/dist/tools/powershell/simple/common/remove-base-template-by-path.js +24 -0
  117. package/dist/tools/powershell/simple/common/remove-base-template-by-path.js.map +1 -0
  118. package/dist/tools/powershell/simple/common/remove-item-version-by-id.d.ts +3 -0
  119. package/dist/tools/powershell/simple/common/remove-item-version-by-id.js +45 -0
  120. package/dist/tools/powershell/simple/common/remove-item-version-by-id.js.map +1 -0
  121. package/dist/tools/powershell/simple/common/remove-item-version-by-path.d.ts +3 -0
  122. package/dist/tools/powershell/simple/common/remove-item-version-by-path.js +45 -0
  123. package/dist/tools/powershell/simple/common/remove-item-version-by-path.js.map +1 -0
  124. package/dist/tools/powershell/simple/common/reset-item-field-by-id.d.ts +3 -0
  125. package/dist/tools/powershell/simple/common/reset-item-field-by-id.js +32 -0
  126. package/dist/tools/powershell/simple/common/reset-item-field-by-id.js.map +1 -0
  127. package/dist/tools/powershell/simple/common/reset-item-field-by-path.d.ts +3 -0
  128. package/dist/tools/powershell/simple/common/reset-item-field-by-path.js +32 -0
  129. package/dist/tools/powershell/simple/common/reset-item-field-by-path.js.map +1 -0
  130. package/dist/tools/powershell/simple/common/restart-application.d.ts +3 -0
  131. package/dist/tools/powershell/simple/common/restart-application.js +9 -0
  132. package/dist/tools/powershell/simple/common/restart-application.js.map +1 -0
  133. package/dist/tools/powershell/simple/common/set-item-template-by-id.d.ts +3 -0
  134. package/dist/tools/powershell/simple/common/set-item-template-by-id.js +29 -0
  135. package/dist/tools/powershell/simple/common/set-item-template-by-id.js.map +1 -0
  136. package/dist/tools/powershell/simple/common/set-item-template-by-path.d.ts +3 -0
  137. package/dist/tools/powershell/simple/common/set-item-template-by-path.js +29 -0
  138. package/dist/tools/powershell/simple/common/set-item-template-by-path.js.map +1 -0
  139. package/dist/tools/powershell/simple/common/test-base-template-by-id.d.ts +3 -0
  140. package/dist/tools/powershell/simple/common/test-base-template-by-id.js +24 -0
  141. package/dist/tools/powershell/simple/common/test-base-template-by-id.js.map +1 -0
  142. package/dist/tools/powershell/simple/common/test-base-template-by-path.d.ts +3 -0
  143. package/dist/tools/powershell/simple/common/test-base-template-by-path.js +24 -0
  144. package/dist/tools/powershell/simple/common/test-base-template-by-path.js.map +1 -0
  145. package/dist/tools/powershell/simple/presentation/get-placeholder-setting-by-id.d.ts +3 -0
  146. package/dist/tools/powershell/simple/presentation/get-placeholder-setting-by-id.js +28 -0
  147. package/dist/tools/powershell/simple/presentation/get-placeholder-setting-by-id.js.map +1 -0
  148. package/dist/tools/powershell/simple/presentation/get-placeholder-setting-by-path.d.ts +3 -0
  149. package/dist/tools/powershell/simple/presentation/get-placeholder-setting-by-path.js +26 -0
  150. package/dist/tools/powershell/simple/presentation/get-placeholder-setting-by-path.js.map +1 -0
  151. package/dist/tools/powershell/simple/presentation/remove-placeholder-setting-by-id.d.ts +3 -0
  152. package/dist/tools/powershell/simple/presentation/remove-placeholder-setting-by-id.js +27 -0
  153. package/dist/tools/powershell/simple/presentation/remove-placeholder-setting-by-id.js.map +1 -0
  154. package/dist/tools/powershell/simple/presentation/remove-placeholder-setting-by-path.d.ts +3 -0
  155. package/dist/tools/powershell/simple/presentation/remove-placeholder-setting-by-path.js +25 -0
  156. package/dist/tools/powershell/simple/presentation/remove-placeholder-setting-by-path.js.map +1 -0
  157. package/package.json +12 -11
package/README.md CHANGED
@@ -95,6 +95,18 @@
95
95
  - [x] `presentation-switch-rendering-by-id`: Switches an existing rendering specified by item ID with an alternate one for the item specified by item ID
96
96
  - [x] `presentation-switch-rendering-by-path`: Switches an existing rendering specified by path with an alternate one for the item specified by path
97
97
  - [x] `presentation-switch-rendering-by-unique-id`: Switches an existing rendering specified by unique ID with an alternate one for the item specified by item ID
98
+ - [x] `presentation-get-placeholder-setting-by-id`: Gets placeholder setting assigned on the item specified by ID
99
+ - [x] `presentation-get-placeholder-setting-by-path`: Gets placeholder setting assigned on the item specified by path
100
+ - [x] `presentation-add-placeholder-setting-by-id`: Adds a placeholder setting to the item specified by ID
101
+ - [x] `presentation-add-placeholder-setting-by-path`: Adds a placeholder setting to the item specified by path
102
+ - [x] `presentation-remove-placeholder-setting-by-id`: Removes placeholder setting from the item specified by ID
103
+ - [x] `presentation-remove-placeholder-setting-by-path`: Removes placeholder setting from the item specified by path
104
+ - [x] `presentation-get-rendering-parameter-by-id`: Gets rendering parameter for the item specified by ID
105
+ - [x] `presentation-get-rendering-parameter-by-path`: Gets rendering parameter for the item specified by path
106
+ - [x] `presentation-remove-rendering-parameter-by-id`: Removes the specified rendering parameter from the rendering placed on the item specified by ID
107
+ - [x] `presentation-remove-rendering-parameter-by-path`: Removes the specified rendering parameter from the rendering placed on the item specified by path
108
+ - [x] `presentation-set-rendering-parameter-by-id`: Adds and updates the specified rendering parameter from the rendering placed on the item specified by ID
109
+ - [x] `presentation-set-rendering-parameter-by-path`: Adds and updates the specified rendering parameter from the rendering placed on the item specified by path
98
110
  - [x] Indexing
99
111
  - [x] `indexing-initialize-search-index`: initializes one or more search indexes
100
112
  - [x] `indexing-get-search-index`: returns a search index
@@ -108,14 +120,52 @@
108
120
  - [x] `indexing-remove-search-index-item-by-path`: removes the item with the specified path from the search index
109
121
  - [ ] ~~`indexing-initialize-item`: initializes items with the PowerShell automatic properties for each field.~~ Skipped, no value for MCP server.
110
122
  - [x] Common
111
- - [x] `common-get-database`: returns information about Sitecore databases
112
- - [x] `common-get-cache`: returns information about Sitecore caches
113
- - [x] `common-get-item-template-by-id`: returns template information for a Sitecore item by ID
114
- - [x] `common-get-item-template-by-path`: returns template information for a Sitecore item by path
115
- - [x] `common-get-item-reference-by-id`: returns item references (where it is used) for a Sitecore item by ID
116
- - [x] `common-get-item-reference-by-path`: returns item references (where it is used) for a Sitecore item by path
117
- - [x] `common-get-item-referrer-by-id`: returns items referring to a Sitecore item by ID (which items reference it)
118
- - [x] `common-get-item-referrer-by-path`: returns items referring to a Sitecore item by path (which items reference it)
123
+ - [x] `common-add-base-template-by-id`: adds a base template to a template item by ID
124
+ - [x] `common-add-base-template-by-path`: adds a base template to a template item by path
125
+ - [x] `common-add-item-version-by-id`: creates a version of the item (by its id) in a new language based on an existing language version
126
+ - [x] `common-add-item-version-by-path`: creates a version of the item (by its path) in a new language based on an existing language version
127
+ - [x] `common-convert-from-item-clone-by-id`: converts an item from a clone to a fully independent item by ID
128
+ - [x] `common-convert-from-item-clone-by-path`: converts an item from a clone to a fully independent item by path
129
+ - [x] `common-get-archive`: gets Sitecore database archives
130
+ - [x] `common-get-archive-item`: gets a list of items found in the specified archive
131
+ - [x] `common-get-cache`: gets information about Sitecore caches
132
+ - [x] `common-get-database`: gets information about Sitecore databases
133
+ - [x] `common-get-item-field-by-id`: gets item fields as either names or fields or template fields by ID
134
+ - [x] `common-get-item-field-by-path`: gets item fields as either names or fields or template fields by path
135
+ - [x] `common-get-item-clone-by-id`: gets all the clones for the specified item by ID
136
+ - [x] `common-get-item-clone-by-path`: gets all the clones for the specified item by path
137
+ - [x] `common-get-item-reference-by-id`: gets item references (where it is used) for a Sitecore item by ID
138
+ - [x] `common-get-item-reference-by-path`: gets item references (where it is used) for a Sitecore item by path
139
+ - [x] `common-get-item-referrer-by-id`: gets items referring to a Sitecore item by ID (which items reference it)
140
+ - [x] `common-get-item-referrer-by-path`: gets items referring to a Sitecore item by path (which items reference it)
141
+ - [x] `common-get-item-template-by-id`: gets template information for a Sitecore item by ID
142
+ - [x] `common-get-item-template-by-path`: gets template information for a Sitecore item by path
143
+ - [x] `common-get-item-workflow-event-by-id`: gets entries from the workflow history for the specified item by ID
144
+ - [x] `common-get-item-workflow-event-by-path`: gets entries from the workflow history for the specified item by path
145
+ - [x] `common-get-sitecore-job`: gets list of the current Sitecore jobs
146
+ - [x] `common-invoke-workflow-by-id`: executes workflow action for a Sitecore item by ID
147
+ - [x] `common-invoke-workflow-by-path`: executes workflow action for a Sitecore item by path
148
+ - [x] `common-new-item-clone-by-id`: creates a new item clone based on the item provided by ID
149
+ - [x] `common-new-item-clone-by-path`: creates a new item clone based on the item provided by path
150
+ - [x] `common-new-item-workflow-event-by-id`: creates a new entry in the workflow history for a Sitecore item by ID
151
+ - [x] `common-new-item-workflow-event-by-path`: creates a new entry in the workflow history for a Sitecore item by path
152
+ - [x] `common-publish-item-by-id`: publishes a Sitecore item by ID
153
+ - [x] `common-publish-item-by-path`: publishes a Sitecore item by path
154
+ - [x] `common-remove-archive-item`: removes items permanently from the specified archive
155
+ - [x] `common-remove-base-template-by-id`: removes a base template from a template item by ID
156
+ - [x] `common-remove-base-template-by-path`: removes a base template from a template item by path
157
+ - [x] `common-remove-item-version-by-id`: removes a version of a Sitecore item by ID
158
+ - [x] `common-remove-item-version-by-path`: removes a version of a Sitecore item by path
159
+ - [x] `common-reset-item-field-by-id`: resets item fields, specified as either names, fields or template fields by ID
160
+ - [x] `common-reset-item-field-by-path`: resets item fields, specified as either names, fields or template fields by path
161
+ - [x] `common-restart-application`: restarts the Sitecore Application pool
162
+ - [x] `common-restore-archive-item`: restores items to the original database from the specified archive
163
+ - [x] `common-set-item-template-by-id`: sets the item template by ID
164
+ - [x] `common-set-item-template-by-path`: sets the item template by path
165
+ - [x] `common-test-base-template-by-id`: checks if the item inherits from the specified template by ID
166
+ - [x] `common-test-base-template-by-path`: checks if the item inherits from the specified template by path
167
+ - [x] `common-update-item-referrer-by-id`: updates all references to the specified item (by ID) to point to a new provided in the -NewTarget or removes links to the item
168
+ - [x] `common-update-item-referrer-by-path`: updates all references to the specified item (by path) to point to a new provided in the -NewTarget or removes links to the item
119
169
  - [x] Logging
120
170
  - [x] `logging-get-logs`: retrieves Sitecore logs from the log directory with filtering options
121
171