@mcp-abap-adt/core 2.5.0 → 2.5.2

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 (400) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +3 -0
  3. package/dist/handlers/bdef/handleCreateBehaviorDefinition.d.ts +50 -0
  4. package/dist/handlers/bdef/handleCreateBehaviorDefinition.d.ts.map +1 -0
  5. package/dist/handlers/bdef/handleCreateBehaviorDefinition.js +101 -0
  6. package/dist/handlers/bdef/handleGetBdef.d.ts +54 -0
  7. package/dist/handlers/bdef/handleGetBdef.d.ts.map +1 -0
  8. package/dist/handlers/bdef/handleGetBdef.js +89 -0
  9. package/dist/handlers/bdef/handleUpdateBehaviorDefinition.d.ts +37 -0
  10. package/dist/handlers/bdef/handleUpdateBehaviorDefinition.d.ts.map +1 -0
  11. package/dist/handlers/bdef/handleUpdateBehaviorDefinition.js +85 -0
  12. package/dist/handlers/behavior_definition/readonly/handleGetBdef.d.ts +54 -0
  13. package/dist/handlers/behavior_definition/readonly/handleGetBdef.d.ts.map +1 -0
  14. package/dist/handlers/behavior_definition/readonly/handleGetBdef.js +89 -0
  15. package/dist/handlers/class/handleCheckClass.d.ts +59 -0
  16. package/dist/handlers/class/handleCheckClass.d.ts.map +1 -0
  17. package/dist/handlers/class/handleCheckClass.js +138 -0
  18. package/dist/handlers/class/handleCreateClass.d.ts +80 -0
  19. package/dist/handlers/class/handleCreateClass.d.ts.map +1 -0
  20. package/dist/handlers/class/handleCreateClass.js +192 -0
  21. package/dist/handlers/class/handleGetClass.d.ts +16 -0
  22. package/dist/handlers/class/handleGetClass.d.ts.map +1 -0
  23. package/dist/handlers/class/handleGetClass.js +159 -0
  24. package/dist/handlers/class/handleUpdateClassSource.d.ts +44 -0
  25. package/dist/handlers/class/handleUpdateClassSource.d.ts.map +1 -0
  26. package/dist/handlers/class/handleUpdateClassSource.js +131 -0
  27. package/dist/handlers/class/handleValidateClass.d.ts +62 -0
  28. package/dist/handlers/class/handleValidateClass.d.ts.map +1 -0
  29. package/dist/handlers/class/handleValidateClass.js +136 -0
  30. package/dist/handlers/class/readonly/handleGetClass.d.ts +20 -0
  31. package/dist/handlers/class/readonly/handleGetClass.d.ts.map +1 -0
  32. package/dist/handlers/class/readonly/handleGetClass.js +159 -0
  33. package/dist/handlers/common/handleActivateObject.d.ts +62 -0
  34. package/dist/handlers/common/handleActivateObject.d.ts.map +1 -0
  35. package/dist/handlers/common/handleActivateObject.js +137 -0
  36. package/dist/handlers/common/handleCheckObject.d.ts +63 -0
  37. package/dist/handlers/common/handleCheckObject.d.ts.map +1 -0
  38. package/dist/handlers/common/handleCheckObject.js +197 -0
  39. package/dist/handlers/common/handleDeleteObject.d.ts +46 -0
  40. package/dist/handlers/common/handleDeleteObject.d.ts.map +1 -0
  41. package/dist/handlers/common/handleDeleteObject.js +176 -0
  42. package/dist/handlers/common/handleLockObject.d.ts +57 -0
  43. package/dist/handlers/common/handleLockObject.d.ts.map +1 -0
  44. package/dist/handlers/common/handleLockObject.js +195 -0
  45. package/dist/handlers/common/handleUnlockObject.d.ts +61 -0
  46. package/dist/handlers/common/handleUnlockObject.d.ts.map +1 -0
  47. package/dist/handlers/common/handleUnlockObject.js +178 -0
  48. package/dist/handlers/common/handleValidateObject.d.ts +58 -0
  49. package/dist/handlers/common/handleValidateObject.d.ts.map +1 -0
  50. package/dist/handlers/common/handleValidateObject.js +177 -0
  51. package/dist/handlers/compact/high/compactSchemas.d.ts +218 -9
  52. package/dist/handlers/compact/high/compactSchemas.d.ts.map +1 -1
  53. package/dist/handlers/compact/high/compactSchemas.js +410 -134
  54. package/dist/handlers/compact/high/compactSchemas.js.map +1 -1
  55. package/dist/handlers/compact/high/handleHandlerActivate.d.ts +7 -1
  56. package/dist/handlers/compact/high/handleHandlerActivate.d.ts.map +1 -1
  57. package/dist/handlers/compact/high/handleHandlerActivate.js +1 -1
  58. package/dist/handlers/compact/high/handleHandlerActivate.js.map +1 -1
  59. package/dist/handlers/compact/high/handleHandlerCdsUnitTestResult.d.ts +4 -1
  60. package/dist/handlers/compact/high/handleHandlerCdsUnitTestResult.d.ts.map +1 -1
  61. package/dist/handlers/compact/high/handleHandlerCdsUnitTestResult.js +1 -1
  62. package/dist/handlers/compact/high/handleHandlerCdsUnitTestResult.js.map +1 -1
  63. package/dist/handlers/compact/high/handleHandlerCdsUnitTestStatus.d.ts +3 -1
  64. package/dist/handlers/compact/high/handleHandlerCdsUnitTestStatus.d.ts.map +1 -1
  65. package/dist/handlers/compact/high/handleHandlerCdsUnitTestStatus.js +1 -1
  66. package/dist/handlers/compact/high/handleHandlerCdsUnitTestStatus.js.map +1 -1
  67. package/dist/handlers/compact/high/handleHandlerCheckRun.d.ts +7 -1
  68. package/dist/handlers/compact/high/handleHandlerCheckRun.d.ts.map +1 -1
  69. package/dist/handlers/compact/high/handleHandlerCheckRun.js +1 -1
  70. package/dist/handlers/compact/high/handleHandlerCheckRun.js.map +1 -1
  71. package/dist/handlers/compact/high/handleHandlerCreate.d.ts +23 -1
  72. package/dist/handlers/compact/high/handleHandlerCreate.d.ts.map +1 -1
  73. package/dist/handlers/compact/high/handleHandlerCreate.js +1 -1
  74. package/dist/handlers/compact/high/handleHandlerCreate.js.map +1 -1
  75. package/dist/handlers/compact/high/handleHandlerDelete.d.ts +7 -1
  76. package/dist/handlers/compact/high/handleHandlerDelete.d.ts.map +1 -1
  77. package/dist/handlers/compact/high/handleHandlerDelete.js +1 -1
  78. package/dist/handlers/compact/high/handleHandlerDelete.js.map +1 -1
  79. package/dist/handlers/compact/high/handleHandlerDumpList.d.ts +6 -1
  80. package/dist/handlers/compact/high/handleHandlerDumpList.d.ts.map +1 -1
  81. package/dist/handlers/compact/high/handleHandlerDumpList.js +1 -1
  82. package/dist/handlers/compact/high/handleHandlerDumpList.js.map +1 -1
  83. package/dist/handlers/compact/high/handleHandlerDumpView.d.ts +3 -1
  84. package/dist/handlers/compact/high/handleHandlerDumpView.d.ts.map +1 -1
  85. package/dist/handlers/compact/high/handleHandlerDumpView.js +1 -1
  86. package/dist/handlers/compact/high/handleHandlerDumpView.js.map +1 -1
  87. package/dist/handlers/compact/high/handleHandlerGet.d.ts +60 -1
  88. package/dist/handlers/compact/high/handleHandlerGet.d.ts.map +1 -1
  89. package/dist/handlers/compact/high/handleHandlerGet.js +1 -1
  90. package/dist/handlers/compact/high/handleHandlerGet.js.map +1 -1
  91. package/dist/handlers/compact/high/handleHandlerLock.d.ts +7 -1
  92. package/dist/handlers/compact/high/handleHandlerLock.d.ts.map +1 -1
  93. package/dist/handlers/compact/high/handleHandlerLock.js +1 -1
  94. package/dist/handlers/compact/high/handleHandlerLock.js.map +1 -1
  95. package/dist/handlers/compact/high/handleHandlerProfileList.d.ts +1 -1
  96. package/dist/handlers/compact/high/handleHandlerProfileList.js +1 -1
  97. package/dist/handlers/compact/high/handleHandlerProfileList.js.map +1 -1
  98. package/dist/handlers/compact/high/handleHandlerProfileRun.d.ts +17 -1
  99. package/dist/handlers/compact/high/handleHandlerProfileRun.d.ts.map +1 -1
  100. package/dist/handlers/compact/high/handleHandlerProfileRun.js +1 -1
  101. package/dist/handlers/compact/high/handleHandlerProfileRun.js.map +1 -1
  102. package/dist/handlers/compact/high/handleHandlerProfileView.d.ts +7 -1
  103. package/dist/handlers/compact/high/handleHandlerProfileView.d.ts.map +1 -1
  104. package/dist/handlers/compact/high/handleHandlerProfileView.js +1 -1
  105. package/dist/handlers/compact/high/handleHandlerProfileView.js.map +1 -1
  106. package/dist/handlers/compact/high/handleHandlerServiceBindingListTypes.d.ts +2 -1
  107. package/dist/handlers/compact/high/handleHandlerServiceBindingListTypes.d.ts.map +1 -1
  108. package/dist/handlers/compact/high/handleHandlerServiceBindingListTypes.js +1 -1
  109. package/dist/handlers/compact/high/handleHandlerServiceBindingListTypes.js.map +1 -1
  110. package/dist/handlers/compact/high/handleHandlerServiceBindingValidate.d.ts +6 -1
  111. package/dist/handlers/compact/high/handleHandlerServiceBindingValidate.d.ts.map +1 -1
  112. package/dist/handlers/compact/high/handleHandlerServiceBindingValidate.js +1 -1
  113. package/dist/handlers/compact/high/handleHandlerServiceBindingValidate.js.map +1 -1
  114. package/dist/handlers/compact/high/handleHandlerTransportCreate.d.ts +5 -1
  115. package/dist/handlers/compact/high/handleHandlerTransportCreate.d.ts.map +1 -1
  116. package/dist/handlers/compact/high/handleHandlerTransportCreate.js +1 -1
  117. package/dist/handlers/compact/high/handleHandlerTransportCreate.js.map +1 -1
  118. package/dist/handlers/compact/high/handleHandlerUnitTestResult.d.ts +4 -1
  119. package/dist/handlers/compact/high/handleHandlerUnitTestResult.d.ts.map +1 -1
  120. package/dist/handlers/compact/high/handleHandlerUnitTestResult.js +1 -1
  121. package/dist/handlers/compact/high/handleHandlerUnitTestResult.js.map +1 -1
  122. package/dist/handlers/compact/high/handleHandlerUnitTestRun.d.ts +18 -1
  123. package/dist/handlers/compact/high/handleHandlerUnitTestRun.d.ts.map +1 -1
  124. package/dist/handlers/compact/high/handleHandlerUnitTestRun.js +1 -1
  125. package/dist/handlers/compact/high/handleHandlerUnitTestRun.js.map +1 -1
  126. package/dist/handlers/compact/high/handleHandlerUnitTestStatus.d.ts +3 -1
  127. package/dist/handlers/compact/high/handleHandlerUnitTestStatus.d.ts.map +1 -1
  128. package/dist/handlers/compact/high/handleHandlerUnitTestStatus.js +1 -1
  129. package/dist/handlers/compact/high/handleHandlerUnitTestStatus.js.map +1 -1
  130. package/dist/handlers/compact/high/handleHandlerUnlock.d.ts +7 -1
  131. package/dist/handlers/compact/high/handleHandlerUnlock.d.ts.map +1 -1
  132. package/dist/handlers/compact/high/handleHandlerUnlock.js +1 -1
  133. package/dist/handlers/compact/high/handleHandlerUnlock.js.map +1 -1
  134. package/dist/handlers/compact/high/handleHandlerUpdate.d.ts +21 -1
  135. package/dist/handlers/compact/high/handleHandlerUpdate.d.ts.map +1 -1
  136. package/dist/handlers/compact/high/handleHandlerUpdate.js +1 -1
  137. package/dist/handlers/compact/high/handleHandlerUpdate.js.map +1 -1
  138. package/dist/handlers/compact/high/handleHandlerValidate.d.ts +22 -10
  139. package/dist/handlers/compact/high/handleHandlerValidate.d.ts.map +1 -1
  140. package/dist/handlers/compact/high/handleHandlerValidate.js +1 -1
  141. package/dist/handlers/compact/high/handleHandlerValidate.js.map +1 -1
  142. package/dist/handlers/data_element/handleCreateDataElement.d.ts +83 -0
  143. package/dist/handlers/data_element/handleCreateDataElement.d.ts.map +1 -0
  144. package/dist/handlers/data_element/handleCreateDataElement.js +180 -0
  145. package/dist/handlers/data_element/handleGetDataElement.d.ts +29 -0
  146. package/dist/handlers/data_element/handleGetDataElement.d.ts.map +1 -0
  147. package/dist/handlers/data_element/handleGetDataElement.js +173 -0
  148. package/dist/handlers/data_element/handleUpdateDataElement.d.ts +131 -0
  149. package/dist/handlers/data_element/handleUpdateDataElement.d.ts.map +1 -0
  150. package/dist/handlers/data_element/handleUpdateDataElement.js +258 -0
  151. package/dist/handlers/data_element/readonly/handleGetDataElement.d.ts +33 -0
  152. package/dist/handlers/data_element/readonly/handleGetDataElement.d.ts.map +1 -0
  153. package/dist/handlers/data_element/readonly/handleGetDataElement.js +173 -0
  154. package/dist/handlers/ddlx/handleCreateMetadataExtension.d.ts +41 -0
  155. package/dist/handlers/ddlx/handleCreateMetadataExtension.d.ts.map +1 -0
  156. package/dist/handlers/ddlx/handleCreateMetadataExtension.js +92 -0
  157. package/dist/handlers/ddlx/handleUpdateMetadataExtension.d.ts +37 -0
  158. package/dist/handlers/ddlx/handleUpdateMetadataExtension.d.ts.map +1 -0
  159. package/dist/handlers/ddlx/handleUpdateMetadataExtension.js +81 -0
  160. package/dist/handlers/domain/handleCreateDomain.d.ts +104 -0
  161. package/dist/handlers/domain/handleCreateDomain.d.ts.map +1 -0
  162. package/dist/handlers/domain/handleCreateDomain.js +187 -0
  163. package/dist/handlers/domain/handleGetDomain.d.ts +19 -0
  164. package/dist/handlers/domain/handleGetDomain.d.ts.map +1 -0
  165. package/dist/handlers/domain/handleGetDomain.js +138 -0
  166. package/dist/handlers/domain/handleUpdateDomain.d.ts +99 -0
  167. package/dist/handlers/domain/handleUpdateDomain.d.ts.map +1 -0
  168. package/dist/handlers/domain/handleUpdateDomain.js +204 -0
  169. package/dist/handlers/domain/readonly/handleGetDomain.d.ts +23 -0
  170. package/dist/handlers/domain/readonly/handleGetDomain.d.ts.map +1 -0
  171. package/dist/handlers/domain/readonly/handleGetDomain.js +138 -0
  172. package/dist/handlers/enhancement/handleGetEnhancementImpl.d.ts +69 -0
  173. package/dist/handlers/enhancement/handleGetEnhancementImpl.d.ts.map +1 -0
  174. package/dist/handlers/enhancement/handleGetEnhancementImpl.js +171 -0
  175. package/dist/handlers/enhancement/handleGetEnhancementSpot.d.ts +53 -0
  176. package/dist/handlers/enhancement/handleGetEnhancementSpot.d.ts.map +1 -0
  177. package/dist/handlers/enhancement/handleGetEnhancementSpot.js +153 -0
  178. package/dist/handlers/enhancement/handleGetEnhancements.d.ts +64 -0
  179. package/dist/handlers/enhancement/handleGetEnhancements.d.ts.map +1 -0
  180. package/dist/handlers/enhancement/handleGetEnhancements.js +599 -0
  181. package/dist/handlers/function/handleCheckFunctionModule.d.ts +59 -0
  182. package/dist/handlers/function/handleCheckFunctionModule.d.ts.map +1 -0
  183. package/dist/handlers/function/handleCheckFunctionModule.js +140 -0
  184. package/dist/handlers/function/handleCreateFunctionGroup.d.ts +52 -0
  185. package/dist/handlers/function/handleCreateFunctionGroup.d.ts.map +1 -0
  186. package/dist/handlers/function/handleCreateFunctionGroup.js +114 -0
  187. package/dist/handlers/function/handleCreateFunctionModule.d.ts +57 -0
  188. package/dist/handlers/function/handleCreateFunctionModule.d.ts.map +1 -0
  189. package/dist/handlers/function/handleCreateFunctionModule.js +137 -0
  190. package/dist/handlers/function/handleGetFunction.d.ts +17 -0
  191. package/dist/handlers/function/handleGetFunction.d.ts.map +1 -0
  192. package/dist/handlers/function/handleGetFunction.js +172 -0
  193. package/dist/handlers/function/handleGetFunctionGroup.d.ts +16 -0
  194. package/dist/handlers/function/handleGetFunctionGroup.d.ts.map +1 -0
  195. package/dist/handlers/function/handleGetFunctionGroup.js +132 -0
  196. package/dist/handlers/function/handleUpdateFunctionModuleSource.d.ts +54 -0
  197. package/dist/handlers/function/handleUpdateFunctionModuleSource.d.ts.map +1 -0
  198. package/dist/handlers/function/handleUpdateFunctionModuleSource.js +108 -0
  199. package/dist/handlers/function/handleValidateFunctionModule.d.ts +58 -0
  200. package/dist/handlers/function/handleValidateFunctionModule.d.ts.map +1 -0
  201. package/dist/handlers/function/handleValidateFunctionModule.js +132 -0
  202. package/dist/handlers/function/readonly/handleGetFunctionGroup.d.ts +16 -0
  203. package/dist/handlers/function/readonly/handleGetFunctionGroup.d.ts.map +1 -0
  204. package/dist/handlers/function/readonly/handleGetFunctionGroup.js +132 -0
  205. package/dist/handlers/include/handleGetInclude.d.ts +16 -0
  206. package/dist/handlers/include/handleGetInclude.d.ts.map +1 -0
  207. package/dist/handlers/include/handleGetInclude.js +81 -0
  208. package/dist/handlers/include/handleGetIncludesList.d.ts +36 -0
  209. package/dist/handlers/include/handleGetIncludesList.d.ts.map +1 -0
  210. package/dist/handlers/include/handleGetIncludesList.js +223 -0
  211. package/dist/handlers/interface/handleCreateInterface.d.ts +64 -0
  212. package/dist/handlers/interface/handleCreateInterface.d.ts.map +1 -0
  213. package/dist/handlers/interface/handleCreateInterface.js +175 -0
  214. package/dist/handlers/interface/handleGetInterface.d.ts +40 -0
  215. package/dist/handlers/interface/handleGetInterface.d.ts.map +1 -0
  216. package/dist/handlers/interface/handleGetInterface.js +134 -0
  217. package/dist/handlers/interface/handleUpdateInterfaceSource.d.ts +48 -0
  218. package/dist/handlers/interface/handleUpdateInterfaceSource.d.ts.map +1 -0
  219. package/dist/handlers/interface/handleUpdateInterfaceSource.js +127 -0
  220. package/dist/handlers/interface/readonly/handleGetInterface.d.ts +44 -0
  221. package/dist/handlers/interface/readonly/handleGetInterface.d.ts.map +1 -0
  222. package/dist/handlers/interface/readonly/handleGetInterface.js +134 -0
  223. package/dist/handlers/package/handleCreatePackage.d.ts +38 -0
  224. package/dist/handlers/package/handleCreatePackage.d.ts.map +1 -0
  225. package/dist/handlers/package/handleCreatePackage.js +127 -0
  226. package/dist/handlers/package/handleGetPackage.d.ts +16 -0
  227. package/dist/handlers/package/handleGetPackage.d.ts.map +1 -0
  228. package/dist/handlers/package/handleGetPackage.js +94 -0
  229. package/dist/handlers/package/readonly/handleGetPackage.d.ts +21 -0
  230. package/dist/handlers/package/readonly/handleGetPackage.d.ts.map +1 -0
  231. package/dist/handlers/package/readonly/handleGetPackage.js +94 -0
  232. package/dist/handlers/program/handleCreateProgram.d.ts +73 -0
  233. package/dist/handlers/program/handleCreateProgram.d.ts.map +1 -0
  234. package/dist/handlers/program/handleCreateProgram.js +220 -0
  235. package/dist/handlers/program/handleGetProgFullCode.d.ts +67 -0
  236. package/dist/handlers/program/handleGetProgFullCode.d.ts.map +1 -0
  237. package/dist/handlers/program/handleGetProgFullCode.js +249 -0
  238. package/dist/handlers/program/handleGetProgram.d.ts +16 -0
  239. package/dist/handlers/program/handleGetProgram.d.ts.map +1 -0
  240. package/dist/handlers/program/handleGetProgram.js +71 -0
  241. package/dist/handlers/program/handleUpdateProgramSource.d.ts +44 -0
  242. package/dist/handlers/program/handleUpdateProgramSource.d.ts.map +1 -0
  243. package/dist/handlers/program/handleUpdateProgramSource.js +121 -0
  244. package/dist/handlers/program/readonly/handleGetProgram.d.ts +20 -0
  245. package/dist/handlers/program/readonly/handleGetProgram.d.ts.map +1 -0
  246. package/dist/handlers/program/readonly/handleGetProgram.js +71 -0
  247. package/dist/handlers/search/handleGetObjectsByType.d.ts +42 -0
  248. package/dist/handlers/search/handleGetObjectsByType.d.ts.map +1 -0
  249. package/dist/handlers/search/handleGetObjectsByType.js +166 -0
  250. package/dist/handlers/search/handleGetObjectsList.d.ts +46 -0
  251. package/dist/handlers/search/handleGetObjectsList.d.ts.map +1 -0
  252. package/dist/handlers/search/handleGetObjectsList.js +145 -0
  253. package/dist/handlers/search/handleSearchObject.d.ts +28 -0
  254. package/dist/handlers/search/handleSearchObject.d.ts.map +1 -0
  255. package/dist/handlers/search/handleSearchObject.js +119 -0
  256. package/dist/handlers/service_definition/readonly/handleGetServiceDefinition.d.ts +17 -0
  257. package/dist/handlers/service_definition/readonly/handleGetServiceDefinition.d.ts.map +1 -0
  258. package/dist/handlers/service_definition/readonly/handleGetServiceDefinition.js +136 -0
  259. package/dist/handlers/structure/handleCreateStructure.d.ts +107 -0
  260. package/dist/handlers/structure/handleCreateStructure.d.ts.map +1 -0
  261. package/dist/handlers/structure/handleCreateStructure.js +184 -0
  262. package/dist/handlers/structure/handleGetStructure.d.ts +16 -0
  263. package/dist/handlers/structure/handleGetStructure.d.ts.map +1 -0
  264. package/dist/handlers/structure/handleGetStructure.js +139 -0
  265. package/dist/handlers/structure/readonly/handleGetStructure.d.ts +16 -0
  266. package/dist/handlers/structure/readonly/handleGetStructure.d.ts.map +1 -0
  267. package/dist/handlers/structure/readonly/handleGetStructure.js +139 -0
  268. package/dist/handlers/system/handleDescribeByList.d.ts +36 -0
  269. package/dist/handlers/system/handleDescribeByList.d.ts.map +1 -0
  270. package/dist/handlers/system/handleDescribeByList.js +121 -0
  271. package/dist/handlers/system/handleGetAbapAST.d.ts +26 -0
  272. package/dist/handlers/system/handleGetAbapAST.d.ts.map +1 -0
  273. package/dist/handlers/system/handleGetAbapAST.js +172 -0
  274. package/dist/handlers/system/handleGetAbapSemanticAnalysis.d.ts +26 -0
  275. package/dist/handlers/system/handleGetAbapSemanticAnalysis.d.ts.map +1 -0
  276. package/dist/handlers/system/handleGetAbapSemanticAnalysis.js +353 -0
  277. package/dist/handlers/system/handleGetAbapSystemSymbols.d.ts +26 -0
  278. package/dist/handlers/system/handleGetAbapSystemSymbols.d.ts.map +1 -0
  279. package/dist/handlers/system/handleGetAbapSystemSymbols.js +574 -0
  280. package/dist/handlers/system/handleGetAllTypes.d.ts +22 -0
  281. package/dist/handlers/system/handleGetAllTypes.d.ts.map +1 -0
  282. package/dist/handlers/system/handleGetAllTypes.js +102 -0
  283. package/dist/handlers/system/handleGetInactiveObjects.d.ts +20 -0
  284. package/dist/handlers/system/handleGetInactiveObjects.d.ts.map +1 -0
  285. package/dist/handlers/system/handleGetInactiveObjects.js +41 -0
  286. package/dist/handlers/system/handleGetObjectInfo.d.ts +41 -0
  287. package/dist/handlers/system/handleGetObjectInfo.d.ts.map +1 -0
  288. package/dist/handlers/system/handleGetObjectInfo.js +210 -0
  289. package/dist/handlers/system/handleGetObjectNodeFromCache.d.ts +40 -0
  290. package/dist/handlers/system/handleGetObjectNodeFromCache.d.ts.map +1 -0
  291. package/dist/handlers/system/handleGetObjectNodeFromCache.js +70 -0
  292. package/dist/handlers/system/handleGetObjectStructure.d.ts +26 -0
  293. package/dist/handlers/system/handleGetObjectStructure.d.ts.map +1 -0
  294. package/dist/handlers/system/handleGetObjectStructure.js +103 -0
  295. package/dist/handlers/system/handleGetSession.d.ts +33 -0
  296. package/dist/handlers/system/handleGetSession.d.ts.map +1 -0
  297. package/dist/handlers/system/handleGetSession.js +63 -0
  298. package/dist/handlers/system/handleGetSqlQuery.d.ts +49 -0
  299. package/dist/handlers/system/handleGetSqlQuery.d.ts.map +1 -0
  300. package/dist/handlers/system/handleGetSqlQuery.js +176 -0
  301. package/dist/handlers/system/handleGetTransaction.d.ts +42 -0
  302. package/dist/handlers/system/handleGetTransaction.d.ts.map +1 -0
  303. package/dist/handlers/system/handleGetTransaction.js +91 -0
  304. package/dist/handlers/system/handleGetTypeInfo.d.ts +69 -0
  305. package/dist/handlers/system/handleGetTypeInfo.d.ts.map +1 -0
  306. package/dist/handlers/system/handleGetTypeInfo.js +169 -0
  307. package/dist/handlers/system/handleGetWhereUsed.d.ts +69 -0
  308. package/dist/handlers/system/handleGetWhereUsed.d.ts.map +1 -0
  309. package/dist/handlers/system/handleGetWhereUsed.js +405 -0
  310. package/dist/handlers/table/handleCheckTable.d.ts +55 -0
  311. package/dist/handlers/table/handleCheckTable.d.ts.map +1 -0
  312. package/dist/handlers/table/handleCheckTable.js +138 -0
  313. package/dist/handlers/table/handleCreateTable.d.ts +42 -0
  314. package/dist/handlers/table/handleCreateTable.d.ts.map +1 -0
  315. package/dist/handlers/table/handleCreateTable.js +118 -0
  316. package/dist/handlers/table/handleGetTable.d.ts +16 -0
  317. package/dist/handlers/table/handleGetTable.d.ts.map +1 -0
  318. package/dist/handlers/table/handleGetTable.js +140 -0
  319. package/dist/handlers/table/handleGetTableContents.d.ts +56 -0
  320. package/dist/handlers/table/handleGetTableContents.d.ts.map +1 -0
  321. package/dist/handlers/table/handleGetTableContents.js +387 -0
  322. package/dist/handlers/table/handleValidateTable.d.ts +53 -0
  323. package/dist/handlers/table/handleValidateTable.d.ts.map +1 -0
  324. package/dist/handlers/table/handleValidateTable.js +125 -0
  325. package/dist/handlers/table/readonly/handleGetTable.d.ts +20 -0
  326. package/dist/handlers/table/readonly/handleGetTable.d.ts.map +1 -0
  327. package/dist/handlers/table/readonly/handleGetTable.js +140 -0
  328. package/dist/handlers/transport/handleCreateTransport.d.ts +50 -0
  329. package/dist/handlers/transport/handleCreateTransport.d.ts.map +1 -0
  330. package/dist/handlers/transport/handleCreateTransport.js +151 -0
  331. package/dist/handlers/transport/handleGetTransport.d.ts +44 -0
  332. package/dist/handlers/transport/handleGetTransport.d.ts.map +1 -0
  333. package/dist/handlers/transport/handleGetTransport.js +183 -0
  334. package/dist/handlers/view/handleCreateView.d.ts +52 -0
  335. package/dist/handlers/view/handleCreateView.d.ts.map +1 -0
  336. package/dist/handlers/view/handleCreateView.js +139 -0
  337. package/dist/handlers/view/handleGetView.d.ts +26 -0
  338. package/dist/handlers/view/handleGetView.d.ts.map +1 -0
  339. package/dist/handlers/view/handleGetView.js +349 -0
  340. package/dist/handlers/view/handleUpdateViewSource.d.ts +44 -0
  341. package/dist/handlers/view/handleUpdateViewSource.d.ts.map +1 -0
  342. package/dist/handlers/view/handleUpdateViewSource.js +136 -0
  343. package/dist/handlers/view/readonly/handleGetView.d.ts +26 -0
  344. package/dist/handlers/view/readonly/handleGetView.d.ts.map +1 -0
  345. package/dist/handlers/view/readonly/handleGetView.js +349 -0
  346. package/dist/index.d.ts +94 -0
  347. package/dist/index.d.ts.map +1 -0
  348. package/dist/index.js +2453 -0
  349. package/dist/lib/activationUtils.d.ts +59 -0
  350. package/dist/lib/activationUtils.d.ts.map +1 -0
  351. package/dist/lib/activationUtils.js +168 -0
  352. package/dist/lib/config/ArgumentsParser.d.ts +2 -0
  353. package/dist/lib/config/ArgumentsParser.d.ts.map +1 -1
  354. package/dist/lib/config/ArgumentsParser.js +11 -1
  355. package/dist/lib/config/ArgumentsParser.js.map +1 -1
  356. package/dist/lib/config/IServerConfig.d.ts +2 -0
  357. package/dist/lib/config/IServerConfig.d.ts.map +1 -1
  358. package/dist/lib/config/ServerConfigManager.d.ts.map +1 -1
  359. package/dist/lib/config/ServerConfigManager.js +3 -0
  360. package/dist/lib/config/ServerConfigManager.js.map +1 -1
  361. package/dist/lib/getFullCodeCache.d.ts +3 -0
  362. package/dist/lib/getFullCodeCache.d.ts.map +1 -0
  363. package/dist/lib/getFullCodeCache.js +56 -0
  364. package/dist/lib/toolsRegistry.d.ts +13 -0
  365. package/dist/lib/toolsRegistry.d.ts.map +1 -0
  366. package/dist/lib/toolsRegistry.js +410 -0
  367. package/dist/server/AuthBrokerConfig.d.ts.map +1 -1
  368. package/dist/server/AuthBrokerConfig.js +14 -9
  369. package/dist/server/AuthBrokerConfig.js.map +1 -1
  370. package/dist/server/BaseMcpServer.d.ts.map +1 -1
  371. package/dist/server/BaseMcpServer.js +6 -0
  372. package/dist/server/BaseMcpServer.js.map +1 -1
  373. package/dist/server/launcher.js +4 -4
  374. package/dist/server/launcher.js.map +1 -1
  375. package/dist/utils/lockStateManager.d.ts +64 -0
  376. package/dist/utils/lockStateManager.d.ts.map +1 -0
  377. package/dist/utils/lockStateManager.js +173 -0
  378. package/dist/utils/lockStateManager.js.map +1 -0
  379. package/docs/user-guide/AUTHENTICATION.md +7 -0
  380. package/docs/user-guide/AVAILABLE_TOOLS.md +189 -174
  381. package/docs/user-guide/AVAILABLE_TOOLS_COMPACT.md +189 -174
  382. package/docs/user-guide/AVAILABLE_TOOLS_HIGH.md +189 -174
  383. package/docs/user-guide/CLI_OPTIONS.md +14 -0
  384. package/package.json +2 -1
  385. package/dist/handlers/service_binding/high/handleListServiceBindings.d.ts +0 -44
  386. package/dist/handlers/service_binding/high/handleListServiceBindings.d.ts.map +0 -1
  387. package/dist/handlers/service_binding/high/handleListServiceBindings.js +0 -211
  388. package/dist/handlers/service_binding/high/handleListServiceBindings.js.map +0 -1
  389. package/dist/handlers/service_binding/high/serviceBindingXmlBuilder.d.ts +0 -11
  390. package/dist/handlers/service_binding/high/serviceBindingXmlBuilder.d.ts.map +0 -1
  391. package/dist/handlers/service_binding/high/serviceBindingXmlBuilder.js +0 -27
  392. package/dist/handlers/service_binding/high/serviceBindingXmlBuilder.js.map +0 -1
  393. package/dist/handlers/system/readonly/handleRuntimeGetDumpByUri.d.ts +0 -27
  394. package/dist/handlers/system/readonly/handleRuntimeGetDumpByUri.d.ts.map +0 -1
  395. package/dist/handlers/system/readonly/handleRuntimeGetDumpByUri.js +0 -47
  396. package/dist/handlers/system/readonly/handleRuntimeGetDumpByUri.js.map +0 -1
  397. package/dist/handlers/system/readonly/runtimeDumpReadCompat.d.ts +0 -8
  398. package/dist/handlers/system/readonly/runtimeDumpReadCompat.d.ts.map +0 -1
  399. package/dist/handlers/system/readonly/runtimeDumpReadCompat.js +0 -55
  400. package/dist/handlers/system/readonly/runtimeDumpReadCompat.js.map +0 -1
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.TOOL_DEFINITION = void 0;
37
+ exports.handleGetFunction = handleGetFunction;
38
+ const utils_1 = require("../../lib/utils");
39
+ const adt_clients_1 = require("@mcp-abap-adt/adt-clients");
40
+ const fast_xml_parser_1 = require("fast-xml-parser");
41
+ const writeResultToFile_1 = require("../../lib/writeResultToFile");
42
+ const z = __importStar(require("zod"));
43
+ exports.TOOL_DEFINITION = {
44
+ name: "GetFunction",
45
+ description: "Retrieve ABAP Function Module source code.",
46
+ inputSchema: {
47
+ function_name: z.string().describe("Name of the function module"),
48
+ function_group: z.string().describe("Name of the function group")
49
+ }
50
+ };
51
+ function parseFunctionXml(xml) {
52
+ const parser = new fast_xml_parser_1.XMLParser({
53
+ ignoreAttributes: false,
54
+ attributeNamePrefix: '',
55
+ parseAttributeValue: true,
56
+ trimValues: true
57
+ });
58
+ const result = parser.parse(xml);
59
+ // ADT Function Module XML (FUGR/FM)
60
+ if (result['fu:functionModule']) {
61
+ const f = result['fu:functionModule'];
62
+ // Parameter extraction helper
63
+ const params = (section) => {
64
+ const arr = f[section]?.['fu:parameter'];
65
+ if (!arr)
66
+ return [];
67
+ return Array.isArray(arr)
68
+ ? arr.map(p => ({
69
+ name: p['fu:name'],
70
+ type: p['fu:type'],
71
+ typing: p['fu:typing'],
72
+ reference: p['fu:reference'],
73
+ default: p['fu:default'],
74
+ optional: p['fu:optional'] === 'true',
75
+ description: p['fu:description']
76
+ }))
77
+ : [{
78
+ name: arr['fu:name'],
79
+ type: arr['fu:type'],
80
+ typing: arr['fu:typing'],
81
+ reference: arr['fu:reference'],
82
+ default: arr['fu:default'],
83
+ optional: arr['fu:optional'] === 'true',
84
+ description: arr['fu:description']
85
+ }];
86
+ };
87
+ // Table parameters
88
+ const tables = params('fu:tables');
89
+ // Import/export/changing parameter sets
90
+ const importing = params('fu:importing');
91
+ const exporting = params('fu:exporting');
92
+ const changing = params('fu:changing');
93
+ // Exceptions
94
+ const exceptions = f['fu:exceptions']?.['fu:exception'];
95
+ const excArr = !exceptions ? [] : Array.isArray(exceptions)
96
+ ? exceptions.map(e => e['fu:name'])
97
+ : [exceptions['fu:name']];
98
+ // Source code
99
+ const source = f['fu:source'];
100
+ return {
101
+ name: f['adtcore:name'],
102
+ objectType: 'function_module',
103
+ description: f['adtcore:description'],
104
+ group: f['adtcore:parentRef']?.['adtcore:name'] || null,
105
+ importing,
106
+ exporting,
107
+ changing,
108
+ tables,
109
+ exceptions: excArr,
110
+ source
111
+ };
112
+ }
113
+ // fallback: return raw
114
+ return { raw: result };
115
+ }
116
+ async function handleGetFunction(args) {
117
+ try {
118
+ if (!args?.function_name || !args?.function_group) {
119
+ throw new utils_1.McpError(utils_1.ErrorCode.InvalidParams, 'Function name and group are required');
120
+ }
121
+ const connection = (0, utils_1.getManagedConnection)();
122
+ const client = new adt_clients_1.CrudClient(connection);
123
+ await client.readFunctionModule(args.function_name, args.function_group);
124
+ const response = client.getReadResult();
125
+ if (!response) {
126
+ throw new utils_1.McpError(utils_1.ErrorCode.InternalError, 'Failed to read function module');
127
+ }
128
+ // Parse XML responses and return JSON; otherwise stream back the plain text
129
+ if (typeof response.data === 'string' && response.data.trim().startsWith('<?xml')) {
130
+ const resultObj = parseFunctionXml(response.data);
131
+ const result = {
132
+ isError: false,
133
+ content: [
134
+ {
135
+ type: "text",
136
+ text: JSON.stringify(resultObj, null, 2)
137
+ }
138
+ ]
139
+ };
140
+ if (args.filePath) {
141
+ (0, writeResultToFile_1.writeResultToFile)(JSON.stringify(result, null, 2), args.filePath);
142
+ }
143
+ return result;
144
+ }
145
+ else {
146
+ // Wrap plain text responses in the MCP format
147
+ if (args.filePath) {
148
+ (0, writeResultToFile_1.writeResultToFile)(response.data, args.filePath);
149
+ }
150
+ return {
151
+ isError: false,
152
+ content: [
153
+ {
154
+ type: "text",
155
+ text: response.data
156
+ }
157
+ ]
158
+ };
159
+ }
160
+ }
161
+ catch (error) {
162
+ return {
163
+ isError: true,
164
+ content: [
165
+ {
166
+ type: "text",
167
+ text: error instanceof Error ? error.message : String(error)
168
+ }
169
+ ]
170
+ };
171
+ }
172
+ }
@@ -0,0 +1,16 @@
1
+ import * as z from 'zod';
2
+ export declare const TOOL_DEFINITION: {
3
+ readonly name: "GetFunctionGroup";
4
+ readonly description: "Retrieve ABAP Function Group source code.";
5
+ readonly inputSchema: {
6
+ readonly function_group: z.ZodString;
7
+ };
8
+ };
9
+ export declare function handleGetFunctionGroup(args: any): Promise<{
10
+ isError: boolean;
11
+ content: {
12
+ type: string;
13
+ text: any;
14
+ }[];
15
+ }>;
16
+ //# sourceMappingURL=handleGetFunctionGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleGetFunctionGroup.d.ts","sourceRoot":"","sources":["../../../src/handlers/function/handleGetFunctionGroup.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AA+BX,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,GAAG;;;;;;GAsDrD"}
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.TOOL_DEFINITION = void 0;
37
+ exports.handleGetFunctionGroup = handleGetFunctionGroup;
38
+ const utils_1 = require("../../lib/utils");
39
+ const adt_clients_1 = require("@mcp-abap-adt/adt-clients");
40
+ const fast_xml_parser_1 = require("fast-xml-parser");
41
+ const writeResultToFile_1 = require("../../lib/writeResultToFile");
42
+ const z = __importStar(require("zod"));
43
+ exports.TOOL_DEFINITION = {
44
+ name: "GetFunctionGroup",
45
+ description: "Retrieve ABAP Function Group source code.",
46
+ inputSchema: {
47
+ function_group: z.string().describe("Name of the function group")
48
+ }
49
+ };
50
+ function parseFunctionGroupXml(xml) {
51
+ const parser = new fast_xml_parser_1.XMLParser({
52
+ ignoreAttributes: false,
53
+ attributeNamePrefix: '',
54
+ parseAttributeValue: true,
55
+ trimValues: true
56
+ });
57
+ const result = parser.parse(xml);
58
+ // ADT Function Group XML (FUGR)
59
+ if (result['fu:functionGroup']) {
60
+ const fg = result['fu:functionGroup'];
61
+ const modules = fg['fu:functionModules']?.['fu:functionModule'];
62
+ const moduleArr = !modules ? [] : Array.isArray(modules)
63
+ ? modules.map(m => m['adtcore:name'])
64
+ : [modules['adtcore:name']];
65
+ return {
66
+ name: fg['adtcore:name'],
67
+ objectType: 'function_group',
68
+ description: fg['adtcore:description'],
69
+ package: fg['adtcore:packageRef']?.['adtcore:name'] || null,
70
+ functionModules: moduleArr
71
+ };
72
+ }
73
+ // fallback: return raw
74
+ return { raw: result };
75
+ }
76
+ async function handleGetFunctionGroup(args) {
77
+ try {
78
+ if (!args?.function_group) {
79
+ throw new utils_1.McpError(utils_1.ErrorCode.InvalidParams, 'Function Group is required');
80
+ }
81
+ const connection = (0, utils_1.getManagedConnection)();
82
+ const client = new adt_clients_1.CrudClient(connection);
83
+ await client.readFunctionGroup(args.function_group);
84
+ const response = client.getReadResult();
85
+ if (!response) {
86
+ throw new utils_1.McpError(utils_1.ErrorCode.InternalError, 'Failed to read function group');
87
+ }
88
+ // Parse XML responses; otherwise return the payload unchanged
89
+ if (typeof response.data === 'string' && response.data.trim().startsWith('<?xml')) {
90
+ const resultObj = parseFunctionGroupXml(response.data);
91
+ const result = {
92
+ isError: false,
93
+ content: [
94
+ {
95
+ type: "text",
96
+ text: JSON.stringify(resultObj, null, 2)
97
+ }
98
+ ]
99
+ };
100
+ if (args.filePath) {
101
+ (0, writeResultToFile_1.writeResultToFile)(JSON.stringify(result, null, 2), args.filePath);
102
+ }
103
+ return result;
104
+ }
105
+ else {
106
+ const plainResult = {
107
+ isError: false,
108
+ content: [
109
+ {
110
+ type: "text",
111
+ text: response.data
112
+ }
113
+ ]
114
+ };
115
+ if (args.filePath) {
116
+ (0, writeResultToFile_1.writeResultToFile)(response.data, args.filePath);
117
+ }
118
+ return plainResult;
119
+ }
120
+ }
121
+ catch (error) {
122
+ return {
123
+ isError: true,
124
+ content: [
125
+ {
126
+ type: "text",
127
+ text: error instanceof Error ? error.message : String(error)
128
+ }
129
+ ]
130
+ };
131
+ }
132
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * UpdateFunctionModuleSource Handler - Update Existing ABAP Function Module Source Code
3
+ *
4
+ * Uses FunctionModuleBuilder from @mcp-abap-adt/adt-clients for all operations.
5
+ * Session and lock management handled internally by builder.
6
+ *
7
+ * Workflow: validate -> lock -> update -> check -> unlock -> (activate)
8
+ */
9
+ export declare const TOOL_DEFINITION: {
10
+ readonly name: "UpdateFunctionModuleSource";
11
+ readonly description: "Update source code of an existing ABAP function module. Locks the function module, uploads new source code, and unlocks. Optionally activates after update. Use this to modify existing function modules without re-creating metadata.";
12
+ readonly inputSchema: {
13
+ readonly type: "object";
14
+ readonly properties: {
15
+ readonly function_group_name: {
16
+ readonly type: "string";
17
+ readonly description: "Function group name containing the function module (e.g., ZOK_FG_MCP01).";
18
+ };
19
+ readonly function_module_name: {
20
+ readonly type: "string";
21
+ readonly description: "Function module name (e.g., Z_TEST_FM_MCP01). Function module must already exist.";
22
+ };
23
+ readonly source_code: {
24
+ readonly type: "string";
25
+ readonly description: "Complete ABAP function module source code. Must include FUNCTION statement with parameters and ENDFUNCTION. Example:\n\nFUNCTION Z_TEST_FM\n IMPORTING\n VALUE(iv_input) TYPE string\n EXPORTING\n VALUE(ev_output) TYPE string.\n \n ev_output = iv_input.\nENDFUNCTION.";
26
+ };
27
+ readonly transport_request: {
28
+ readonly type: "string";
29
+ readonly description: "Transport request number (e.g., E19K905635). Required for transportable function modules.";
30
+ };
31
+ readonly activate: {
32
+ readonly type: "boolean";
33
+ readonly description: "Activate function module after source update. Default: false. Set to true to activate immediately.";
34
+ };
35
+ };
36
+ readonly required: readonly ["function_group_name", "function_module_name", "source_code"];
37
+ };
38
+ };
39
+ interface UpdateFunctionModuleSourceArgs {
40
+ function_group_name: string;
41
+ function_module_name: string;
42
+ source_code: string;
43
+ transport_request?: string;
44
+ activate?: boolean;
45
+ }
46
+ /**
47
+ * Main handler for UpdateFunctionModuleSource MCP tool
48
+ *
49
+ * Uses FunctionModuleBuilder from @mcp-abap-adt/adt-clients for all operations
50
+ * Session and lock management handled internally by builder
51
+ */
52
+ export declare function handleUpdateFunctionModuleSource(args: UpdateFunctionModuleSourceArgs): Promise<any>;
53
+ export {};
54
+ //# sourceMappingURL=handleUpdateFunctionModuleSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleUpdateFunctionModuleSource.d.ts","sourceRoot":"","sources":["../../../src/handlers/function/handleUpdateFunctionModuleSource.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlB,CAAC;AAEX,UAAU,8BAA8B;IACtC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAGD;;;;;GAKG;AACH,wBAAsB,gCAAgC,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,GAAG,CAAC,CAkEzG"}
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateFunctionModuleSource Handler - Update Existing ABAP Function Module Source Code
4
+ *
5
+ * Uses FunctionModuleBuilder from @mcp-abap-adt/adt-clients for all operations.
6
+ * Session and lock management handled internally by builder.
7
+ *
8
+ * Workflow: validate -> lock -> update -> check -> unlock -> (activate)
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.TOOL_DEFINITION = void 0;
12
+ exports.handleUpdateFunctionModuleSource = handleUpdateFunctionModuleSource;
13
+ const utils_1 = require("../../lib/utils");
14
+ const adt_clients_1 = require("@mcp-abap-adt/adt-clients");
15
+ exports.TOOL_DEFINITION = {
16
+ name: "UpdateFunctionModuleSource",
17
+ description: "Update source code of an existing ABAP function module. Locks the function module, uploads new source code, and unlocks. Optionally activates after update. Use this to modify existing function modules without re-creating metadata.",
18
+ inputSchema: {
19
+ type: "object",
20
+ properties: {
21
+ function_group_name: {
22
+ type: "string",
23
+ description: "Function group name containing the function module (e.g., ZOK_FG_MCP01)."
24
+ },
25
+ function_module_name: {
26
+ type: "string",
27
+ description: "Function module name (e.g., Z_TEST_FM_MCP01). Function module must already exist."
28
+ },
29
+ source_code: {
30
+ type: "string",
31
+ description: "Complete ABAP function module source code. Must include FUNCTION statement with parameters and ENDFUNCTION. Example:\n\nFUNCTION Z_TEST_FM\n IMPORTING\n VALUE(iv_input) TYPE string\n EXPORTING\n VALUE(ev_output) TYPE string.\n \n ev_output = iv_input.\nENDFUNCTION."
32
+ },
33
+ transport_request: {
34
+ type: "string",
35
+ description: "Transport request number (e.g., E19K905635). Required for transportable function modules."
36
+ },
37
+ activate: {
38
+ type: "boolean",
39
+ description: "Activate function module after source update. Default: false. Set to true to activate immediately."
40
+ }
41
+ },
42
+ required: ["function_group_name", "function_module_name", "source_code"]
43
+ }
44
+ };
45
+ /**
46
+ * Main handler for UpdateFunctionModuleSource MCP tool
47
+ *
48
+ * Uses FunctionModuleBuilder from @mcp-abap-adt/adt-clients for all operations
49
+ * Session and lock management handled internally by builder
50
+ */
51
+ async function handleUpdateFunctionModuleSource(args) {
52
+ try {
53
+ // Validate inputs
54
+ if (!args.function_module_name || args.function_module_name.length > 30) {
55
+ return (0, utils_1.return_error)(new Error("Function module name is required and must not exceed 30 characters"));
56
+ }
57
+ if (!args.function_group_name || args.function_group_name.length > 30) {
58
+ return (0, utils_1.return_error)(new Error("Function group name is required and must not exceed 30 characters"));
59
+ }
60
+ if (!args.source_code) {
61
+ return (0, utils_1.return_error)(new Error("Source code is required"));
62
+ }
63
+ const connection = (0, utils_1.getManagedConnection)();
64
+ const functionGroupName = args.function_group_name.toUpperCase();
65
+ const functionModuleName = args.function_module_name.toUpperCase();
66
+ utils_1.logger.info(`Starting function module source update: ${functionModuleName} in ${functionGroupName}`);
67
+ try {
68
+ const client = new adt_clients_1.CrudClient(connection);
69
+ const shouldActivate = args.activate === true;
70
+ // Execute operation chain: lock -> update -> check -> unlock -> (activate)
71
+ await client
72
+ .lockFunctionModule(functionModuleName, functionGroupName)
73
+ .then(c => c.updateFunctionModule(functionModuleName, functionGroupName, args.source_code))
74
+ .then(c => c.checkFunctionModule(functionModuleName, functionGroupName))
75
+ .then(c => c.unlockFunctionModule(functionModuleName, functionGroupName))
76
+ .then(c => shouldActivate ? c.activateFunctionModule(functionModuleName, functionGroupName) : Promise.resolve(c))
77
+ .catch(error => {
78
+ utils_1.logger.error('Function module update chain failed:', error);
79
+ throw error;
80
+ });
81
+ utils_1.logger.info(`✅ UpdateFunctionModuleSource completed successfully: ${functionModuleName}`);
82
+ const result = {
83
+ success: true,
84
+ function_module_name: functionModuleName,
85
+ function_group_name: functionGroupName,
86
+ activated: shouldActivate,
87
+ message: `Function module ${functionModuleName} source code updated successfully${shouldActivate ? ' and activated' : ''}`
88
+ };
89
+ return (0, utils_1.return_response)({
90
+ data: JSON.stringify(result, null, 2),
91
+ status: 200,
92
+ statusText: 'OK',
93
+ headers: {},
94
+ config: {}
95
+ });
96
+ }
97
+ catch (error) {
98
+ utils_1.logger.error(`Error updating function module source ${functionModuleName}:`, error);
99
+ const errorMessage = error.response?.data
100
+ ? (typeof error.response.data === 'string' ? error.response.data : JSON.stringify(error.response.data))
101
+ : error.message || String(error);
102
+ return (0, utils_1.return_error)(new Error(`Failed to update function module source: ${errorMessage}`));
103
+ }
104
+ }
105
+ catch (error) {
106
+ return (0, utils_1.return_error)(error);
107
+ }
108
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * ValidateFunctionModule Handler - Validate ABAP function module name via ADT API
3
+ *
4
+ * Uses validateFunctionModuleName from @mcp-abap-adt/adt-clients/core/functionModule for function module-specific validation.
5
+ * Requires function group name.
6
+ */
7
+ export declare const TOOL_DEFINITION: {
8
+ readonly name: "ValidateFunctionModule";
9
+ readonly description: "Validate an ABAP function module name before creation. Checks if the name is valid and available. Requires function group name. Can use session_id and session_state from GetSession to maintain the same session.";
10
+ readonly inputSchema: {
11
+ readonly type: "object";
12
+ readonly properties: {
13
+ readonly function_group_name: {
14
+ readonly type: "string";
15
+ readonly description: "Function group name (e.g., Z_FUGR_TEST_0001)";
16
+ };
17
+ readonly function_module_name: {
18
+ readonly type: "string";
19
+ readonly description: "Function module name to validate (e.g., Z_TEST_FM)";
20
+ };
21
+ readonly description: {
22
+ readonly type: "string";
23
+ readonly description: "Optional description for validation";
24
+ };
25
+ readonly session_id: {
26
+ readonly type: "string";
27
+ readonly description: "Session ID from GetSession. If not provided, a new session will be created.";
28
+ };
29
+ readonly session_state: {
30
+ readonly type: "object";
31
+ readonly description: "Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.";
32
+ readonly properties: {
33
+ readonly cookies: {
34
+ readonly type: "string";
35
+ };
36
+ readonly csrf_token: {
37
+ readonly type: "string";
38
+ };
39
+ readonly cookie_store: {
40
+ readonly type: "object";
41
+ };
42
+ };
43
+ };
44
+ };
45
+ readonly required: readonly ["function_group_name", "function_module_name"];
46
+ };
47
+ };
48
+ /**
49
+ * Main handler for ValidateFunctionModule MCP tool
50
+ */
51
+ export declare function handleValidateFunctionModule(args: any): Promise<{
52
+ isError: boolean;
53
+ content: {
54
+ type: string;
55
+ text: any;
56
+ }[];
57
+ }>;
58
+ //# sourceMappingURL=handleValidateFunctionModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleValidateFunctionModule.d.ts","sourceRoot":"","sources":["../../../src/handlers/function/handleValidateFunctionModule.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkClB,CAAC;AAcX;;GAEG;AACH,wBAAsB,4BAA4B,CAAC,IAAI,EAAE,GAAG;;;;;;GAiG3D"}