@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.
- package/CHANGELOG.md +49 -0
- package/README.md +3 -0
- package/dist/handlers/bdef/handleCreateBehaviorDefinition.d.ts +50 -0
- package/dist/handlers/bdef/handleCreateBehaviorDefinition.d.ts.map +1 -0
- package/dist/handlers/bdef/handleCreateBehaviorDefinition.js +101 -0
- package/dist/handlers/bdef/handleGetBdef.d.ts +54 -0
- package/dist/handlers/bdef/handleGetBdef.d.ts.map +1 -0
- package/dist/handlers/bdef/handleGetBdef.js +89 -0
- package/dist/handlers/bdef/handleUpdateBehaviorDefinition.d.ts +37 -0
- package/dist/handlers/bdef/handleUpdateBehaviorDefinition.d.ts.map +1 -0
- package/dist/handlers/bdef/handleUpdateBehaviorDefinition.js +85 -0
- package/dist/handlers/behavior_definition/readonly/handleGetBdef.d.ts +54 -0
- package/dist/handlers/behavior_definition/readonly/handleGetBdef.d.ts.map +1 -0
- package/dist/handlers/behavior_definition/readonly/handleGetBdef.js +89 -0
- package/dist/handlers/class/handleCheckClass.d.ts +59 -0
- package/dist/handlers/class/handleCheckClass.d.ts.map +1 -0
- package/dist/handlers/class/handleCheckClass.js +138 -0
- package/dist/handlers/class/handleCreateClass.d.ts +80 -0
- package/dist/handlers/class/handleCreateClass.d.ts.map +1 -0
- package/dist/handlers/class/handleCreateClass.js +192 -0
- package/dist/handlers/class/handleGetClass.d.ts +16 -0
- package/dist/handlers/class/handleGetClass.d.ts.map +1 -0
- package/dist/handlers/class/handleGetClass.js +159 -0
- package/dist/handlers/class/handleUpdateClassSource.d.ts +44 -0
- package/dist/handlers/class/handleUpdateClassSource.d.ts.map +1 -0
- package/dist/handlers/class/handleUpdateClassSource.js +131 -0
- package/dist/handlers/class/handleValidateClass.d.ts +62 -0
- package/dist/handlers/class/handleValidateClass.d.ts.map +1 -0
- package/dist/handlers/class/handleValidateClass.js +136 -0
- package/dist/handlers/class/readonly/handleGetClass.d.ts +20 -0
- package/dist/handlers/class/readonly/handleGetClass.d.ts.map +1 -0
- package/dist/handlers/class/readonly/handleGetClass.js +159 -0
- package/dist/handlers/common/handleActivateObject.d.ts +62 -0
- package/dist/handlers/common/handleActivateObject.d.ts.map +1 -0
- package/dist/handlers/common/handleActivateObject.js +137 -0
- package/dist/handlers/common/handleCheckObject.d.ts +63 -0
- package/dist/handlers/common/handleCheckObject.d.ts.map +1 -0
- package/dist/handlers/common/handleCheckObject.js +197 -0
- package/dist/handlers/common/handleDeleteObject.d.ts +46 -0
- package/dist/handlers/common/handleDeleteObject.d.ts.map +1 -0
- package/dist/handlers/common/handleDeleteObject.js +176 -0
- package/dist/handlers/common/handleLockObject.d.ts +57 -0
- package/dist/handlers/common/handleLockObject.d.ts.map +1 -0
- package/dist/handlers/common/handleLockObject.js +195 -0
- package/dist/handlers/common/handleUnlockObject.d.ts +61 -0
- package/dist/handlers/common/handleUnlockObject.d.ts.map +1 -0
- package/dist/handlers/common/handleUnlockObject.js +178 -0
- package/dist/handlers/common/handleValidateObject.d.ts +58 -0
- package/dist/handlers/common/handleValidateObject.d.ts.map +1 -0
- package/dist/handlers/common/handleValidateObject.js +177 -0
- package/dist/handlers/compact/high/compactSchemas.d.ts +218 -9
- package/dist/handlers/compact/high/compactSchemas.d.ts.map +1 -1
- package/dist/handlers/compact/high/compactSchemas.js +410 -134
- package/dist/handlers/compact/high/compactSchemas.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerActivate.d.ts +7 -1
- package/dist/handlers/compact/high/handleHandlerActivate.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerActivate.js +1 -1
- package/dist/handlers/compact/high/handleHandlerActivate.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerCdsUnitTestResult.d.ts +4 -1
- package/dist/handlers/compact/high/handleHandlerCdsUnitTestResult.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerCdsUnitTestResult.js +1 -1
- package/dist/handlers/compact/high/handleHandlerCdsUnitTestResult.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerCdsUnitTestStatus.d.ts +3 -1
- package/dist/handlers/compact/high/handleHandlerCdsUnitTestStatus.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerCdsUnitTestStatus.js +1 -1
- package/dist/handlers/compact/high/handleHandlerCdsUnitTestStatus.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerCheckRun.d.ts +7 -1
- package/dist/handlers/compact/high/handleHandlerCheckRun.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerCheckRun.js +1 -1
- package/dist/handlers/compact/high/handleHandlerCheckRun.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerCreate.d.ts +23 -1
- package/dist/handlers/compact/high/handleHandlerCreate.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerCreate.js +1 -1
- package/dist/handlers/compact/high/handleHandlerCreate.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerDelete.d.ts +7 -1
- package/dist/handlers/compact/high/handleHandlerDelete.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerDelete.js +1 -1
- package/dist/handlers/compact/high/handleHandlerDelete.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerDumpList.d.ts +6 -1
- package/dist/handlers/compact/high/handleHandlerDumpList.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerDumpList.js +1 -1
- package/dist/handlers/compact/high/handleHandlerDumpList.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerDumpView.d.ts +3 -1
- package/dist/handlers/compact/high/handleHandlerDumpView.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerDumpView.js +1 -1
- package/dist/handlers/compact/high/handleHandlerDumpView.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerGet.d.ts +60 -1
- package/dist/handlers/compact/high/handleHandlerGet.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerGet.js +1 -1
- package/dist/handlers/compact/high/handleHandlerGet.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerLock.d.ts +7 -1
- package/dist/handlers/compact/high/handleHandlerLock.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerLock.js +1 -1
- package/dist/handlers/compact/high/handleHandlerLock.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerProfileList.d.ts +1 -1
- package/dist/handlers/compact/high/handleHandlerProfileList.js +1 -1
- package/dist/handlers/compact/high/handleHandlerProfileList.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerProfileRun.d.ts +17 -1
- package/dist/handlers/compact/high/handleHandlerProfileRun.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerProfileRun.js +1 -1
- package/dist/handlers/compact/high/handleHandlerProfileRun.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerProfileView.d.ts +7 -1
- package/dist/handlers/compact/high/handleHandlerProfileView.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerProfileView.js +1 -1
- package/dist/handlers/compact/high/handleHandlerProfileView.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerServiceBindingListTypes.d.ts +2 -1
- package/dist/handlers/compact/high/handleHandlerServiceBindingListTypes.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerServiceBindingListTypes.js +1 -1
- package/dist/handlers/compact/high/handleHandlerServiceBindingListTypes.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerServiceBindingValidate.d.ts +6 -1
- package/dist/handlers/compact/high/handleHandlerServiceBindingValidate.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerServiceBindingValidate.js +1 -1
- package/dist/handlers/compact/high/handleHandlerServiceBindingValidate.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerTransportCreate.d.ts +5 -1
- package/dist/handlers/compact/high/handleHandlerTransportCreate.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerTransportCreate.js +1 -1
- package/dist/handlers/compact/high/handleHandlerTransportCreate.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestResult.d.ts +4 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestResult.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestResult.js +1 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestResult.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestRun.d.ts +18 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestRun.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestRun.js +1 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestRun.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestStatus.d.ts +3 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestStatus.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestStatus.js +1 -1
- package/dist/handlers/compact/high/handleHandlerUnitTestStatus.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerUnlock.d.ts +7 -1
- package/dist/handlers/compact/high/handleHandlerUnlock.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerUnlock.js +1 -1
- package/dist/handlers/compact/high/handleHandlerUnlock.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerUpdate.d.ts +21 -1
- package/dist/handlers/compact/high/handleHandlerUpdate.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerUpdate.js +1 -1
- package/dist/handlers/compact/high/handleHandlerUpdate.js.map +1 -1
- package/dist/handlers/compact/high/handleHandlerValidate.d.ts +22 -10
- package/dist/handlers/compact/high/handleHandlerValidate.d.ts.map +1 -1
- package/dist/handlers/compact/high/handleHandlerValidate.js +1 -1
- package/dist/handlers/compact/high/handleHandlerValidate.js.map +1 -1
- package/dist/handlers/data_element/handleCreateDataElement.d.ts +83 -0
- package/dist/handlers/data_element/handleCreateDataElement.d.ts.map +1 -0
- package/dist/handlers/data_element/handleCreateDataElement.js +180 -0
- package/dist/handlers/data_element/handleGetDataElement.d.ts +29 -0
- package/dist/handlers/data_element/handleGetDataElement.d.ts.map +1 -0
- package/dist/handlers/data_element/handleGetDataElement.js +173 -0
- package/dist/handlers/data_element/handleUpdateDataElement.d.ts +131 -0
- package/dist/handlers/data_element/handleUpdateDataElement.d.ts.map +1 -0
- package/dist/handlers/data_element/handleUpdateDataElement.js +258 -0
- package/dist/handlers/data_element/readonly/handleGetDataElement.d.ts +33 -0
- package/dist/handlers/data_element/readonly/handleGetDataElement.d.ts.map +1 -0
- package/dist/handlers/data_element/readonly/handleGetDataElement.js +173 -0
- package/dist/handlers/ddlx/handleCreateMetadataExtension.d.ts +41 -0
- package/dist/handlers/ddlx/handleCreateMetadataExtension.d.ts.map +1 -0
- package/dist/handlers/ddlx/handleCreateMetadataExtension.js +92 -0
- package/dist/handlers/ddlx/handleUpdateMetadataExtension.d.ts +37 -0
- package/dist/handlers/ddlx/handleUpdateMetadataExtension.d.ts.map +1 -0
- package/dist/handlers/ddlx/handleUpdateMetadataExtension.js +81 -0
- package/dist/handlers/domain/handleCreateDomain.d.ts +104 -0
- package/dist/handlers/domain/handleCreateDomain.d.ts.map +1 -0
- package/dist/handlers/domain/handleCreateDomain.js +187 -0
- package/dist/handlers/domain/handleGetDomain.d.ts +19 -0
- package/dist/handlers/domain/handleGetDomain.d.ts.map +1 -0
- package/dist/handlers/domain/handleGetDomain.js +138 -0
- package/dist/handlers/domain/handleUpdateDomain.d.ts +99 -0
- package/dist/handlers/domain/handleUpdateDomain.d.ts.map +1 -0
- package/dist/handlers/domain/handleUpdateDomain.js +204 -0
- package/dist/handlers/domain/readonly/handleGetDomain.d.ts +23 -0
- package/dist/handlers/domain/readonly/handleGetDomain.d.ts.map +1 -0
- package/dist/handlers/domain/readonly/handleGetDomain.js +138 -0
- package/dist/handlers/enhancement/handleGetEnhancementImpl.d.ts +69 -0
- package/dist/handlers/enhancement/handleGetEnhancementImpl.d.ts.map +1 -0
- package/dist/handlers/enhancement/handleGetEnhancementImpl.js +171 -0
- package/dist/handlers/enhancement/handleGetEnhancementSpot.d.ts +53 -0
- package/dist/handlers/enhancement/handleGetEnhancementSpot.d.ts.map +1 -0
- package/dist/handlers/enhancement/handleGetEnhancementSpot.js +153 -0
- package/dist/handlers/enhancement/handleGetEnhancements.d.ts +64 -0
- package/dist/handlers/enhancement/handleGetEnhancements.d.ts.map +1 -0
- package/dist/handlers/enhancement/handleGetEnhancements.js +599 -0
- package/dist/handlers/function/handleCheckFunctionModule.d.ts +59 -0
- package/dist/handlers/function/handleCheckFunctionModule.d.ts.map +1 -0
- package/dist/handlers/function/handleCheckFunctionModule.js +140 -0
- package/dist/handlers/function/handleCreateFunctionGroup.d.ts +52 -0
- package/dist/handlers/function/handleCreateFunctionGroup.d.ts.map +1 -0
- package/dist/handlers/function/handleCreateFunctionGroup.js +114 -0
- package/dist/handlers/function/handleCreateFunctionModule.d.ts +57 -0
- package/dist/handlers/function/handleCreateFunctionModule.d.ts.map +1 -0
- package/dist/handlers/function/handleCreateFunctionModule.js +137 -0
- package/dist/handlers/function/handleGetFunction.d.ts +17 -0
- package/dist/handlers/function/handleGetFunction.d.ts.map +1 -0
- package/dist/handlers/function/handleGetFunction.js +172 -0
- package/dist/handlers/function/handleGetFunctionGroup.d.ts +16 -0
- package/dist/handlers/function/handleGetFunctionGroup.d.ts.map +1 -0
- package/dist/handlers/function/handleGetFunctionGroup.js +132 -0
- package/dist/handlers/function/handleUpdateFunctionModuleSource.d.ts +54 -0
- package/dist/handlers/function/handleUpdateFunctionModuleSource.d.ts.map +1 -0
- package/dist/handlers/function/handleUpdateFunctionModuleSource.js +108 -0
- package/dist/handlers/function/handleValidateFunctionModule.d.ts +58 -0
- package/dist/handlers/function/handleValidateFunctionModule.d.ts.map +1 -0
- package/dist/handlers/function/handleValidateFunctionModule.js +132 -0
- package/dist/handlers/function/readonly/handleGetFunctionGroup.d.ts +16 -0
- package/dist/handlers/function/readonly/handleGetFunctionGroup.d.ts.map +1 -0
- package/dist/handlers/function/readonly/handleGetFunctionGroup.js +132 -0
- package/dist/handlers/include/handleGetInclude.d.ts +16 -0
- package/dist/handlers/include/handleGetInclude.d.ts.map +1 -0
- package/dist/handlers/include/handleGetInclude.js +81 -0
- package/dist/handlers/include/handleGetIncludesList.d.ts +36 -0
- package/dist/handlers/include/handleGetIncludesList.d.ts.map +1 -0
- package/dist/handlers/include/handleGetIncludesList.js +223 -0
- package/dist/handlers/interface/handleCreateInterface.d.ts +64 -0
- package/dist/handlers/interface/handleCreateInterface.d.ts.map +1 -0
- package/dist/handlers/interface/handleCreateInterface.js +175 -0
- package/dist/handlers/interface/handleGetInterface.d.ts +40 -0
- package/dist/handlers/interface/handleGetInterface.d.ts.map +1 -0
- package/dist/handlers/interface/handleGetInterface.js +134 -0
- package/dist/handlers/interface/handleUpdateInterfaceSource.d.ts +48 -0
- package/dist/handlers/interface/handleUpdateInterfaceSource.d.ts.map +1 -0
- package/dist/handlers/interface/handleUpdateInterfaceSource.js +127 -0
- package/dist/handlers/interface/readonly/handleGetInterface.d.ts +44 -0
- package/dist/handlers/interface/readonly/handleGetInterface.d.ts.map +1 -0
- package/dist/handlers/interface/readonly/handleGetInterface.js +134 -0
- package/dist/handlers/package/handleCreatePackage.d.ts +38 -0
- package/dist/handlers/package/handleCreatePackage.d.ts.map +1 -0
- package/dist/handlers/package/handleCreatePackage.js +127 -0
- package/dist/handlers/package/handleGetPackage.d.ts +16 -0
- package/dist/handlers/package/handleGetPackage.d.ts.map +1 -0
- package/dist/handlers/package/handleGetPackage.js +94 -0
- package/dist/handlers/package/readonly/handleGetPackage.d.ts +21 -0
- package/dist/handlers/package/readonly/handleGetPackage.d.ts.map +1 -0
- package/dist/handlers/package/readonly/handleGetPackage.js +94 -0
- package/dist/handlers/program/handleCreateProgram.d.ts +73 -0
- package/dist/handlers/program/handleCreateProgram.d.ts.map +1 -0
- package/dist/handlers/program/handleCreateProgram.js +220 -0
- package/dist/handlers/program/handleGetProgFullCode.d.ts +67 -0
- package/dist/handlers/program/handleGetProgFullCode.d.ts.map +1 -0
- package/dist/handlers/program/handleGetProgFullCode.js +249 -0
- package/dist/handlers/program/handleGetProgram.d.ts +16 -0
- package/dist/handlers/program/handleGetProgram.d.ts.map +1 -0
- package/dist/handlers/program/handleGetProgram.js +71 -0
- package/dist/handlers/program/handleUpdateProgramSource.d.ts +44 -0
- package/dist/handlers/program/handleUpdateProgramSource.d.ts.map +1 -0
- package/dist/handlers/program/handleUpdateProgramSource.js +121 -0
- package/dist/handlers/program/readonly/handleGetProgram.d.ts +20 -0
- package/dist/handlers/program/readonly/handleGetProgram.d.ts.map +1 -0
- package/dist/handlers/program/readonly/handleGetProgram.js +71 -0
- package/dist/handlers/search/handleGetObjectsByType.d.ts +42 -0
- package/dist/handlers/search/handleGetObjectsByType.d.ts.map +1 -0
- package/dist/handlers/search/handleGetObjectsByType.js +166 -0
- package/dist/handlers/search/handleGetObjectsList.d.ts +46 -0
- package/dist/handlers/search/handleGetObjectsList.d.ts.map +1 -0
- package/dist/handlers/search/handleGetObjectsList.js +145 -0
- package/dist/handlers/search/handleSearchObject.d.ts +28 -0
- package/dist/handlers/search/handleSearchObject.d.ts.map +1 -0
- package/dist/handlers/search/handleSearchObject.js +119 -0
- package/dist/handlers/service_definition/readonly/handleGetServiceDefinition.d.ts +17 -0
- package/dist/handlers/service_definition/readonly/handleGetServiceDefinition.d.ts.map +1 -0
- package/dist/handlers/service_definition/readonly/handleGetServiceDefinition.js +136 -0
- package/dist/handlers/structure/handleCreateStructure.d.ts +107 -0
- package/dist/handlers/structure/handleCreateStructure.d.ts.map +1 -0
- package/dist/handlers/structure/handleCreateStructure.js +184 -0
- package/dist/handlers/structure/handleGetStructure.d.ts +16 -0
- package/dist/handlers/structure/handleGetStructure.d.ts.map +1 -0
- package/dist/handlers/structure/handleGetStructure.js +139 -0
- package/dist/handlers/structure/readonly/handleGetStructure.d.ts +16 -0
- package/dist/handlers/structure/readonly/handleGetStructure.d.ts.map +1 -0
- package/dist/handlers/structure/readonly/handleGetStructure.js +139 -0
- package/dist/handlers/system/handleDescribeByList.d.ts +36 -0
- package/dist/handlers/system/handleDescribeByList.d.ts.map +1 -0
- package/dist/handlers/system/handleDescribeByList.js +121 -0
- package/dist/handlers/system/handleGetAbapAST.d.ts +26 -0
- package/dist/handlers/system/handleGetAbapAST.d.ts.map +1 -0
- package/dist/handlers/system/handleGetAbapAST.js +172 -0
- package/dist/handlers/system/handleGetAbapSemanticAnalysis.d.ts +26 -0
- package/dist/handlers/system/handleGetAbapSemanticAnalysis.d.ts.map +1 -0
- package/dist/handlers/system/handleGetAbapSemanticAnalysis.js +353 -0
- package/dist/handlers/system/handleGetAbapSystemSymbols.d.ts +26 -0
- package/dist/handlers/system/handleGetAbapSystemSymbols.d.ts.map +1 -0
- package/dist/handlers/system/handleGetAbapSystemSymbols.js +574 -0
- package/dist/handlers/system/handleGetAllTypes.d.ts +22 -0
- package/dist/handlers/system/handleGetAllTypes.d.ts.map +1 -0
- package/dist/handlers/system/handleGetAllTypes.js +102 -0
- package/dist/handlers/system/handleGetInactiveObjects.d.ts +20 -0
- package/dist/handlers/system/handleGetInactiveObjects.d.ts.map +1 -0
- package/dist/handlers/system/handleGetInactiveObjects.js +41 -0
- package/dist/handlers/system/handleGetObjectInfo.d.ts +41 -0
- package/dist/handlers/system/handleGetObjectInfo.d.ts.map +1 -0
- package/dist/handlers/system/handleGetObjectInfo.js +210 -0
- package/dist/handlers/system/handleGetObjectNodeFromCache.d.ts +40 -0
- package/dist/handlers/system/handleGetObjectNodeFromCache.d.ts.map +1 -0
- package/dist/handlers/system/handleGetObjectNodeFromCache.js +70 -0
- package/dist/handlers/system/handleGetObjectStructure.d.ts +26 -0
- package/dist/handlers/system/handleGetObjectStructure.d.ts.map +1 -0
- package/dist/handlers/system/handleGetObjectStructure.js +103 -0
- package/dist/handlers/system/handleGetSession.d.ts +33 -0
- package/dist/handlers/system/handleGetSession.d.ts.map +1 -0
- package/dist/handlers/system/handleGetSession.js +63 -0
- package/dist/handlers/system/handleGetSqlQuery.d.ts +49 -0
- package/dist/handlers/system/handleGetSqlQuery.d.ts.map +1 -0
- package/dist/handlers/system/handleGetSqlQuery.js +176 -0
- package/dist/handlers/system/handleGetTransaction.d.ts +42 -0
- package/dist/handlers/system/handleGetTransaction.d.ts.map +1 -0
- package/dist/handlers/system/handleGetTransaction.js +91 -0
- package/dist/handlers/system/handleGetTypeInfo.d.ts +69 -0
- package/dist/handlers/system/handleGetTypeInfo.d.ts.map +1 -0
- package/dist/handlers/system/handleGetTypeInfo.js +169 -0
- package/dist/handlers/system/handleGetWhereUsed.d.ts +69 -0
- package/dist/handlers/system/handleGetWhereUsed.d.ts.map +1 -0
- package/dist/handlers/system/handleGetWhereUsed.js +405 -0
- package/dist/handlers/table/handleCheckTable.d.ts +55 -0
- package/dist/handlers/table/handleCheckTable.d.ts.map +1 -0
- package/dist/handlers/table/handleCheckTable.js +138 -0
- package/dist/handlers/table/handleCreateTable.d.ts +42 -0
- package/dist/handlers/table/handleCreateTable.d.ts.map +1 -0
- package/dist/handlers/table/handleCreateTable.js +118 -0
- package/dist/handlers/table/handleGetTable.d.ts +16 -0
- package/dist/handlers/table/handleGetTable.d.ts.map +1 -0
- package/dist/handlers/table/handleGetTable.js +140 -0
- package/dist/handlers/table/handleGetTableContents.d.ts +56 -0
- package/dist/handlers/table/handleGetTableContents.d.ts.map +1 -0
- package/dist/handlers/table/handleGetTableContents.js +387 -0
- package/dist/handlers/table/handleValidateTable.d.ts +53 -0
- package/dist/handlers/table/handleValidateTable.d.ts.map +1 -0
- package/dist/handlers/table/handleValidateTable.js +125 -0
- package/dist/handlers/table/readonly/handleGetTable.d.ts +20 -0
- package/dist/handlers/table/readonly/handleGetTable.d.ts.map +1 -0
- package/dist/handlers/table/readonly/handleGetTable.js +140 -0
- package/dist/handlers/transport/handleCreateTransport.d.ts +50 -0
- package/dist/handlers/transport/handleCreateTransport.d.ts.map +1 -0
- package/dist/handlers/transport/handleCreateTransport.js +151 -0
- package/dist/handlers/transport/handleGetTransport.d.ts +44 -0
- package/dist/handlers/transport/handleGetTransport.d.ts.map +1 -0
- package/dist/handlers/transport/handleGetTransport.js +183 -0
- package/dist/handlers/view/handleCreateView.d.ts +52 -0
- package/dist/handlers/view/handleCreateView.d.ts.map +1 -0
- package/dist/handlers/view/handleCreateView.js +139 -0
- package/dist/handlers/view/handleGetView.d.ts +26 -0
- package/dist/handlers/view/handleGetView.d.ts.map +1 -0
- package/dist/handlers/view/handleGetView.js +349 -0
- package/dist/handlers/view/handleUpdateViewSource.d.ts +44 -0
- package/dist/handlers/view/handleUpdateViewSource.d.ts.map +1 -0
- package/dist/handlers/view/handleUpdateViewSource.js +136 -0
- package/dist/handlers/view/readonly/handleGetView.d.ts +26 -0
- package/dist/handlers/view/readonly/handleGetView.d.ts.map +1 -0
- package/dist/handlers/view/readonly/handleGetView.js +349 -0
- package/dist/index.d.ts +94 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2453 -0
- package/dist/lib/activationUtils.d.ts +59 -0
- package/dist/lib/activationUtils.d.ts.map +1 -0
- package/dist/lib/activationUtils.js +168 -0
- package/dist/lib/config/ArgumentsParser.d.ts +2 -0
- package/dist/lib/config/ArgumentsParser.d.ts.map +1 -1
- package/dist/lib/config/ArgumentsParser.js +11 -1
- package/dist/lib/config/ArgumentsParser.js.map +1 -1
- package/dist/lib/config/IServerConfig.d.ts +2 -0
- package/dist/lib/config/IServerConfig.d.ts.map +1 -1
- package/dist/lib/config/ServerConfigManager.d.ts.map +1 -1
- package/dist/lib/config/ServerConfigManager.js +3 -0
- package/dist/lib/config/ServerConfigManager.js.map +1 -1
- package/dist/lib/getFullCodeCache.d.ts +3 -0
- package/dist/lib/getFullCodeCache.d.ts.map +1 -0
- package/dist/lib/getFullCodeCache.js +56 -0
- package/dist/lib/toolsRegistry.d.ts +13 -0
- package/dist/lib/toolsRegistry.d.ts.map +1 -0
- package/dist/lib/toolsRegistry.js +410 -0
- package/dist/server/AuthBrokerConfig.d.ts.map +1 -1
- package/dist/server/AuthBrokerConfig.js +14 -9
- package/dist/server/AuthBrokerConfig.js.map +1 -1
- package/dist/server/BaseMcpServer.d.ts.map +1 -1
- package/dist/server/BaseMcpServer.js +6 -0
- package/dist/server/BaseMcpServer.js.map +1 -1
- package/dist/server/launcher.js +4 -4
- package/dist/server/launcher.js.map +1 -1
- package/dist/utils/lockStateManager.d.ts +64 -0
- package/dist/utils/lockStateManager.d.ts.map +1 -0
- package/dist/utils/lockStateManager.js +173 -0
- package/dist/utils/lockStateManager.js.map +1 -0
- package/docs/user-guide/AUTHENTICATION.md +7 -0
- package/docs/user-guide/AVAILABLE_TOOLS.md +189 -174
- package/docs/user-guide/AVAILABLE_TOOLS_COMPACT.md +189 -174
- package/docs/user-guide/AVAILABLE_TOOLS_HIGH.md +189 -174
- package/docs/user-guide/CLI_OPTIONS.md +14 -0
- package/package.json +2 -1
- package/dist/handlers/service_binding/high/handleListServiceBindings.d.ts +0 -44
- package/dist/handlers/service_binding/high/handleListServiceBindings.d.ts.map +0 -1
- package/dist/handlers/service_binding/high/handleListServiceBindings.js +0 -211
- package/dist/handlers/service_binding/high/handleListServiceBindings.js.map +0 -1
- package/dist/handlers/service_binding/high/serviceBindingXmlBuilder.d.ts +0 -11
- package/dist/handlers/service_binding/high/serviceBindingXmlBuilder.d.ts.map +0 -1
- package/dist/handlers/service_binding/high/serviceBindingXmlBuilder.js +0 -27
- package/dist/handlers/service_binding/high/serviceBindingXmlBuilder.js.map +0 -1
- package/dist/handlers/system/readonly/handleRuntimeGetDumpByUri.d.ts +0 -27
- package/dist/handlers/system/readonly/handleRuntimeGetDumpByUri.d.ts.map +0 -1
- package/dist/handlers/system/readonly/handleRuntimeGetDumpByUri.js +0 -47
- package/dist/handlers/system/readonly/handleRuntimeGetDumpByUri.js.map +0 -1
- package/dist/handlers/system/readonly/runtimeDumpReadCompat.d.ts +0 -8
- package/dist/handlers/system/readonly/runtimeDumpReadCompat.d.ts.map +0 -1
- package/dist/handlers/system/readonly/runtimeDumpReadCompat.js +0 -55
- package/dist/handlers/system/readonly/runtimeDumpReadCompat.js.map +0 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CheckFunctionModule Handler - Syntax check for ABAP function module via ADT API
|
|
4
|
+
*
|
|
5
|
+
* Uses checkFunctionModule from @mcp-abap-adt/adt-clients/core/functionModule for function module-specific checking.
|
|
6
|
+
* Requires function group name.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.TOOL_DEFINITION = void 0;
|
|
10
|
+
exports.handleCheckFunctionModule = handleCheckFunctionModule;
|
|
11
|
+
const utils_1 = require("../../lib/utils");
|
|
12
|
+
const adt_clients_1 = require("@mcp-abap-adt/adt-clients");
|
|
13
|
+
const checkRunParser_1 = require("../../lib/checkRunParser");
|
|
14
|
+
exports.TOOL_DEFINITION = {
|
|
15
|
+
name: "CheckFunctionModule",
|
|
16
|
+
description: "Perform syntax check on an ABAP function module. Returns syntax errors, warnings, and messages. Requires function group name. Can use session_id and session_state from GetSession to maintain the same session.",
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: "object",
|
|
19
|
+
properties: {
|
|
20
|
+
function_group_name: {
|
|
21
|
+
type: "string",
|
|
22
|
+
description: "Function group name (e.g., Z_FUGR_TEST_0001)"
|
|
23
|
+
},
|
|
24
|
+
function_module_name: {
|
|
25
|
+
type: "string",
|
|
26
|
+
description: "Function module name (e.g., Z_TEST_FM)"
|
|
27
|
+
},
|
|
28
|
+
version: {
|
|
29
|
+
type: "string",
|
|
30
|
+
description: "Version to check: 'active' (last activated) or 'inactive' (current unsaved). Default: active",
|
|
31
|
+
enum: ["active", "inactive"]
|
|
32
|
+
},
|
|
33
|
+
session_id: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "Session ID from GetSession. If not provided, a new session will be created."
|
|
36
|
+
},
|
|
37
|
+
session_state: {
|
|
38
|
+
type: "object",
|
|
39
|
+
description: "Session state from GetSession (cookies, csrf_token, cookie_store). Required if session_id is provided.",
|
|
40
|
+
properties: {
|
|
41
|
+
cookies: { type: "string" },
|
|
42
|
+
csrf_token: { type: "string" },
|
|
43
|
+
cookie_store: { type: "object" }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
required: ["function_group_name", "function_module_name"]
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Main handler for CheckFunctionModule MCP tool
|
|
52
|
+
*/
|
|
53
|
+
async function handleCheckFunctionModule(args) {
|
|
54
|
+
try {
|
|
55
|
+
const { function_group_name, function_module_name, version = 'active', session_id, session_state } = args;
|
|
56
|
+
if (!function_group_name || !function_module_name) {
|
|
57
|
+
return (0, utils_1.return_error)(new Error('function_group_name and function_module_name are required'));
|
|
58
|
+
}
|
|
59
|
+
const checkVersion = (version && ['active', 'inactive'].includes(version.toLowerCase()))
|
|
60
|
+
? version.toLowerCase()
|
|
61
|
+
: 'active';
|
|
62
|
+
const connection = (0, utils_1.getManagedConnection)();
|
|
63
|
+
// Restore session state if provided
|
|
64
|
+
if (session_id && session_state) {
|
|
65
|
+
connection.setSessionState({
|
|
66
|
+
cookies: session_state.cookies || null,
|
|
67
|
+
csrfToken: session_state.csrf_token || null,
|
|
68
|
+
cookieStore: session_state.cookie_store || {}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
// Ensure connection is established
|
|
73
|
+
await connection.connect();
|
|
74
|
+
}
|
|
75
|
+
const functionGroupName = function_group_name.toUpperCase();
|
|
76
|
+
const functionModuleName = function_module_name.toUpperCase();
|
|
77
|
+
utils_1.logger.info(`Starting function module check: ${functionModuleName} in group ${functionGroupName} (version: ${checkVersion})`);
|
|
78
|
+
try {
|
|
79
|
+
const client = new adt_clients_1.CrudClient(connection);
|
|
80
|
+
await client.checkFunctionModule(functionModuleName, functionGroupName);
|
|
81
|
+
const response = client.getCheckResult();
|
|
82
|
+
if (!response) {
|
|
83
|
+
throw new Error('Function module check did not return a response');
|
|
84
|
+
}
|
|
85
|
+
// Parse check results
|
|
86
|
+
const checkResult = (0, checkRunParser_1.parseCheckRunResponse)(response);
|
|
87
|
+
// Get updated session state after check
|
|
88
|
+
const updatedSessionState = connection.getSessionState();
|
|
89
|
+
utils_1.logger.info(`✅ CheckFunctionModule completed: ${functionModuleName}`);
|
|
90
|
+
utils_1.logger.info(` Status: ${checkResult.status}`);
|
|
91
|
+
utils_1.logger.info(` Errors: ${checkResult.errors.length}, Warnings: ${checkResult.warnings.length}`);
|
|
92
|
+
return (0, utils_1.return_response)({
|
|
93
|
+
data: JSON.stringify({
|
|
94
|
+
success: checkResult.success,
|
|
95
|
+
function_group_name: functionGroupName,
|
|
96
|
+
function_module_name: functionModuleName,
|
|
97
|
+
version: checkVersion,
|
|
98
|
+
check_result: checkResult,
|
|
99
|
+
session_id: session_id,
|
|
100
|
+
session_state: updatedSessionState ? {
|
|
101
|
+
cookies: updatedSessionState.cookies,
|
|
102
|
+
csrf_token: updatedSessionState.csrfToken,
|
|
103
|
+
cookie_store: updatedSessionState.cookieStore
|
|
104
|
+
} : null,
|
|
105
|
+
message: checkResult.success
|
|
106
|
+
? `Function module ${functionModuleName} has no syntax errors`
|
|
107
|
+
: `Function module ${functionModuleName} has ${checkResult.errors.length} error(s) and ${checkResult.warnings.length} warning(s)`
|
|
108
|
+
}, null, 2)
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
utils_1.logger.error(`Error checking function module ${functionModuleName}:`, error);
|
|
113
|
+
let errorMessage = `Failed to check function module: ${error.message || String(error)}`;
|
|
114
|
+
if (error.response?.status === 404) {
|
|
115
|
+
errorMessage = `Function module ${functionModuleName} not found.`;
|
|
116
|
+
}
|
|
117
|
+
else if (error.response?.data && typeof error.response.data === 'string') {
|
|
118
|
+
try {
|
|
119
|
+
const { XMLParser } = require('fast-xml-parser');
|
|
120
|
+
const parser = new XMLParser({
|
|
121
|
+
ignoreAttributes: false,
|
|
122
|
+
attributeNamePrefix: '@_'
|
|
123
|
+
});
|
|
124
|
+
const errorData = parser.parse(error.response.data);
|
|
125
|
+
const errorMsg = errorData['exc:exception']?.message?.['#text'] || errorData['exc:exception']?.message;
|
|
126
|
+
if (errorMsg) {
|
|
127
|
+
errorMessage = `SAP Error: ${errorMsg}`;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
catch (parseError) {
|
|
131
|
+
// Ignore parse errors
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return (0, utils_1.return_error)(new Error(errorMessage));
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
return (0, utils_1.return_error)(error);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateFunctionGroup Handler - ABAP Function Group Creation via ADT API
|
|
3
|
+
*
|
|
4
|
+
* Uses FunctionGroupBuilder from @mcp-abap-adt/adt-clients for all operations.
|
|
5
|
+
* Session and lock management handled internally by builder.
|
|
6
|
+
*
|
|
7
|
+
* Workflow: validate -> create -> (activate)
|
|
8
|
+
*/
|
|
9
|
+
export declare const TOOL_DEFINITION: {
|
|
10
|
+
readonly name: "CreateFunctionGroup";
|
|
11
|
+
readonly description: "Create a new ABAP function group in SAP system. Function groups serve as containers for function modules. Uses stateful session for proper lock management.";
|
|
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 (e.g., ZTEST_FG_001). Must follow SAP naming conventions (start with Z or Y, max 26 chars).";
|
|
18
|
+
};
|
|
19
|
+
readonly description: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly description: "Function group description. If not provided, function_group_name will be used.";
|
|
22
|
+
};
|
|
23
|
+
readonly package_name: {
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly description: "Package name (e.g., ZOK_LAB, $TMP for local objects)";
|
|
26
|
+
};
|
|
27
|
+
readonly transport_request: {
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly description: "Transport request number (e.g., E19K905635). Required for transportable packages.";
|
|
30
|
+
};
|
|
31
|
+
readonly activate: {
|
|
32
|
+
readonly type: "boolean";
|
|
33
|
+
readonly description: "Activate function group after creation. Default: true. Set to false for batch operations.";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly required: readonly ["function_group_name", "package_name"];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Main handler for CreateFunctionGroup MCP tool
|
|
41
|
+
*
|
|
42
|
+
* Uses FunctionGroupBuilder from @mcp-abap-adt/adt-clients for all operations
|
|
43
|
+
* Session and lock management handled internally by builder
|
|
44
|
+
*/
|
|
45
|
+
export declare function handleCreateFunctionGroup(args: any): Promise<{
|
|
46
|
+
isError: boolean;
|
|
47
|
+
content: {
|
|
48
|
+
type: string;
|
|
49
|
+
text: any;
|
|
50
|
+
}[];
|
|
51
|
+
}>;
|
|
52
|
+
//# sourceMappingURL=handleCreateFunctionGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleCreateFunctionGroup.d.ts","sourceRoot":"","sources":["../../../src/handlers/function/handleCreateFunctionGroup.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlB,CAAC;AAUX;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,GAAG;;;;;;GA+ExD"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateFunctionGroup Handler - ABAP Function Group Creation via ADT API
|
|
4
|
+
*
|
|
5
|
+
* Uses FunctionGroupBuilder from @mcp-abap-adt/adt-clients for all operations.
|
|
6
|
+
* Session and lock management handled internally by builder.
|
|
7
|
+
*
|
|
8
|
+
* Workflow: validate -> create -> (activate)
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.TOOL_DEFINITION = void 0;
|
|
12
|
+
exports.handleCreateFunctionGroup = handleCreateFunctionGroup;
|
|
13
|
+
const utils_1 = require("../../lib/utils");
|
|
14
|
+
const transportValidation_js_1 = require("../../utils/transportValidation.js");
|
|
15
|
+
const adt_clients_1 = require("@mcp-abap-adt/adt-clients");
|
|
16
|
+
exports.TOOL_DEFINITION = {
|
|
17
|
+
name: "CreateFunctionGroup",
|
|
18
|
+
description: "Create a new ABAP function group in SAP system. Function groups serve as containers for function modules. Uses stateful session for proper lock management.",
|
|
19
|
+
inputSchema: {
|
|
20
|
+
type: "object",
|
|
21
|
+
properties: {
|
|
22
|
+
function_group_name: {
|
|
23
|
+
type: "string",
|
|
24
|
+
description: "Function group name (e.g., ZTEST_FG_001). Must follow SAP naming conventions (start with Z or Y, max 26 chars)."
|
|
25
|
+
},
|
|
26
|
+
description: {
|
|
27
|
+
type: "string",
|
|
28
|
+
description: "Function group description. If not provided, function_group_name will be used."
|
|
29
|
+
},
|
|
30
|
+
package_name: {
|
|
31
|
+
type: "string",
|
|
32
|
+
description: "Package name (e.g., ZOK_LAB, $TMP for local objects)"
|
|
33
|
+
},
|
|
34
|
+
transport_request: {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "Transport request number (e.g., E19K905635). Required for transportable packages."
|
|
37
|
+
},
|
|
38
|
+
activate: {
|
|
39
|
+
type: "boolean",
|
|
40
|
+
description: "Activate function group after creation. Default: true. Set to false for batch operations."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
required: ["function_group_name", "package_name"]
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Main handler for CreateFunctionGroup MCP tool
|
|
48
|
+
*
|
|
49
|
+
* Uses FunctionGroupBuilder from @mcp-abap-adt/adt-clients for all operations
|
|
50
|
+
* Session and lock management handled internally by builder
|
|
51
|
+
*/
|
|
52
|
+
async function handleCreateFunctionGroup(args) {
|
|
53
|
+
try {
|
|
54
|
+
// Validate required parameters
|
|
55
|
+
if (!args?.function_group_name) {
|
|
56
|
+
return (0, utils_1.return_error)(new Error('function_group_name is required'));
|
|
57
|
+
}
|
|
58
|
+
if (!args?.package_name) {
|
|
59
|
+
return (0, utils_1.return_error)(new Error('package_name is required'));
|
|
60
|
+
}
|
|
61
|
+
// Validate transport_request: required for non-$TMP packages
|
|
62
|
+
try {
|
|
63
|
+
(0, transportValidation_js_1.validateTransportRequest)(args.package_name, args.transport_request);
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
return (0, utils_1.return_error)(error);
|
|
67
|
+
}
|
|
68
|
+
const typedArgs = args;
|
|
69
|
+
const connection = (0, utils_1.getManagedConnection)();
|
|
70
|
+
const functionGroupName = typedArgs.function_group_name.toUpperCase();
|
|
71
|
+
utils_1.logger.info(`Starting function group creation: ${functionGroupName}`);
|
|
72
|
+
try {
|
|
73
|
+
// Create client
|
|
74
|
+
const client = new adt_clients_1.CrudClient(connection);
|
|
75
|
+
const shouldActivate = typedArgs.activate !== false; // Default to true if not specified
|
|
76
|
+
// Validate
|
|
77
|
+
await client.validateFunctionGroup(functionGroupName);
|
|
78
|
+
// Create
|
|
79
|
+
await client.createFunctionGroup(functionGroupName, typedArgs.description || functionGroupName, typedArgs.package_name, typedArgs.transport_request);
|
|
80
|
+
// Activate if requested
|
|
81
|
+
if (shouldActivate) {
|
|
82
|
+
await client.activateFunctionGroup(functionGroupName);
|
|
83
|
+
}
|
|
84
|
+
utils_1.logger.info(`✅ CreateFunctionGroup completed successfully: ${functionGroupName}`);
|
|
85
|
+
return (0, utils_1.return_response)({
|
|
86
|
+
data: JSON.stringify({
|
|
87
|
+
success: true,
|
|
88
|
+
function_group_name: functionGroupName,
|
|
89
|
+
package_name: typedArgs.package_name,
|
|
90
|
+
transport_request: typedArgs.transport_request || 'local',
|
|
91
|
+
activated: shouldActivate,
|
|
92
|
+
message: `Function group ${functionGroupName} created successfully${shouldActivate ? ' and activated' : ''}`
|
|
93
|
+
})
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
utils_1.logger.error(`Error creating function group ${functionGroupName}:`, error);
|
|
98
|
+
// Check if function group already exists
|
|
99
|
+
if (error.message?.includes('already exists') || error.response?.status === 409) {
|
|
100
|
+
return (0, utils_1.return_error)(new Error(`Function group ${functionGroupName} already exists. Please delete it first or use a different name.`));
|
|
101
|
+
}
|
|
102
|
+
if (error.response?.status === 400) {
|
|
103
|
+
return (0, utils_1.return_error)(new Error(`Bad request. Check if function group name is valid and package exists.`));
|
|
104
|
+
}
|
|
105
|
+
const errorMessage = error.response?.data
|
|
106
|
+
? (typeof error.response.data === 'string' ? error.response.data : JSON.stringify(error.response.data))
|
|
107
|
+
: error.message || String(error);
|
|
108
|
+
return (0, utils_1.return_error)(new Error(`Failed to create function group ${functionGroupName}: ${errorMessage}`));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
return (0, utils_1.return_error)(error);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateFunctionModule Handler - ABAP Function Module Creation via ADT API
|
|
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 -> create -> lock -> update -> check -> unlock -> (activate)
|
|
8
|
+
*/
|
|
9
|
+
export declare const TOOL_DEFINITION: {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
type: string;
|
|
14
|
+
properties: {
|
|
15
|
+
function_group_name: {
|
|
16
|
+
type: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
function_module_name: {
|
|
20
|
+
type: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
source_code: {
|
|
24
|
+
type: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
description: {
|
|
28
|
+
type: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
transport_request: {
|
|
32
|
+
type: string;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
activate: {
|
|
36
|
+
type: string;
|
|
37
|
+
description: string;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
required: string[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Main handler for CreateFunctionModule MCP tool
|
|
46
|
+
*
|
|
47
|
+
* Uses FunctionModuleBuilder from @mcp-abap-adt/adt-clients for all operations
|
|
48
|
+
* Session and lock management handled internally by builder
|
|
49
|
+
*/
|
|
50
|
+
export declare function handleCreateFunctionModule(args: any): Promise<{
|
|
51
|
+
isError: boolean;
|
|
52
|
+
content: {
|
|
53
|
+
type: string;
|
|
54
|
+
text: any;
|
|
55
|
+
}[];
|
|
56
|
+
}>;
|
|
57
|
+
//# sourceMappingURL=handleCreateFunctionModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleCreateFunctionModule.d.ts","sourceRoot":"","sources":["../../../src/handlers/function/handleCreateFunctionModule.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC3B,CAAC;AAWF;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,GAAG;;;;;;GAsGzD"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateFunctionModule Handler - ABAP Function Module Creation via ADT API
|
|
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 -> create -> lock -> update -> check -> unlock -> (activate)
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.TOOL_DEFINITION = void 0;
|
|
12
|
+
exports.handleCreateFunctionModule = handleCreateFunctionModule;
|
|
13
|
+
const utils_1 = require("../../lib/utils");
|
|
14
|
+
const transportValidation_js_1 = require("../../utils/transportValidation.js");
|
|
15
|
+
const adt_clients_1 = require("@mcp-abap-adt/adt-clients");
|
|
16
|
+
exports.TOOL_DEFINITION = {
|
|
17
|
+
name: "CreateFunctionModule",
|
|
18
|
+
description: "Create a new ABAP function module within an existing function group. Uses stateful session with LOCK/UNLOCK workflow for source code upload.",
|
|
19
|
+
inputSchema: {
|
|
20
|
+
type: "object",
|
|
21
|
+
properties: {
|
|
22
|
+
function_group_name: {
|
|
23
|
+
type: "string",
|
|
24
|
+
description: "Parent function group name (e.g., ZTEST_FG_001)"
|
|
25
|
+
},
|
|
26
|
+
function_module_name: {
|
|
27
|
+
type: "string",
|
|
28
|
+
description: "Function module name (e.g., Z_TEST_FUNCTION_001). Must follow SAP naming conventions (start with Z or Y, max 30 chars)."
|
|
29
|
+
},
|
|
30
|
+
source_code: {
|
|
31
|
+
type: "string",
|
|
32
|
+
description: "ABAP source code for the function module including signature (FUNCTION name IMPORTING/EXPORTING ... ENDFUNCTION)."
|
|
33
|
+
},
|
|
34
|
+
description: {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "Optional description for the function module"
|
|
37
|
+
},
|
|
38
|
+
transport_request: {
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "Transport request number (e.g., E19K905635). Required for transportable packages."
|
|
41
|
+
},
|
|
42
|
+
activate: {
|
|
43
|
+
type: "boolean",
|
|
44
|
+
description: "Whether to activate the function module after creation (default: true)",
|
|
45
|
+
default: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
required: ["function_group_name", "function_module_name", "source_code"]
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Main handler for CreateFunctionModule MCP tool
|
|
53
|
+
*
|
|
54
|
+
* Uses FunctionModuleBuilder from @mcp-abap-adt/adt-clients for all operations
|
|
55
|
+
* Session and lock management handled internally by builder
|
|
56
|
+
*/
|
|
57
|
+
async function handleCreateFunctionModule(args) {
|
|
58
|
+
try {
|
|
59
|
+
// Validate required parameters
|
|
60
|
+
if (!args?.function_group_name) {
|
|
61
|
+
return (0, utils_1.return_error)(new Error('function_group_name is required'));
|
|
62
|
+
}
|
|
63
|
+
if (!args?.function_module_name) {
|
|
64
|
+
return (0, utils_1.return_error)(new Error('function_module_name is required'));
|
|
65
|
+
}
|
|
66
|
+
if (!args?.source_code) {
|
|
67
|
+
return (0, utils_1.return_error)(new Error('source_code is required'));
|
|
68
|
+
}
|
|
69
|
+
// Validate transport_request: required for non-$TMP packages
|
|
70
|
+
try {
|
|
71
|
+
(0, transportValidation_js_1.validateTransportRequest)(args.package_name, args.transport_request);
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
return (0, utils_1.return_error)(error);
|
|
75
|
+
}
|
|
76
|
+
const typedArgs = args;
|
|
77
|
+
const connection = (0, utils_1.getManagedConnection)();
|
|
78
|
+
const functionGroupName = typedArgs.function_group_name.toUpperCase();
|
|
79
|
+
const functionModuleName = typedArgs.function_module_name.toUpperCase();
|
|
80
|
+
utils_1.logger.info(`Starting function module creation: ${functionModuleName} in ${functionGroupName}`);
|
|
81
|
+
try {
|
|
82
|
+
// Create client
|
|
83
|
+
const client = new adt_clients_1.CrudClient(connection);
|
|
84
|
+
const shouldActivate = typedArgs.activate !== false; // Default to true if not specified
|
|
85
|
+
// Validate
|
|
86
|
+
await client.validateFunctionModule(functionModuleName, functionGroupName);
|
|
87
|
+
// Create
|
|
88
|
+
// Note: Package name inherited from parent function group
|
|
89
|
+
await client.createFunctionModule(functionModuleName, functionGroupName, typedArgs.description || functionModuleName, '', // packageName inherited from function group
|
|
90
|
+
typedArgs.transport_request);
|
|
91
|
+
// Lock
|
|
92
|
+
await client.lockFunctionModule(functionModuleName, functionGroupName);
|
|
93
|
+
const lockHandle = client.getLockHandle();
|
|
94
|
+
// Update with source code
|
|
95
|
+
await client.updateFunctionModule(functionModuleName, functionGroupName, typedArgs.source_code, lockHandle);
|
|
96
|
+
// Check
|
|
97
|
+
await client.checkFunctionModule(functionModuleName, functionGroupName);
|
|
98
|
+
// Unlock
|
|
99
|
+
await client.unlockFunctionModule(functionModuleName, functionGroupName, lockHandle);
|
|
100
|
+
// Activate if requested
|
|
101
|
+
if (shouldActivate) {
|
|
102
|
+
await client.activateFunctionModule(functionModuleName, functionGroupName);
|
|
103
|
+
}
|
|
104
|
+
utils_1.logger.info(`✅ CreateFunctionModule completed successfully: ${functionModuleName}`);
|
|
105
|
+
return (0, utils_1.return_response)({
|
|
106
|
+
data: JSON.stringify({
|
|
107
|
+
success: true,
|
|
108
|
+
function_module_name: functionModuleName,
|
|
109
|
+
function_group_name: functionGroupName,
|
|
110
|
+
transport_request: typedArgs.transport_request || 'local',
|
|
111
|
+
activated: shouldActivate,
|
|
112
|
+
message: `Function module ${functionModuleName} created successfully${shouldActivate ? ' and activated' : ''}`
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
utils_1.logger.error(`Error creating function module ${functionModuleName}:`, error);
|
|
118
|
+
// Check if function module already exists
|
|
119
|
+
if (error.message?.includes('already exists') || error.response?.status === 409) {
|
|
120
|
+
return (0, utils_1.return_error)(new Error(`Function module ${functionModuleName} already exists in group ${functionGroupName}. Please delete it first or use a different name.`));
|
|
121
|
+
}
|
|
122
|
+
if (error.response?.status === 404) {
|
|
123
|
+
return (0, utils_1.return_error)(new Error(`Function group ${functionGroupName} not found. Create the function group first.`));
|
|
124
|
+
}
|
|
125
|
+
if (error.response?.status === 400) {
|
|
126
|
+
return (0, utils_1.return_error)(new Error(`Bad request. Check if function module name is valid and function group exists.`));
|
|
127
|
+
}
|
|
128
|
+
const errorMessage = error.response?.data
|
|
129
|
+
? (typeof error.response.data === 'string' ? error.response.data : JSON.stringify(error.response.data))
|
|
130
|
+
: error.message || String(error);
|
|
131
|
+
return (0, utils_1.return_error)(new Error(`Failed to create function module ${functionModuleName}: ${errorMessage}`));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
catch (error) {
|
|
135
|
+
return (0, utils_1.return_error)(error);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const TOOL_DEFINITION: {
|
|
3
|
+
readonly name: "GetFunction";
|
|
4
|
+
readonly description: "Retrieve ABAP Function Module source code.";
|
|
5
|
+
readonly inputSchema: {
|
|
6
|
+
readonly function_name: z.ZodString;
|
|
7
|
+
readonly function_group: z.ZodString;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function handleGetFunction(args: any): Promise<{
|
|
11
|
+
isError: boolean;
|
|
12
|
+
content: {
|
|
13
|
+
type: string;
|
|
14
|
+
text: any;
|
|
15
|
+
}[];
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=handleGetFunction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleGetFunction.d.ts","sourceRoot":"","sources":["../../../src/handlers/function/handleGetFunction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,eAAe;;;;;;;CAOlB,CAAC;AAsEX,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,GAAG;;;;;;GAsDhD"}
|