@mcp-abap-adt/compact 19.2.0 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -3
- package/docs/AVAILABLE_TOOLS.md +23 -7
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -33,10 +33,23 @@ write (`HandlerUpdate` with `lock_handle`), unlock (`HandlerUnlock`). A batch ho
|
|
|
33
33
|
request — LOCK, UNLOCK or stateless, as its first recorded call decides; a call of another kind is
|
|
34
34
|
refused `batch_other_kind`: record it in the next batch. Every tool's description ends with one sentence saying how it behaves
|
|
35
35
|
in batch mode: recordable, recordable for the arguments it names, or run outside batch mode. Over Streamable HTTP send the
|
|
36
|
-
`state_handle` `action: 'begin'` answers
|
|
37
|
-
batch. See
|
|
36
|
+
`state_handle` `action: 'begin'` answers as the `state_handle` argument (or in the
|
|
37
|
+
`x-mcp-state-handle` header) on every call of the batch. See
|
|
38
38
|
[Batch Mode](https://github.com/fr0ster/mcp-abap-adt/blob/main/docs/user-guide/BATCH_MODE.md).
|
|
39
39
|
|
|
40
|
+
**The long session: `HandlerSession`, Streamable HTTP only.** `mcp-abap-adt-compact-http` and
|
|
41
|
+
`mcp-abap-adt-compact-http-ro` serve one more tool, and declare an optional `state_handle` argument
|
|
42
|
+
on every tool: over Streamable HTTP each request is served by a new instance unless it carries the
|
|
43
|
+
`state_handle` of one that holds state. `HandlerSession` `action: 'open'` keeps an instance and its
|
|
44
|
+
SAP connection for every call that carries the `state_handle` it answers (no new connection, no
|
|
45
|
+
logoff between the calls); `action: 'close'` with that handle answers what the instance held
|
|
46
|
+
(`{ "closed": true, "held": { "locks", "batch", "debug_session" } }`), then logs off every SAP
|
|
47
|
+
session the instance owns — which releases its locks — and drops an open batch unsent; the handle
|
|
48
|
+
then answers `state is not available`. A session never closed ends at the idle bound
|
|
49
|
+
(`--state-idle-minutes`, default 30). The model keeps its handles: there is no list tool. The stdio
|
|
50
|
+
and SSE binaries keep their instance for the connection's life and serve neither:
|
|
51
|
+
[compact-http](https://www.npmjs.com/package/@mcp-abap-adt/compact-http).
|
|
52
|
+
|
|
40
53
|
## Why two library packages
|
|
41
54
|
|
|
42
55
|
Capability is decided by what you import, not by a flag a caller can pass. A tool
|
|
@@ -109,7 +122,7 @@ halves' entry builders) to the stdio `main` of `@mcp-abap-adt/server-runtime`
|
|
|
109
122
|
`mcp-abap-adt` runs —, and nothing else. It depends on no other server package (not on
|
|
110
123
|
`@mcp-abap-adt/core`).
|
|
111
124
|
|
|
112
|
-
**RFC and SNC** work here exactly as in the full server, and need the same
|
|
125
|
+
**RFC and SNC** work here exactly as in the full server, and need the same: the SAP NW RFC library when the server runs (SAP GUI's 64-bit `sapnwrfc.dll` in `System32` on Windows, else the SAP NW RFC SDK). The RFC module comes prebuilt for Linux x64 (glibc), Windows x64 and macOS ARM64, and `npm install` compiles nothing. Check it is there with `npm ls -g @mcp-abap-adt/sap-rfc-lite`. Steps: [RFC Setup](https://github.com/fr0ster/mcp-abap-adt/blob/main/docs/installation/RFC_SETUP.md); every variant: [Installation variants](https://github.com/fr0ster/mcp-abap-adt/blob/main/docs/installation/INSTALLATION.md#installation-variants).
|
|
113
126
|
|
|
114
127
|
The tool page is generated from the built packages: `docs/AVAILABLE_TOOLS.md`
|
|
115
128
|
(`npm run docs:tools`).
|
package/docs/AVAILABLE_TOOLS.md
CHANGED
|
@@ -10,7 +10,7 @@ definitions a client receives.
|
|
|
10
10
|
- Leftover-session tools: `@mcp-abap-adt/lib`, on stdio only (`mcp-abap-adt-compact`, `mcp-abap-adt-compact-ro`): the list and the logoff in both; no `-compact-http` or `-compact-sse` binary serves them
|
|
11
11
|
- Background-run tools: `@mcp-abap-adt/lib`, in the write binaries (where `HandlerProfileRun` is)
|
|
12
12
|
- Batch mode: `HandlerBatch` of `@mcp-abap-adt/lib`, in every compact binary, on every transport. Every other tool's description, as the server lists it, ends with one sentence saying how a call of it behaves in batch mode: recordable, recordable for the arguments it names, or run outside batch mode; the descriptions on this page are the tools' own, without it ([Batch Mode](https://github.com/fr0ster/mcp-abap-adt/blob/main/docs/user-guide/BATCH_MODE.md))
|
|
13
|
-
- Commands: `mcp-abap-adt-compact` (`@mcp-abap-adt/compact`) serves every tool
|
|
13
|
+
- Commands: `mcp-abap-adt-compact` (`@mcp-abap-adt/compact`) serves every tool under Tools; `mcp-abap-adt-compact-ro` (`@mcp-abap-adt/compact-ro`) the read-only half and the leftover-session list and logoff. `-compact-sse` and `-compact-sse-ro` serve the same without the leftover-session tools; `-compact-http` and `-compact-http-ro` the same, with what [Streamable HTTP Binaries](#streamable-http-binaries) adds
|
|
14
14
|
|
|
15
15
|
## How it works
|
|
16
16
|
|
|
@@ -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) [onprem only], 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
|
|
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) [onprem only], 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) [onprem only], 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
|
|
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) [onprem only], 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
|
|
|
@@ -489,7 +489,7 @@ per request.
|
|
|
489
489
|
|
|
490
490
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
491
491
|
|
|
492
|
-
**Description:** Lock operation. object_type required: CLASS(object_name*), PROGRAM(object_name*) [onprem only], 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*), 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:
|
|
492
|
+
**Description:** Lock operation. object_type required: CLASS(object_name*), PROGRAM(object_name*) [onprem only], 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*), 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
493
|
|
|
494
494
|
**Available in:** cloud, onprem
|
|
495
495
|
|
|
@@ -503,7 +503,7 @@ per request.
|
|
|
503
503
|
|
|
504
504
|
**Half:** `@mcp-abap-adt/compact-modify`
|
|
505
505
|
|
|
506
|
-
**Description:** Unlock operation. object_type required: CLASS(object_name*, lock_handle*), PROGRAM(object_name*, lock_handle*) [onprem only], 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
|
|
506
|
+
**Description:** Unlock operation. object_type required: CLASS(object_name*, lock_handle*), PROGRAM(object_name*, lock_handle*) [onprem only], 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
507
|
|
|
508
508
|
**Available in:** cloud, onprem
|
|
509
509
|
|
|
@@ -665,7 +665,7 @@ per request.
|
|
|
665
665
|
|
|
666
666
|
**Half:** debugger tools of `@mcp-abap-adt/compact` (the write binaries; no `-ro` one)
|
|
667
667
|
|
|
668
|
-
**Description:** [read-only] 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
|
|
668
|
+
**Description:** [read-only] 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.
|
|
669
669
|
|
|
670
670
|
**Available in:** cloud, onprem
|
|
671
671
|
|
|
@@ -735,7 +735,7 @@ per request.
|
|
|
735
735
|
|
|
736
736
|
**Half:** batch mode of `@mcp-abap-adt/lib`, in every compact binary
|
|
737
737
|
|
|
738
|
-
**Description:** [read-only] action 'begin': Starts batch mode on this server. In batch mode each call of a tool marked recordable is recorded under the next number, starting at 1, and answers with empty content. Answers the state_handle
|
|
738
|
+
**Description:** [read-only] action 'begin': Starts batch mode on this server. In batch mode each call of a tool marked recordable 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 in one envelope with the credentials in force and ends batch mode. 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.
|
|
739
739
|
|
|
740
740
|
**Available in:** all
|
|
741
741
|
|
|
@@ -745,3 +745,19 @@ per request.
|
|
|
745
745
|
- `number` — answers only: one batch number to read (an integer of at least 1); give this or numbers, not both.
|
|
746
746
|
- `numbers` — answers only: several batch numbers to read, answered in the order given; give this or number, not both.
|
|
747
747
|
|
|
748
|
+
## Streamable HTTP Binaries
|
|
749
|
+
|
|
750
|
+
`mcp-abap-adt-compact-sse`, `mcp-abap-adt-compact-sse-ro` (SSE) serve the tools of `mcp-abap-adt-compact`, `mcp-abap-adt-compact-ro` without `HandlerLeftoverSessionList`, `HandlerLeftoverSessionLogoff`, which are stdio's only. `mcp-abap-adt-compact-http`, `mcp-abap-adt-compact-http-ro` (Streamable HTTP) serve the same tools, and beside them:
|
|
751
|
+
|
|
752
|
+
- **The `state_handle` argument.** Every tool they serve declares one more, optional argument, `state_handle` (string): "The state_handle a long session, a lock or a batch answered: the call runs on the server instance that holds that state. Without it the call runs on a new instance." A tool whose own schema declares `state_handle` (the debugger tools) keeps its own declaration, required where it is required. No stdio or SSE binary declares it; the parameters listed per tool above are the stdio ones, without it.
|
|
753
|
+
- **The long session:** `HandlerSession`, served by no stdio or SSE binary. Its parameters below are the ones these binaries register, `state_handle` included.
|
|
754
|
+
|
|
755
|
+
### HandlerSession (Streamable HTTP)
|
|
756
|
+
|
|
757
|
+
**Description:** [read-only] action 'open': Opens a long session on this server: the server instance and its SAP connection are kept for every call that carries the session's state_handle, until the session is closed or the server's idle bound passes between two calls. Answers the state_handle: send it as the state_handle argument of every call of the session (or in the x-mcp-state-handle header). Called with the state_handle of an instance that already holds state, or of an open session, answers that same state_handle and keeps what the instance holds. In batch mode it runs at once and the batch stays open. action 'close': Closes the long session the state_handle names: once this answer is written the server instance is closed — every SAP session it holds is logged off, which releases the locks taken in it; an open batch and its recorded calls are dropped unsent — and the state_handle ends: a later call carrying it gets the unavailable-state answer. Answers that the session is closed and what it held: its locks, a batch, a debug session. Called with an unknown state_handle, or on a new instance, it gets the unavailable-state answer. In batch mode it runs at once and drops the batch.
|
|
758
|
+
|
|
759
|
+
**Parameters:**
|
|
760
|
+
|
|
761
|
+
- `action` (required) — open: open a long session and answer its state_handle. close: close the long session the state_handle names.
|
|
762
|
+
- `state_handle` — The state_handle a long session, a lock or a batch answered: the call runs on the server instance that holds that state. Without it the call runs on a new instance.
|
|
763
|
+
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/compact",
|
|
3
3
|
"mcpName": "io.github.fr0ster/mcp-abap-adt-compact",
|
|
4
|
-
"version": "
|
|
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
|
|
4
|
+
"version": "20.0.0",
|
|
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>",
|
|
8
8
|
"repository": {
|
|
@@ -50,20 +50,20 @@
|
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"prebuild": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
53
|
-
"build": "
|
|
53
|
+
"build": "tsc -p tsconfig.json",
|
|
54
54
|
"test": "npm --prefix .. test -- --roots compact/src",
|
|
55
|
-
"lint:check": "
|
|
55
|
+
"lint:check": "biome check src",
|
|
56
56
|
"prepublishOnly": "npm run build",
|
|
57
57
|
"start": "node ./bin/mcp-abap-adt-compact.js",
|
|
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": "^20.0.0",
|
|
62
|
+
"@mcp-abap-adt/compact-modify": "^20.0.0",
|
|
63
|
+
"@mcp-abap-adt/compact-readonly-entries": "^20.0.0",
|
|
64
|
+
"@mcp-abap-adt/lib": "^20.0.0",
|
|
65
|
+
"@mcp-abap-adt/responsible-rules": "^20.0.0",
|
|
66
|
+
"@mcp-abap-adt/server-runtime": "^20.0.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"typescript": "^6.0.2",
|