@mcp-abap-adt/compact-http 19.2.0 → 20.1.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 +21 -2
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -27,11 +27,30 @@ There is no `--transport`: a binary is its transport.
|
|
|
27
27
|
|
|
28
28
|
**The low set's analogue.** The low set left the full binaries in 19.0.0; its single-step operations are compact's: `HandlerLock`, `HandlerUpdate` with the `lock_handle` it answered (one request: the write alone, under your lock; `lock_handle` is required; for PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP `source_code` is the whole metadata document, sent as given), `HandlerUnlock`, `HandlerDeletionCheck` (the one deletion check, SAP's verdict as it came), `HandlerDelete` (one request: the deletion request alone, with no lock held on the object; a class include and `UNIT_TEST` are written empty by one `PUT` under your class lock's `lock_handle`), `HandlerCheckRun`, `HandlerValidate`, `HandlerActivate` (one request: one object of a type the per-object activation maps answers its verdict; every other call starts an activation run and answers `{ run_id }`), and `HandlerGet` — one request per part: `source` the source alone, `metadata` the metadata document alone (PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP have only `metadata`; a function module is named `GROUP|MODULE` or with `function_group_name`), and `object_structure` / `node_structure` / `virtual_folders` (a package's blank node structure is the empty listing with `blank`: an empty package, or no package of that name), and `activation_status` / `activation_results` (an activation run by its `run_id`: its status, then its messages — asking again until the status settles is yours), and `object_type` `UNIT_TEST` / `CDS_UNIT_TEST` (a unit-test run's result by its `run_id`, one request, as `HandlerUnitTestResult` / `HandlerCdsUnitTestResult` read it; the status is `HandlerUnitTestStatus` / `HandlerCdsUnitTestStatus`, asked until it says `FINISHED`). **Keeping a lock from `HandlerLock` short is your job:** the server releases nothing on its own clock — unlock as soon as the write is done. The tool-by-tool table: [MIGRATION-19.0](https://github.com/fr0ster/mcp-abap-adt/blob/main/docs/MIGRATION-19.0.md#the-low-set-leaves-the-full-binaries).
|
|
29
29
|
|
|
30
|
-
**Credentials** come only from each request's `x-sap-*` headers — `x-sap-url`, `x-sap-client`, and `x-sap-jwt-token` or `x-sap-login` with `x-sap-password`; nothing is stored, shared or cached across requests. Held state (a debug session, a lock taken with `HandlerLock`) is reached again with its `state_handle` on the pooled instance that holds it: `HandlerLock` answers it, and `HandlerUpdate`, `HandlerDelete` of a class include and `HandlerUnlock` under that lock send it
|
|
30
|
+
**Credentials** come only from each request's `x-sap-*` headers — `x-sap-url`, `x-sap-client`, and `x-sap-jwt-token` or `x-sap-login` with `x-sap-password`; nothing is stored, shared or cached across requests. Held state (a long session, a debug session, a batch, a lock taken with `HandlerLock`) is reached again with its `state_handle` on the pooled instance that holds it: send it as the `state_handle` argument, which every tool of this binary declares (or in the `x-mcp-state-handle` header; when both are sent, the header wins). `HandlerLock` answers it, and `HandlerUpdate`, `HandlerDelete` of a class include and `HandlerUnlock` under that lock send it — without it they reach another instance and are refused, sending nothing. A request with another credential (a renewed token, a new user and password) works on the held instance too: its SAP session and its locks are kept, and the new credential is put in force for its next sends; what SAP answers to it reaches the caller as it came. A request without credential headers is answered `400`; so is one
|
|
31
31
|
carrying `x-mcp-destination` (destinations are served only by `mcp-abap-adt`, stdio).
|
|
32
32
|
|
|
33
|
+
**The long session: `HandlerSession`.** Every request is served by a new instance unless it
|
|
34
|
+
carries the `state_handle` of one that holds state. `HandlerSession` `action: 'open'` keeps an
|
|
35
|
+
instance and its SAP connection and answers `{ "state_handle": "…" }`: every call carrying it runs
|
|
36
|
+
on that instance, on its held SAP session — no new connection, no `systeminformation` lookup, no
|
|
37
|
+
logoff between the calls; a call without it runs on a new instance. Opened with the handle of an
|
|
38
|
+
instance that already holds state (a lock, a batch, a debug session), it answers that same handle
|
|
39
|
+
and keeps what is held; opened without one, it is a new instance with a handle of its own.
|
|
40
|
+
`action: 'close'` with the handle answers `{ "closed": true, "held": { "locks": …, "batch": …,
|
|
41
|
+
"debug_session": … } }`, and once that answer is written the instance leaves the pool and is
|
|
42
|
+
closed: every SAP session it owns is logged off, which releases the locks taken in it; an open
|
|
43
|
+
batch and its recorded calls are dropped unsent; the MCP server closes. The handle then answers
|
|
44
|
+
`state is not available` at once; the close awaits each logoff's write and its answer, with no
|
|
45
|
+
timer of the server's. Close without a handle, or with an unknown one, answers `state is not
|
|
46
|
+
available`. A session never closed ends at the idle bound (`--state-idle-minutes`, default 30)
|
|
47
|
+
between two calls: its state ends and every SAP session of the instance is logged off. There is no list tool: the model keeps its handles.
|
|
48
|
+
The handle is a bearer secret — the server does not identify the caller. `HandlerSession` changes
|
|
49
|
+
nothing in the system, so `mcp-abap-adt-compact-http-ro` serves it too; in batch mode it runs at
|
|
50
|
+
once and is never recorded — open leaves the batch open, close drops it.
|
|
51
|
+
|
|
33
52
|
**The tools are fixed by the binary**: all 29, the four debugger tools (`HandlerDebugBreakpoints`,
|
|
34
|
-
`HandlerDebugSession`, `HandlerDebugStep`, `HandlerDebugMaintain`), the debugger batch (`HandlerDebugBatch`), the background-run tools and `
|
|
53
|
+
`HandlerDebugSession`, `HandlerDebugStep`, `HandlerDebugMaintain`), the debugger batch (`HandlerDebugBatch`), the background-run tools, `HandlerBatch` and the long session (`HandlerSession`) — 39. `--exposition` (`ro`, `rw`, `debug`, any word) and a config file's
|
|
35
54
|
`exposition` stop the start, naming the binary to install instead
|
|
36
55
|
(`mcp-abap-adt-compact-http-ro` for `ro`). No leftover-session tool and no runtime session file: one server holds the sessions of many
|
|
37
56
|
users, so those are the stdio binaries' (`mcp-abap-adt-compact`, `mcp-abap-adt-compact-ro`); resuming
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/compact-http",
|
|
3
3
|
"mcpName": "io.github.fr0ster/mcp-abap-adt-compact-http",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "20.1.0",
|
|
5
5
|
"description": "The compact MCP server for SAP ABAP ADT over Streamable HTTP: one tool per operation with the object in the arguments — 28 tools instead of 370 — with credentials only from the x-sap-* headers of each request. No auth broker, no stores.",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
7
7
|
"publishConfig": {
|
|
@@ -51,19 +51,19 @@
|
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"prebuild": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
54
|
-
"build": "
|
|
54
|
+
"build": "tsc -p tsconfig.json",
|
|
55
55
|
"test": "npm --prefix .. test -- --roots compact-http/src",
|
|
56
|
-
"lint:check": "
|
|
56
|
+
"lint:check": "biome check src",
|
|
57
57
|
"prepublishOnly": "npm run build",
|
|
58
58
|
"start": "node ./bin/mcp-abap-adt-compact-http.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.1.0",
|
|
62
|
+
"@mcp-abap-adt/compact-modify": "^20.1.0",
|
|
63
|
+
"@mcp-abap-adt/compact-readonly-entries": "^20.1.0",
|
|
64
|
+
"@mcp-abap-adt/lib": "^20.1.0",
|
|
65
|
+
"@mcp-abap-adt/responsible-rules": "^20.1.0",
|
|
66
|
+
"@mcp-abap-adt/server-runtime": "^20.1.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"typescript": "^6.0.2",
|