@mcp-abap-adt/compact 21.0.0 → 22.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/docs/AVAILABLE_TOOLS.md +34 -31
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -14,6 +14,9 @@ A different decomposition of the same ABAP ADT surface: the **operation** is the
|
|
|
14
14
|
tool and the object moves into the arguments. Where the object-oriented surface has
|
|
15
15
|
`CreateClass`, `CreateDomain`, `CreateDdl` and so on, compact has one
|
|
16
16
|
`HandlerCreate` with `object_type`. Twenty-seven tool schemas instead of hundreds.
|
|
17
|
+
Each `object_type` enum, and each tool's description, is the declared system type's: its
|
|
18
|
+
members are those the system type's ADT type table serves (22.0.0) — on cloud the writes offer
|
|
19
|
+
no `PROGRAM` — and a member outside them is refused naming the list, before anything is sent.
|
|
17
20
|
|
|
18
21
|
It exists for a host that **cannot build a retrieval pipeline of its own** — a small
|
|
19
22
|
context, no tool-RAG, no way to select tools per request — and must still drive ABAP
|
package/docs/AVAILABLE_TOOLS.md
CHANGED
|
@@ -25,7 +25,7 @@ per request.
|
|
|
25
25
|
|
|
26
26
|
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
27
27
|
|
|
28
|
-
**Description:** [read-only] Reads one part of the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …). part selects it: source (default) the source alone, in one request; metadata the ADT metadata document alone, in one request; urls (SERVICE_BINDING) the service URL, its $metadata and the browser preview, contents (PACKAGE) the objects the package holds, its walk read level by level in ADT batch envelopes; package_names lists several packages, read together, one entry per package in the order given. A source document answers { part: 'source', source } and a metadata document { part: 'metadata', metadata }, beside the object's name. Parts per type: PACKAGE metadata, contents; DOMAIN, DATA_ELEMENT, FUNCTION_GROUP metadata; LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, TRANSPORT, UNIT_TEST, CDS_UNIT_TEST source; SERVICE_BINDING source, metadata, urls; every other type source, metadata. A part outside the type's list is answered with that list. Three parts read the repository by ADT address: object_structure(object_adt_type*, object_name*), node_structure(object_adt_type*, object_name*, node_id, with_short_descriptions; one node level; a package's blank answer is the empty listing with blank stating its two readings: an empty package, or an unknown package name) and virtual_folders(object_search_pattern, preselection, facet_order, with_versions, ignore_short_descriptions). Two parts read an activation run by its id, in one request each: activation_status(run_id*) answers { run_id, part, status, document }, the run's status (finished, error, failed, or its progress while it runs) and its status document as SAP answered it; activation_results(run_id*) answers { run_id, part, messages, document }, the messages the run produced and its results document as SAP answered it. Otherwise object_type required: PACKAGE(package_name*; part contents: package_name* or package_names*), DOMAIN(domain_name*), DATA_ELEMENT(data_element_name*), TABLE(table_name*), STRUCTURE(structure_name*), DDL(ddl_name*), SERVICE_DEFINITION(service_definition_name*), SERVICE_BINDING(service_binding_name*), CLASS(class_name*), LOCAL_TEST_CLASS(class_name*), LOCAL_TYPES(class_name*), LOCAL_DEFINITIONS(class_name*), LOCAL_MACROS(class_name*), PROGRAM(program_name*)
|
|
28
|
+
**Description:** [read-only] Reads one part of the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …). part selects it: source (default) the source alone, in one request; metadata the ADT metadata document alone, in one request; urls (SERVICE_BINDING) the service URL, its $metadata and the browser preview, contents (PACKAGE) the objects the package holds, its walk read level by level in ADT batch envelopes; package_names lists several packages, read together, one entry per package in the order given. A source document answers { part: 'source', source } and a metadata document { part: 'metadata', metadata }, beside the object's name. Parts per type: PACKAGE metadata, contents; DOMAIN, DATA_ELEMENT, FUNCTION_GROUP metadata; LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, TRANSPORT, UNIT_TEST, CDS_UNIT_TEST source; SERVICE_BINDING source, metadata, urls; every other type source, metadata. A part outside the type's list is answered with that list. Three parts read the repository by ADT address: object_structure(object_adt_type*, object_name*), node_structure(object_adt_type*, object_name*, node_id, with_short_descriptions; one node level; a package's blank answer is the empty listing with blank stating its two readings: an empty package, or an unknown package name) and virtual_folders(object_search_pattern, preselection, facet_order, with_versions, ignore_short_descriptions). Two parts read an activation run by its id, in one request each: activation_status(run_id*) answers { run_id, part, status, document }, the run's status (finished, error, failed, or its progress while it runs) and its status document as SAP answered it; activation_results(run_id*) answers { run_id, part, activated, messages, document }: activated is SAP's verdict as the results state it: true where they say activationExecuted="true" and every message is below error severity, false where they say activationExecuted="false" (a run SAP cancelled, or one whose message list is empty) or carry an error-severity message, null where they leave activationExecuted out; beside the messages the run produced and its results document as SAP answered it. Otherwise object_type required: PACKAGE(package_name*; part contents: package_name* or package_names*), DOMAIN(domain_name*), DATA_ELEMENT(data_element_name*), TABLE(table_name*), STRUCTURE(structure_name*), DDL(ddl_name*), SERVICE_DEFINITION(service_definition_name*), SERVICE_BINDING(service_binding_name*), CLASS(class_name*), LOCAL_TEST_CLASS(class_name*), LOCAL_TYPES(class_name*), LOCAL_DEFINITIONS(class_name*), LOCAL_MACROS(class_name*), PROGRAM(program_name*), INTERFACE(interface_name*), FUNCTION_GROUP(function_group_name*), FUNCTION_MODULE(function_module_name* as GROUP|MODULE, or function_module_name* with function_group_name*), BEHAVIOR_DEFINITION(behavior_definition_name*), BEHAVIOR_IMPLEMENTATION(behavior_implementation_name*), METADATA_EXTENSION(metadata_extension_name*), UNIT_TEST(run_id*), CDS_UNIT_TEST(run_id*), TRANSPORT(transport_number*). TRANSPORT answers the objects a task holds, each with its position in the task's object list; for a request, every task's entries, each once, with its task number and position. UNIT_TEST and CDS_UNIT_TEST read the run's result in one request and answer { success, run_id, run_result }, run_result the result document SAP answered, parsed. Valid once the status is FINISHED; a finished run's result carries executionTime. Runs on an ABAP session of its own. Optional timeout (seconds): when it passes, the read is cancelled, its ABAP session logged off, and the system stays as it was. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a client's cancel ends only the client's wait, and SAP runs the read on.
|
|
29
29
|
|
|
30
30
|
**Available in:** cloud, onprem
|
|
31
31
|
|
|
@@ -79,7 +79,7 @@ per request.
|
|
|
79
79
|
|
|
80
80
|
- `timeout` — Seconds to wait for the answer: a whole number, at least 1, no default — without it the call waits until SAP answers. When it passes, the read is cancelled (its ABAP session is logged off) and the call answers that nothing was changed. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a cancel does nothing to SAP.
|
|
81
81
|
- `query` (required) — Object name or mask, with * as a wildcard.
|
|
82
|
-
- `object_type` —
|
|
82
|
+
- `object_type` — Optional: restrict the search to one type: a name of the system's object types list — a main type (e.g. CLAS, DEVC, TABL), an alias of one subtype (e.g. STRU for structures, DTAB for database tables, FUNC for function modules) or a group — or an ADT type code, which stands for the name that selects it (e.g. TABL/DS for STRU, FUGR/FF for FUNC, ENHO/XHH for ENHO), either case; or a name standing for a code, written in lower case (e.g. class, structure, table, function), read as its code: view is a CDS view (DDLS), dbview a dictionary view (VIEW). A value in upper case is a search name or a code first, so VIEW is the dictionary views; it is a name only when it is neither (CLASS is class).
|
|
83
83
|
- `max_results` — Maximum number of objects returned.
|
|
84
84
|
|
|
85
85
|
### HandlerWhereUsed
|
|
@@ -117,7 +117,7 @@ per request.
|
|
|
117
117
|
|
|
118
118
|
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
119
119
|
|
|
120
|
-
**Description:** [read-only] Validates a new object named by object_type and object_name before it is created. object_type required: CLASS(object_name*, superclass), PROGRAM(object_name*)
|
|
120
|
+
**Description:** [read-only] Validates a new object named by object_type and object_name before it is created. object_type required: CLASS(object_name*, superclass), PROGRAM(object_name*), INTERFACE(object_name*), FUNCTION_GROUP(object_name*), FUNCTION_MODULE(object_name* as GROUP|MODULE), TABLE(object_name*), STRUCTURE(object_name*), DDL(object_name*), DOMAIN(object_name*), DATA_ELEMENT(object_name*), PACKAGE(object_name*, super_package), BEHAVIOR_DEFINITION(object_name*, package_name*, description*, root_entity*, implementation_type*), BEHAVIOR_IMPLEMENTATION(object_name*, package_name*, behavior_definition), METADATA_EXTENSION(object_name*, description*, package_name*), SERVICE_BINDING(object_name*=service_binding_name*, service_definition_name*, package_name*). For SERVICE_BINDING the answer is the verdict of SAP's transport check for the binding's name and package: admissible true where SAP answers S, false where it answers E, each with SAP's messages, and any other value as result; creating the binding checks the name, the package and the service definition itself.
|
|
121
121
|
|
|
122
122
|
**Available in:** cloud, onprem
|
|
123
123
|
|
|
@@ -125,13 +125,13 @@ per request.
|
|
|
125
125
|
|
|
126
126
|
- `object_type` (required) — Object type to validate before create. Supported: CLASS, PROGRAM, INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, PACKAGE, BEHAVIOR_DEFINITION, BEHAVIOR_IMPLEMENTATION, METADATA_EXTENSION, SERVICE_BINDING.
|
|
127
127
|
- `object_name` (required) — Required object name. For SERVICE_BINDING this is the service binding name; a function module is named GROUP|MODULE.
|
|
128
|
-
- `package_name` —
|
|
128
|
+
- `package_name` — Package of the object to validate. Required for BEHAVIOR_DEFINITION, BEHAVIOR_IMPLEMENTATION, METADATA_EXTENSION and SERVICE_BINDING.
|
|
129
129
|
- `super_package` — Super package of the package to validate (PACKAGE).
|
|
130
130
|
- `superclass` — Superclass of the class to validate (CLASS).
|
|
131
|
-
- `description` —
|
|
132
|
-
- `behavior_definition` —
|
|
133
|
-
- `root_entity` —
|
|
134
|
-
- `implementation_type` —
|
|
131
|
+
- `description` — Object description used during validation. Required for BEHAVIOR_DEFINITION and METADATA_EXTENSION.
|
|
132
|
+
- `behavior_definition` — Behavior definition the behavior implementation is for (BEHAVIOR_IMPLEMENTATION).
|
|
133
|
+
- `root_entity` — CDS root entity of the behavior definition to validate. Required for BEHAVIOR_DEFINITION.
|
|
134
|
+
- `implementation_type` — Implementation type of the behavior definition to validate (Managed, Unmanaged, Abstract or Projection). Required for BEHAVIOR_DEFINITION.
|
|
135
135
|
- `service_definition_name` — Required when object_type=SERVICE_BINDING. Service definition paired with the binding.
|
|
136
136
|
- `service_binding_version` — Optional service binding version for SERVICE_BINDING.
|
|
137
137
|
|
|
@@ -139,7 +139,7 @@ per request.
|
|
|
139
139
|
|
|
140
140
|
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
141
141
|
|
|
142
|
-
**Description:** [read-only] Runs a syntax check on the object named by object_type and object_name. object_type required: CLASS(object_name*), PROGRAM(object_name*)
|
|
142
|
+
**Description:** [read-only] Runs a syntax check on the object named by object_type and object_name. object_type required: CLASS(object_name*), PROGRAM(object_name*), INTERFACE(object_name*), FUNCTION_GROUP(object_name*), FUNCTION_MODULE(object_name* as GROUP|MODULE), TABLE(object_name*), STRUCTURE(object_name*), DDL(object_name*), DOMAIN(object_name*), DATA_ELEMENT(object_name*), PACKAGE(object_name*), BEHAVIOR_DEFINITION(object_name*), METADATA_EXTENSION(object_name*). source_code checks unsaved source given in the call, for CLASS, STRUCTURE and DDL.
|
|
143
143
|
|
|
144
144
|
**Available in:** cloud, onprem
|
|
145
145
|
|
|
@@ -154,7 +154,7 @@ per request.
|
|
|
154
154
|
|
|
155
155
|
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
156
156
|
|
|
157
|
-
**Description:** [read-only] Asks SAP whether the object named by object_type and object_name can be deleted: sends the deletion check request for its type, and answers SAP's verdict as it came: deletable true with the object and SAP's message when it carries one, or SAP's refusal with its words. object_type and object_name required: PACKAGE, DOMAIN, DATA_ELEMENT, TABLE, STRUCTURE, DDL, SERVICE_DEFINITION, SERVICE_BINDING, CLASS, CDS_UNIT_TEST (its test class), PROGRAM
|
|
157
|
+
**Description:** [read-only] Asks SAP whether the object named by object_type and object_name can be deleted: sends the deletion check request for its type, and answers SAP's verdict as it came: deletable true with the object and SAP's message when it carries one, or SAP's refusal with its words. object_type and object_name required: PACKAGE, DOMAIN, DATA_ELEMENT, TABLE, STRUCTURE, DDL, SERVICE_DEFINITION, SERVICE_BINDING, CLASS, CDS_UNIT_TEST (its test class), PROGRAM, INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE (object_name GROUP|MODULE), BEHAVIOR_DEFINITION, BEHAVIOR_IMPLEMENTATION, METADATA_EXTENSION.
|
|
158
158
|
|
|
159
159
|
**Available in:** cloud, onprem
|
|
160
160
|
|
|
@@ -298,7 +298,7 @@ per request.
|
|
|
298
298
|
|
|
299
299
|
**Half:** `@mcp-abap-adt/compact-readonly-entries`
|
|
300
300
|
|
|
301
|
-
**Description:** [read-only] Validates a new service binding named by service_binding_name for the service definition named by service_definition_name, before it is created. Required: service_binding_name*, service_definition_name
|
|
301
|
+
**Description:** [read-only] Validates a new service binding named by service_binding_name for the service definition named by service_definition_name, in the package named by package_name, before it is created; the check names the binding's package. Required: service_binding_name*, service_definition_name*, package_name* (the binding's package). Optional: service_binding_version, description. The answer is the verdict of SAP's transport check for the binding's name and package: admissible true where SAP answers S, false where it answers E, each with SAP's messages, and any other value as result; creating the binding checks the name, the package and the service definition itself. Response: JSON.
|
|
302
302
|
|
|
303
303
|
**Available in:** cloud, onprem
|
|
304
304
|
|
|
@@ -307,14 +307,14 @@ per request.
|
|
|
307
307
|
- `service_binding_name` (required) — Service binding name to validate.
|
|
308
308
|
- `service_definition_name` (required) — Service definition name to pair with binding.
|
|
309
309
|
- `service_binding_version` — Service binding version.
|
|
310
|
-
- `package_name` —
|
|
310
|
+
- `package_name` (required) — The binding's package, which the validation checks.
|
|
311
311
|
- `description` — Binding description.
|
|
312
312
|
|
|
313
313
|
### HandlerCreate
|
|
314
314
|
|
|
315
315
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
316
316
|
|
|
317
|
-
**Description:** Creates the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the create request for its type with the given parameters, and answers SAP's result. The object is created inactive. object_type required: PACKAGE(package_name*, super_package*), DOMAIN(domain_name*, package_name*), DATA_ELEMENT(data_element_name*, package_name*), TRANSPORT(description*), TABLE(table_name*, package_name*), STRUCTURE(structure_name*, package_name*), DDL(ddl_name*, package_name*), SERVICE_DEFINITION(service_definition_name*, package_name*), SERVICE_BINDING(service_binding_name*, service_definition_name*, package_name*), CLASS(class_name*, package_name*), PROGRAM(program_name*, package_name*)
|
|
317
|
+
**Description:** Creates the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the create request for its type with the given parameters, and answers SAP's result. The object is created inactive. object_type required: PACKAGE(package_name*, super_package*), DOMAIN(domain_name*, package_name*), DATA_ELEMENT(data_element_name*, package_name*), TRANSPORT(description*), TABLE(table_name*, package_name*), STRUCTURE(structure_name*, package_name*), DDL(ddl_name*, package_name*), SERVICE_DEFINITION(service_definition_name*, package_name*), SERVICE_BINDING(service_binding_name*, service_definition_name*, package_name*), CLASS(class_name*, package_name*), PROGRAM(program_name*, package_name*), INTERFACE(interface_name*, package_name*), FUNCTION_GROUP(function_group_name*, package_name*), FUNCTION_MODULE(function_module_name*, function_group_name*), BEHAVIOR_DEFINITION(name*, package_name*, implementation_type*), BEHAVIOR_IMPLEMENTATION(class_name*, package_name*), METADATA_EXTENSION(name*, package_name*). Optional for every type: description, transport_request.
|
|
318
318
|
|
|
319
319
|
**Available in:** cloud, onprem
|
|
320
320
|
|
|
@@ -361,7 +361,7 @@ per request.
|
|
|
361
361
|
|
|
362
362
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
363
363
|
|
|
364
|
-
**Description:** Writes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …) under its lock: sends the one write request of its type under lock_handle, the lock handle of the object, and answers SAP's result. The write sets the whole content to the one given. lock_handle and object_type required: PACKAGE(package_name*, source_code*, transport_request), DOMAIN(domain_name*, source_code*, transport_request), DATA_ELEMENT(data_element_name*, source_code*, transport_request), FUNCTION_GROUP(function_group_name*, source_code*, transport_request), TABLE(table_name*, ddl_code*, transport_request), STRUCTURE(structure_name*, ddl_code*, transport_request), DDL(ddl_name*, ddl_source*, transport_request), SERVICE_DEFINITION(service_definition_name*, source_code*, transport_request), CLASS(class_name*, source_code*, transport_request), LOCAL_TEST_CLASS(class_name*, test_class_code*, transport_request), LOCAL_TYPES(class_name*, local_types_code*, transport_request), LOCAL_DEFINITIONS(class_name*, definitions_code*, transport_request), LOCAL_MACROS(class_name*, macros_code*, transport_request), UNIT_TEST(class_name*, test_class_source*, transport_request), CDS_UNIT_TEST(class_name*, test_class_source*, transport_request), PROGRAM(program_name*, source_code*, transport_request)
|
|
364
|
+
**Description:** Writes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …) under its lock: sends the one write request of its type under lock_handle, the lock handle of the object, and answers SAP's result. The write sets the whole content to the one given. lock_handle and object_type required: PACKAGE(package_name*, source_code*, transport_request), DOMAIN(domain_name*, source_code*, transport_request), DATA_ELEMENT(data_element_name*, source_code*, transport_request), FUNCTION_GROUP(function_group_name*, source_code*, transport_request), TABLE(table_name*, ddl_code*, transport_request), STRUCTURE(structure_name*, ddl_code*, transport_request), DDL(ddl_name*, ddl_source*, transport_request), SERVICE_DEFINITION(service_definition_name*, source_code*, transport_request), CLASS(class_name*, source_code*, transport_request), LOCAL_TEST_CLASS(class_name*, test_class_code*, transport_request), LOCAL_TYPES(class_name*, local_types_code*, transport_request), LOCAL_DEFINITIONS(class_name*, definitions_code*, transport_request), LOCAL_MACROS(class_name*, macros_code*, transport_request), UNIT_TEST(class_name*, test_class_source*, transport_request), CDS_UNIT_TEST(class_name*, test_class_source*, transport_request), PROGRAM(program_name*, source_code*, transport_request), INTERFACE(interface_name*, source_code*, transport_request), FUNCTION_MODULE(function_module_name*, function_group_name*, source_code*, transport_request), BEHAVIOR_DEFINITION(name*, source_code*, transport_request), BEHAVIOR_IMPLEMENTATION(class_name*, implementation_code*, transport_request), METADATA_EXTENSION(name*, source_code*, transport_request), SERVICE_BINDING(service_binding_name*, desired_publication_state*, binding_variant*, service_name, service_version). For PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP, source_code is the whole metadata document, sent as given. For LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, UNIT_TEST, CDS_UNIT_TEST and BEHAVIOR_IMPLEMENTATION, lock_handle is the class's lock handle. For SERVICE_BINDING the write is its publication request, sent under the lock_handle given, an empty one included; service_name and service_version (default 0001) name the service of an OData V2 binding. transport_request is sent as the write's corrNr. Over Streamable HTTP the write takes the lock's state_handle: send it as the state_handle argument of every call under the lock (or in the x-mcp-state-handle header); the write is sent only under a lock the instance it reaches holds.
|
|
365
365
|
|
|
366
366
|
**Available in:** cloud, onprem
|
|
367
367
|
|
|
@@ -402,7 +402,7 @@ per request.
|
|
|
402
402
|
|
|
403
403
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
404
404
|
|
|
405
|
-
**Description:** Deletes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the deletion request for its type, and answers SAP's result. object_type required: PACKAGE(package_name*, transport_request), DOMAIN(domain_name*, transport_request), DATA_ELEMENT(data_element_name*, transport_request), TABLE(table_name*, transport_request), STRUCTURE(structure_name*, transport_request), DDL(ddl_name*, transport_request), SERVICE_DEFINITION(service_definition_name*, transport_request), SERVICE_BINDING(service_binding_name*, transport_request), CLASS(class_name*, transport_request), CDS_UNIT_TEST(class_name*, transport_request), PROGRAM(program_name*, transport_request)
|
|
405
|
+
**Description:** Deletes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the deletion request for its type, and answers SAP's result. object_type required: PACKAGE(package_name*, transport_request), DOMAIN(domain_name*, transport_request), DATA_ELEMENT(data_element_name*, transport_request), TABLE(table_name*, transport_request), STRUCTURE(structure_name*, transport_request), DDL(ddl_name*, transport_request), SERVICE_DEFINITION(service_definition_name*, transport_request), SERVICE_BINDING(service_binding_name*, transport_request), CLASS(class_name*, transport_request), CDS_UNIT_TEST(class_name*, transport_request), PROGRAM(program_name*, transport_request), INTERFACE(interface_name*, transport_request), FUNCTION_GROUP(function_group_name*, transport_request), FUNCTION_MODULE(function_module_name*, function_group_name*, transport_request), BEHAVIOR_DEFINITION(behavior_definition_name*, transport_request), BEHAVIOR_IMPLEMENTATION(behavior_implementation_name*, transport_request), METADATA_EXTENSION(metadata_extension_name*, transport_request), LOCAL_TEST_CLASS(class_name*, lock_handle*, transport_request), LOCAL_TYPES(class_name*, lock_handle*, transport_request), LOCAL_DEFINITIONS(class_name*, lock_handle*, transport_request), LOCAL_MACROS(class_name*, lock_handle*, transport_request), UNIT_TEST(class_name*, lock_handle*, transport_request). CDS_UNIT_TEST deletes its test class. For LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS and LOCAL_MACROS (the class's local includes) and UNIT_TEST (its test classes include) the include is written empty under lock_handle, the class's lock handle. transport_request is sent with the request. Over Streamable HTTP an include write takes the lock's state_handle: send it as the state_handle argument of every call under the lock (or in the x-mcp-state-handle header); it is sent only under a lock the instance it reaches holds.
|
|
406
406
|
|
|
407
407
|
**Available in:** cloud, onprem
|
|
408
408
|
|
|
@@ -432,15 +432,17 @@ per request.
|
|
|
432
432
|
|
|
433
433
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
434
434
|
|
|
435
|
-
**Description:** Activates the object named by object_name and object_type (or object_adt_type), or the objects named by objects, in one request. Single form (object_name*, object_type or object_adt_type*): object_type is enough for CLASS, PROGRAM
|
|
435
|
+
**Description:** Activates the object named by object_name and object_type (or object_adt_type), or the objects named by objects, in one request. Single form (object_name*, object_type or object_adt_type*): object_type is enough for CLASS, PROGRAM, INTERFACE, FUNCTION_GROUP, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, BEHAVIOR_DEFINITION, METADATA_EXTENSION, PACKAGE, SERVICE_DEFINITION, SERVICE_BINDING and BEHAVIOR_IMPLEMENTATION; FUNCTION_MODULE(object_name* as GROUP|MODULE, or object_name* with function_group_name*) is activated under its function group; any other type takes object_adt_type (e.g. "CLAS/OC"), with parentName for a part of a function group (FUGR/FF, FUGR/I). List form (objects[].name*, objects[].type*, objects[].parentName, objects[].uri); an object of FUGR/FF, FUGR/I is listed with objects[].parentName set to its function group. One object of CLASS, PROGRAM, INTERFACE, FUNCTION_GROUP, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, BEHAVIOR_DEFINITION, METADATA_EXTENSION or BEHAVIOR_IMPLEMENTATION (by object_type or its ADT type code) is activated directly and answers the activation verdict. Every other call starts an activation run and answers { run_id }: the id of the accepted run, whose status and messages are read by that id.
|
|
436
436
|
|
|
437
437
|
**Available in:** cloud, onprem
|
|
438
438
|
|
|
439
439
|
**Parameters:**
|
|
440
440
|
|
|
441
441
|
- `object_type` — ABAP object type for routed compact operation. Names the object's type in the single form.
|
|
442
|
-
- `object_name` — Object name (single form).
|
|
442
|
+
- `object_name` — Object name (single form). A function module is named GROUP|MODULE, its function group first, or the module alone with function_group_name.
|
|
443
|
+
- `function_group_name` — A function module's function group (single form, FUNCTION_MODULE).
|
|
443
444
|
- `object_adt_type` — ADT object type code (e.g. CLAS/OC, PROG/P) of the object (single form).
|
|
445
|
+
- `parentName` — With object_adt_type (single form): The function group the object belongs to; its address is built from it. Required for FUGR/FF (function, functionmodule, function_module, func), FUGR/I.
|
|
444
446
|
- `objects` — The objects activated together (list form).
|
|
445
447
|
- `preaudit` — Run pre-audit checks before activation.
|
|
446
448
|
|
|
@@ -489,7 +491,7 @@ per request.
|
|
|
489
491
|
|
|
490
492
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
491
493
|
|
|
492
|
-
**Description:** Lock operation. object_type required: CLASS(object_name*), PROGRAM(object_name*)
|
|
494
|
+
**Description:** Lock operation. object_type required: CLASS(object_name*), PROGRAM(object_name*), INTERFACE(object_name*), FUNCTION_GROUP(object_name*), FUNCTION_MODULE(object_name*), TABLE(object_name*), STRUCTURE(object_name*), DDL(object_name*), DOMAIN(object_name*), DATA_ELEMENT(object_name*), PACKAGE(object_name*, super_package*), BEHAVIOR_DEFINITION(object_name*), BEHAVIOR_IMPLEMENTATION(object_name*), METADATA_EXTENSION(object_name*), SERVICE_DEFINITION(object_name*), SERVICE_BINDING(object_name*). Answers the lock_handle; a SERVICE_BINDING open in an editing session answers an empty one, under which its publication runs. Over Streamable HTTP the answer also carries the state_handle of the instance that holds the lock: send it as the state_handle argument of every call under this lock, the write and the unlock (or in the x-mcp-state-handle header).
|
|
493
495
|
|
|
494
496
|
**Available in:** cloud, onprem
|
|
495
497
|
|
|
@@ -497,13 +499,13 @@ per request.
|
|
|
497
499
|
|
|
498
500
|
- `object_type` (required) — Object type. Supported: CLASS, PROGRAM, INTERFACE, FUNCTION_GROUP, FUNCTION_MODULE, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, PACKAGE, BEHAVIOR_DEFINITION, BEHAVIOR_IMPLEMENTATION, METADATA_EXTENSION, SERVICE_DEFINITION, SERVICE_BINDING.
|
|
499
501
|
- `object_name` (required) — Object name. A function module is named GROUP|MODULE, its function group first.
|
|
500
|
-
- `super_package` — Super package
|
|
502
|
+
- `super_package` — Super package of the package to lock. Required for PACKAGE.
|
|
501
503
|
|
|
502
504
|
### HandlerUnlock
|
|
503
505
|
|
|
504
506
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
505
507
|
|
|
506
|
-
**Description:** Unlock operation. object_type required: CLASS(object_name*, lock_handle*), PROGRAM(object_name*, lock_handle*)
|
|
508
|
+
**Description:** Unlock operation. object_type required: CLASS(object_name*, lock_handle*), PROGRAM(object_name*, lock_handle*), INTERFACE(object_name*, lock_handle*), FUNCTION_GROUP(object_name*, lock_handle*), FUNCTION_MODULE(object_name*, lock_handle*), TABLE(object_name*, lock_handle*), STRUCTURE(object_name*, lock_handle*), DDL(object_name*, lock_handle*), DOMAIN(object_name*, lock_handle*), DATA_ELEMENT(object_name*, lock_handle*), PACKAGE(object_name*, lock_handle*), BEHAVIOR_DEFINITION(object_name*, lock_handle*), BEHAVIOR_IMPLEMENTATION(object_name*, lock_handle*), METADATA_EXTENSION(object_name*, lock_handle*), SERVICE_DEFINITION(object_name*, lock_handle*), SERVICE_BINDING(object_name*, lock_handle*); an empty lock_handle of a SERVICE_BINDING answers that the binding is already unlocked. Over Streamable HTTP the unlock takes the lock's state_handle: send it as the state_handle argument of every call under the lock (or in the x-mcp-state-handle header); the unlock ends the instance's hold on the lock.
|
|
507
509
|
|
|
508
510
|
**Available in:** cloud, onprem
|
|
509
511
|
|
|
@@ -517,14 +519,15 @@ per request.
|
|
|
517
519
|
|
|
518
520
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
519
521
|
|
|
520
|
-
**Description:**
|
|
522
|
+
**Description:** ABAP Unit test run, for exactly one of tests and target. tests[]{container_class*, test_class*}: chosen local test classes of global classes. target: all tests of one object of any run object type — { kind: object, name, type }, e.g. CLAS/OC a class, PROG/P a report, FUGR/F a function group, DDLS/DF a CDS view (its tests run with scope.foreign_tests true) — or of a package — { kind: package, name, include_subpackages }. Optional: runner (async | sync, default async; sync with tests only), title, context, scope, risk_level, duration. Response: JSON — runner async (tests or target): { success, run_id }, the status and result read later by run_id, suited to long suites; runner sync: { success, runner, finished, run_result }, the finished result of every test class of each container_class in one request.
|
|
521
523
|
|
|
522
524
|
**Available in:** cloud, onprem
|
|
523
525
|
|
|
524
526
|
**Parameters:**
|
|
525
527
|
|
|
526
|
-
- `tests`
|
|
527
|
-
- `
|
|
528
|
+
- `tests` — Test classes to run, each named by its global class and its local test class (exactly one of tests and target).
|
|
529
|
+
- `target` — What the run covers: an object (kind object, name, type) or a package (kind package, name, include_subpackages).
|
|
530
|
+
- `runner` — async (default): starts the run and returns its run_id, whose status and result are read by run_id; suited to long suites. sync (tests only): one request that runs every test class of each container_class and returns the finished result. A target run is async.
|
|
528
531
|
- `title` — Run title shown in ABAP Unit test logs; sent by the async runner.
|
|
529
532
|
- `context` — Run context label; sent by the async runner.
|
|
530
533
|
- `scope` — ABAP Unit test scope flags.
|
|
@@ -535,7 +538,7 @@ per request.
|
|
|
535
538
|
|
|
536
539
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
537
540
|
|
|
538
|
-
**Description:**
|
|
541
|
+
**Description:** Schedules an ABAP profiler trace in one request. Optional: description, profiling flags (all_procedural_units, all_misc_abap_statements, all_internal_table_events, all_dynpro_events, aggregate, explicit_on_off, with_rfc_tracing, all_system_kernel_events, sql_trace, all_db_events, max_size_for_trace_file, amdp_trace, max_time_for_tracing). Response: JSON { success, profiler_id }, profiler_id the id of the scheduled trace.
|
|
539
542
|
|
|
540
543
|
**Available in:** cloud, onprem
|
|
541
544
|
|
|
@@ -560,7 +563,7 @@ per request.
|
|
|
560
563
|
|
|
561
564
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
562
565
|
|
|
563
|
-
**Description:**
|
|
566
|
+
**Description:** Runs a class or a program in one request. Required: target_type*(CLASS|PROGRAM) + class_name* for CLASS or program_name* for PROGRAM. Optional: profiler_id (the profiler id of a scheduled trace; given, the run goes under that trace; absent, the run is plain), background. Response: JSON { success, class_name | program_name, output }, plus profile: { profiler_id } for a run under a trace.
|
|
564
567
|
|
|
565
568
|
**Available in:** cloud, onprem
|
|
566
569
|
|
|
@@ -576,7 +579,7 @@ per request.
|
|
|
576
579
|
|
|
577
580
|
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
578
581
|
|
|
579
|
-
**Description:**
|
|
582
|
+
**Description:** Debugger breakpoints and watchpoints: each call sends one SAP request, the operation's, and answers what SAP answered. kind abap: setBreakpoints sets the breakpoint set of this debugging identity to breakpoints and answers each row SAP placed or refused; syncBreakpoints rewrites the full set (sync_scope full) or the part of the objects in sync_objects (sync_scope partial); deleteBreakpoint deletes breakpoint_id; createWatchpoint, listWatchpoints and deleteWatchpoint work on the attached debuggee. In user mode the breakpoints catch every request of the request user; the set is one per SAP user and request user, shared by every IDE of that user, and each change rewrites it as a whole. kind amdp: syncBreakpoints rewrites the breakpoints of the running AMDP session and answers the request id; SAP confirms them in a SYNC_BREAKPOINTS event. The answer carries state_handle, and for abap the identity in force.
|
|
580
583
|
|
|
581
584
|
**Available in:** cloud, onprem
|
|
582
585
|
|
|
@@ -600,7 +603,7 @@ per request.
|
|
|
600
603
|
|
|
601
604
|
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
602
605
|
|
|
603
|
-
**Description:**
|
|
606
|
+
**Description:** Debugger listener and session. Each operation up to end sends one SAP request, the operation's, and answers what SAP answered. kind abap: checkListener answers whether another debugger holds this identity's debugging (SAP's 409 names the holder); listen waits for a debuggee for exactly hold_seconds, SAP's hold, and answers the debuggee caught (debuggee_id, its server) or caught: false; a breakpoint stops a program while a listen is open; stopListener ends the listener and deletes the identity's breakpoints; attach attaches debuggee_id on the attaching session, which the first attach opens and every later attach, step and reading uses; detachDebugger sends detachDebugger on the attaching session, which releases the debuggee, and the program runs on; terminateDebuggee ends the debuggee where it stands and terminateDebugger frees the debugger; each answers SAP's answer as it came, which is a 500 when it succeeded, and the next answer shows the success (noSessionAttached, or the program's end); setDebuggerSettings sends the settings given at the attached debuggee. kind amdp: start opens an AMDP session for the connected SAP user and answers its main_id; getEvents answers the events SAP sends (breaks with their debuggee ids, breakpoint confirmations, ends); stop ends the AMDP session; deleteDebuggee cancels the execution of debuggee_id. end, for either kind, takes state_handle and logs off each connection the debug state opened, one logoff each: an attached debuggee runs on, an AMDP debug session ends, and the user's breakpoints stay set until stopListener removes them; the debug state and its handle end with it, and a new debug state of either kind and any identity opens after it. The answer carries state_handle while the debug state holds something, and for abap the identity in force.
|
|
604
607
|
|
|
605
608
|
**Available in:** cloud, onprem
|
|
606
609
|
|
|
@@ -622,7 +625,7 @@ per request.
|
|
|
622
625
|
|
|
623
626
|
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
624
627
|
|
|
625
|
-
**Description:**
|
|
628
|
+
**Description:** Moves the stopped debuggee: each call sends one SAP request, the operation's. kind abap, on the attached debuggee: stepInto, stepOver, stepReturn and stepContinue step from where it stands; stepRunToLine runs to the line object_type, object_name and line name, stepJumpToLine moves there and skips what lies between; a step answers SAP's step result, or ended when SAP reports the program's end, and the stopped position is read from the stack. setStackPosition makes frame position the one variables are read in. kind amdp: stepOver and stepContinue move debuggee_id and answer the request id; the next stop arrives as a break event.
|
|
626
629
|
|
|
627
630
|
**Available in:** cloud, onprem
|
|
628
631
|
|
|
@@ -644,7 +647,7 @@ per request.
|
|
|
644
647
|
|
|
645
648
|
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
646
649
|
|
|
647
|
-
**Description:**
|
|
650
|
+
**Description:** Reads and changes the stopped debuggee: each call sends one SAP request, chosen by operation. kind abap, on the attached debuggee: getStack answers the frames, each with its program, include, line and ADT address, the stopped position on top; getVariables answers the variables in names (a path reads a component or a table row); getChildVariables answers the members of the ids in parents, the scopes (@ROOT) when parents is omitted; getMemorySizes answers the memory sizes; createMemorySnapshot creates a memory snapshot; setVariableValue sets variable_name to value and answers the variable. kind amdp: getDataPreview answers the rows of the table variable variable_name of debuggee_id.
|
|
648
651
|
|
|
649
652
|
**Available in:** cloud, onprem
|
|
650
653
|
|
|
@@ -666,7 +669,7 @@ per request.
|
|
|
666
669
|
|
|
667
670
|
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
668
671
|
|
|
669
|
-
**Description:**
|
|
672
|
+
**Description:** action 'begin': Starts the debugger batch on the stopped ABAP debuggee, else at the AMDP break. In the debugger batch each call of step, step to line, stack, variables, child variables, stack position or setting a variable at the ABAP debuggee, and of step over, continue or the data preview of a table variable at the AMDP break, is recorded under the next number, starting at 1, and answers with empty content. Answers the state_handle: over Streamable HTTP send it as the state_handle argument of every call of the batch (or in the x-mcp-state-handle header). action 'end': Sends the recorded calls of the stopped debuggee in one envelope on the session the batch started on — the ABAP debuggee's session, or the AMDP session's command session — and ends the debugger batch. Splits SAP's answer into each call's parts and answers the number of recorded calls, of requests sent and of parts received; when sending fails, the parts received differ from the requests sent or the answer fails to split, answers that error, and every number of the batch then answers it. action 'answers' (with number or numbers): Answers the calls of the last executed batch by number: for each number asked, the tool's answer, built from the call's parts of SAP's response when the number is first read and kept for later reads; the numbers asked are processed in parallel. Takes one number or a list of numbers; an unknown number answers as unknown.
|
|
670
673
|
|
|
671
674
|
**Available in:** cloud, onprem
|
|
672
675
|
|
|
@@ -724,7 +727,7 @@ per request.
|
|
|
724
727
|
|
|
725
728
|
**Half:** leftover-session tools of `@mcp-abap-adt/lib`, stdio binaries only (the list and the logoff in both)
|
|
726
729
|
|
|
727
|
-
**Description:**
|
|
730
|
+
**Description:** Logs off a leftover SAP session (any role), releasing every lock it holds; only the logoff is sent, credential-free. Its record is deleted afterwards.
|
|
728
731
|
|
|
729
732
|
**Available in:** all
|
|
730
733
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/compact",
|
|
3
3
|
"mcpName": "io.github.fr0ster/mcp-abap-adt-compact",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "22.0.1",
|
|
5
5
|
"description": "The compact MCP server for SAP ABAP ADT: one tool per operation with the object in the arguments — 28 tools instead of 370, for a host that cannot build a retrieval pipeline of its own. Connects over HTTP, RFC or SNC, configured as @mcp-abap-adt/core; RFC and SNC need the SAP NW RFC library at run time.",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
7
7
|
"author": "Oleksii Kyslytsia <oleksij.kyslytsja@gmail.com>",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"docs:tools": "node ./tools/generate-docs.js"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@mcp-abap-adt/background-runs-memory": "^
|
|
62
|
-
"@mcp-abap-adt/compact-modify": "^
|
|
63
|
-
"@mcp-abap-adt/compact-readonly-entries": "^
|
|
64
|
-
"@mcp-abap-adt/lib": "^
|
|
65
|
-
"@mcp-abap-adt/responsible-rules": "^
|
|
66
|
-
"@mcp-abap-adt/server-runtime": "^
|
|
61
|
+
"@mcp-abap-adt/background-runs-memory": "^22.0.1",
|
|
62
|
+
"@mcp-abap-adt/compact-modify": "^22.0.1",
|
|
63
|
+
"@mcp-abap-adt/compact-readonly-entries": "^22.0.1",
|
|
64
|
+
"@mcp-abap-adt/lib": "^22.0.1",
|
|
65
|
+
"@mcp-abap-adt/responsible-rules": "^22.0.1",
|
|
66
|
+
"@mcp-abap-adt/server-runtime": "^22.0.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"typescript": "^6.0.2",
|