@mcp-abap-adt/compact-http 23.1.0 → 24.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 CHANGED
@@ -7,7 +7,7 @@ of its own.
7
7
  It is [`@mcp-abap-adt/http`](https://www.npmjs.com/package/@mcp-abap-adt/http)'s launcher — the one in
8
8
  [`@mcp-abap-adt/server-runtime`](https://www.npmjs.com/package/@mcp-abap-adt/server-runtime) — with the
9
9
  compact tool set and nothing else: the same options, the same credentials, the same failures and
10
- shutdown as `mcp-abap-adt-http`; only the tools differ. The 17 that change nothing alone are
10
+ shutdown as `mcp-abap-adt-http`; only the tools differ. The 16 that change nothing alone are
11
11
  [`@mcp-abap-adt/compact-http-ro`](https://www.npmjs.com/package/@mcp-abap-adt/compact-http-ro)
12
12
  (`mcp-abap-adt-compact-http-ro`): the binary fixes the tool set (19.0.0). stdio is
13
13
  [`@mcp-abap-adt/compact`](https://www.npmjs.com/package/@mcp-abap-adt/compact), the other HTTP
@@ -25,7 +25,7 @@ mcp-abap-adt-compact-http --help # every option, from this b
25
25
 
26
26
  There is no `--transport`: a binary is its transport.
27
27
 
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, FUNCTION_GROUP and TABLE_TYPE, and for INCLUDE with `part: 'metadata'`, `source_code` is the whole metadata document, sent as given; `part` is taken by INCLUDE alone, `source` when absent), `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, FUNCTION_GROUP and TABLE_TYPE 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).
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, FUNCTION_GROUP and TABLE_TYPE, and for INCLUDE with `part: 'metadata'`, `source_code` is the whole metadata document, sent as given; `part` is taken by INCLUDE alone, `source` when absent), `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 }`; on a system whose discovery offers no activation runs (SAP_BASIS 751, 7.40) that call answers SAP's refusal, and a group activation there is `ActivateObjects` of the full set or `ActivateObjectLow` of the low handlers group), and `HandlerGet` — one request per part: `source` the source alone, `metadata` the metadata document alone (PACKAGE, DOMAIN, DATA_ELEMENT, FUNCTION_GROUP and TABLE_TYPE 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
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).
@@ -49,8 +49,8 @@ The handle is a bearer secret — the server does not identify the caller. `Hand
49
49
  nothing in the system, so `mcp-abap-adt-compact-http-ro` serves it too; in batch mode it runs at
50
50
  once and is never recorded — open leaves the batch open, close drops it.
51
51
 
52
- **The tools are fixed by the binary**: all 29, the four debugger tools (`HandlerDebugBreakpoints`,
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
52
+ **The tools are fixed by the binary**: all 28, the four debugger tools (`HandlerDebugBreakpoints`,
53
+ `HandlerDebugSession`, `HandlerDebugStep`, `HandlerDebugMaintain`), the debugger batch (`HandlerDebugBatch`), the background-run tools, `HandlerBatch` and the long session (`HandlerSession`) — 37; `HandlerGetData`, one of the 28, only with `--enable-data-tools` (38). `--exposition` (`ro`, `rw`, `debug`, any word) and a config file's
54
54
  `exposition` stop the start, naming the binary to install instead
55
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
56
56
  users, so those are the stdio binaries' (`mcp-abap-adt-compact`, `mcp-abap-adt-compact-ro`); resuming
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @mcp-abap-adt/compact-http — the compact ABAP ADT server over Streamable HTTP, and its
3
3
  * command.
4
4
  *
5
- * 29 tools instead of 370: one per operation, with the object in `object_type`,
5
+ * 28 tools instead of 370: one per operation, with the object in `object_type`,
6
6
  * composed of `@mcp-abap-adt/compact-readonly-entries` and `@mcp-abap-adt/compact-modify`
7
7
  * by `compactToolSetOf` of `@mcp-abap-adt/lib/tool-set`, served by
8
8
  * the Streamable HTTP launcher of `@mcp-abap-adt/server-runtime` (the one
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ exports.main = exports.compactToolSet = exports.COMPACT_HTTP_VERSION = void 0;
5
5
  * @mcp-abap-adt/compact-http — the compact ABAP ADT server over Streamable HTTP, and its
6
6
  * command.
7
7
  *
8
- * 29 tools instead of 370: one per operation, with the object in `object_type`,
8
+ * 28 tools instead of 370: one per operation, with the object in `object_type`,
9
9
  * composed of `@mcp-abap-adt/compact-readonly-entries` and `@mcp-abap-adt/compact-modify`
10
10
  * by `compactToolSetOf` of `@mcp-abap-adt/lib/tool-set`, served by
11
11
  * the Streamable HTTP launcher of `@mcp-abap-adt/server-runtime` (the one
@@ -3,10 +3,7 @@ import { type ToolSet } from '@mcp-abap-adt/lib/tool-set';
3
3
  import { main as httpMain } from '@mcp-abap-adt/server-runtime/http';
4
4
  /** The compact tool set: both halves, the debugger and background runs. */
5
5
  export declare const compactToolSet: ToolSet;
6
- /**
7
- * THIS package's version, for `--version` and `initialize`. `require`, not a
8
- * file read: a bundler (the portable build) inlines it.
9
- */
6
+ /** THIS package's version, for `--version` and `initialize`. */
10
7
  export declare const COMPACT_HTTP_VERSION: string;
11
8
  /** THIS package's name, from the same manifest: what a second copy of lib asks to reinstall. */
12
9
  export declare const COMPACT_HTTP_PACKAGE: string;
@@ -1 +1 @@
1
- {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAErE,2EAA2E;AAC3E,eAAO,MAAM,cAAc,EAAE,OAG3B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAE1B,CAAC;AAEV,gGAAgG;AAChG,eAAO,MAAM,oBAAoB,EAAE,MAE7B,CAAC;AAEP,wBAAgB,IAAI,CAClB,KAAK,GAAE,aAA8B,GACpC,UAAU,CAAC,OAAO,QAAQ,CAAC,CAU7B"}
1
+ {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAErE,2EAA2E;AAC3E,eAAO,MAAM,cAAc,EAAE,OAI3B,CAAC;AAQH,gEAAgE;AAChE,eAAO,MAAM,oBAAoB,EAAE,MAAyB,CAAC;AAE7D,gGAAgG;AAChG,eAAO,MAAM,oBAAoB,EAAE,MAAsB,CAAC;AAE1D,wBAAgB,IAAI,CAClB,KAAK,GAAE,aAA8B,GACpC,UAAU,CAAC,OAAO,QAAQ,CAAC,CAU7B"}
package/dist/launcher.js CHANGED
@@ -20,15 +20,18 @@ const http_1 = require("@mcp-abap-adt/server-runtime/http");
20
20
  /** The compact tool set: both halves, the debugger and background runs. */
21
21
  exports.compactToolSet = (0, tool_set_1.compactToolSetOf)({
22
22
  readOnly: compact_readonly_entries_1.compactReadOnlyEntries,
23
+ data: compact_readonly_entries_1.compactDataEntries,
23
24
  modify: compact_modify_1.compactModifyEntries,
24
25
  });
25
26
  /**
26
- * THIS package's version, for `--version` and `initialize`. `require`, not a
27
- * file read: a bundler (the portable build) inlines it.
27
+ * THIS package's manifest, read by its shape (`packageManifestOf`). `require`,
28
+ * not a file read: a bundler (the portable build) inlines it.
28
29
  */
29
- exports.COMPACT_HTTP_VERSION = require('../package.json').version;
30
+ const MANIFEST = (0, config_1.packageManifestOf)(require('../package.json'));
31
+ /** THIS package's version, for `--version` and `initialize`. */
32
+ exports.COMPACT_HTTP_VERSION = MANIFEST.version;
30
33
  /** THIS package's name, from the same manifest: what a second copy of lib asks to reinstall. */
31
- exports.COMPACT_HTTP_PACKAGE = require('../package.json').name;
34
+ exports.COMPACT_HTTP_PACKAGE = MANIFEST.name;
32
35
  function main(edges = (0, config_1.processEdges)()) {
33
36
  return (0, http_1.main)({
34
37
  toolSet: exports.compactToolSet,
@@ -1 +1 @@
1
- {"version":3,"file":"launcher.js","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":";;;AAmCA,oBAYC;AA/CD;;;;;;;;;GASG;AACH,iEAAoE;AACpE,qFAAgF;AAChF,qDAA4E;AAC5E,yDAA4E;AAC5E,4DAAqE;AAErE,2EA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pC,OAAO,EAAE,4BAAoB;QAC7B,WAAW,EAAE,4BAAoB;KAClC,EACD,KAAK,CACN,CAAC;AACJ,CAAC"}
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": "23.1.0",
4
+ "version": "24.0.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": {
@@ -58,12 +58,12 @@
58
58
  "start": "node ./bin/mcp-abap-adt-compact-http.js"
59
59
  },
60
60
  "dependencies": {
61
- "@mcp-abap-adt/background-runs-memory": "^23.1.0",
62
- "@mcp-abap-adt/compact-modify": "^23.1.0",
63
- "@mcp-abap-adt/compact-readonly-entries": "^23.1.0",
64
- "@mcp-abap-adt/lib": "^23.1.0",
65
- "@mcp-abap-adt/responsible-rules": "^23.1.0",
66
- "@mcp-abap-adt/server-runtime": "^23.1.0"
61
+ "@mcp-abap-adt/background-runs-memory": "^24.0.0",
62
+ "@mcp-abap-adt/compact-modify": "^24.0.0",
63
+ "@mcp-abap-adt/compact-readonly-entries": "^24.0.0",
64
+ "@mcp-abap-adt/lib": "^24.0.0",
65
+ "@mcp-abap-adt/responsible-rules": "^24.0.0",
66
+ "@mcp-abap-adt/server-runtime": "^24.0.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "typescript": "^6.0.2",