@mcp-abap-adt/compact-sse 23.0.2 → 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 +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/launcher.d.ts +1 -4
- package/dist/launcher.d.ts.map +1 -1
- package/dist/launcher.js +7 -4
- package/dist/launcher.js.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ of its own.
|
|
|
7
7
|
It is [`@mcp-abap-adt/sse`](https://www.npmjs.com/package/@mcp-abap-adt/sse)'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-sse`; only the tools differ. The
|
|
10
|
+
shutdown as `mcp-abap-adt-sse`; only the tools differ. The 16 that change nothing alone are
|
|
11
11
|
[`@mcp-abap-adt/compact-sse-ro`](https://www.npmjs.com/package/@mcp-abap-adt/compact-sse-ro)
|
|
12
12
|
(`mcp-abap-adt-compact-sse-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,13 +25,13 @@ mcp-abap-adt-compact-sse --help # every option, from this bi
|
|
|
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 the `x-sap-*` headers of the `GET` that opens each SSE connection — `x-sap-url`, `x-sap-client`, and `x-sap-jwt-token` or `x-sap-login` with `x-sap-password`; a `POST` is routed by its `sessionId` alone. Nothing is shared with another connection, and nothing outlives it. A request without them 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 tools are fixed by the binary**: all
|
|
34
|
-
`HandlerDebugSession`, `HandlerDebugStep`, `HandlerDebugMaintain`), the debugger batch (`HandlerDebugBatch`), the background-run tools and `HandlerBatch` —
|
|
33
|
+
**The tools are fixed by the binary**: all 28, the four debugger tools (`HandlerDebugBreakpoints`,
|
|
34
|
+
`HandlerDebugSession`, `HandlerDebugStep`, `HandlerDebugMaintain`), the debugger batch (`HandlerDebugBatch`), the background-run tools and `HandlerBatch` — 36; `HandlerGetData`, one of the 28, only with `--enable-data-tools` (37). `--exposition` (`ro`, `rw`, `debug`, any word) and a config file's
|
|
35
35
|
`exposition` stop the start, naming the binary to install instead
|
|
36
36
|
(`mcp-abap-adt-compact-sse-ro` for `ro`). No leftover-session tool and no runtime session file: one server holds the sessions of many
|
|
37
37
|
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-sse — the compact ABAP ADT server over HTTP+SSE, and its
|
|
3
3
|
* command.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
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 HTTP+SSE launcher of `@mcp-abap-adt/server-runtime` (the one
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ exports.main = exports.compactToolSet = exports.COMPACT_SSE_VERSION = void 0;
|
|
|
5
5
|
* @mcp-abap-adt/compact-sse — the compact ABAP ADT server over HTTP+SSE, and its
|
|
6
6
|
* command.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
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 HTTP+SSE launcher of `@mcp-abap-adt/server-runtime` (the one
|
package/dist/launcher.d.ts
CHANGED
|
@@ -3,10 +3,7 @@ import { type ToolSet } from '@mcp-abap-adt/lib/tool-set';
|
|
|
3
3
|
import { main as sseMain } from '@mcp-abap-adt/server-runtime/sse';
|
|
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_SSE_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_SSE_PACKAGE: string;
|
package/dist/launcher.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"
|
|
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,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAEnE,2EAA2E;AAC3E,eAAO,MAAM,cAAc,EAAE,OAI3B,CAAC;AAQH,gEAAgE;AAChE,eAAO,MAAM,mBAAmB,EAAE,MAAyB,CAAC;AAE5D,gGAAgG;AAChG,eAAO,MAAM,mBAAmB,EAAE,MAAsB,CAAC;AAEzD,wBAAgB,IAAI,CAClB,KAAK,GAAE,aAA8B,GACpC,UAAU,CAAC,OAAO,OAAO,CAAC,CAU5B"}
|
package/dist/launcher.js
CHANGED
|
@@ -20,15 +20,18 @@ const sse_1 = require("@mcp-abap-adt/server-runtime/sse");
|
|
|
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
|
|
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
|
-
|
|
30
|
+
const MANIFEST = (0, config_1.packageManifestOf)(require('../package.json'));
|
|
31
|
+
/** THIS package's version, for `--version` and `initialize`. */
|
|
32
|
+
exports.COMPACT_SSE_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_SSE_PACKAGE =
|
|
34
|
+
exports.COMPACT_SSE_PACKAGE = MANIFEST.name;
|
|
32
35
|
function main(edges = (0, config_1.processEdges)()) {
|
|
33
36
|
return (0, sse_1.main)({
|
|
34
37
|
toolSet: exports.compactToolSet,
|
package/dist/launcher.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.js","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"launcher.js","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":";;;AA0CA,oBAYC;AAtDD;;;;;;;;;GASG;AACH,iEAAoE;AACpE,qFAGgD;AAChD,qDAIkC;AAClC,yDAA4E;AAC5E,0DAAmE;AAEnE,2EAA2E;AAC9D,QAAA,cAAc,GAAY,IAAA,2BAAgB,EAAC;IACtD,QAAQ,EAAE,iDAAsB;IAChC,IAAI,EAAE,6CAAkB;IACxB,MAAM,EAAE,qCAAoB;CAC7B,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,QAAQ,GAAG,IAAA,0BAAiB,EAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAE/D,gEAAgE;AACnD,QAAA,mBAAmB,GAAW,QAAQ,CAAC,OAAO,CAAC;AAE5D,gGAAgG;AACnF,QAAA,mBAAmB,GAAW,QAAQ,CAAC,IAAI,CAAC;AAEzD,SAAgB,IAAI,CAClB,QAAuB,IAAA,qBAAY,GAAE;IAErC,OAAO,IAAA,UAAO,EACZ;QACE,OAAO,EAAE,sBAAc;QACvB,OAAO,EAAE,0BAA0B;QACnC,OAAO,EAAE,2BAAmB;QAC5B,WAAW,EAAE,2BAAmB;KACjC,EACD,KAAK,CACN,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/compact-sse",
|
|
3
3
|
"mcpName": "io.github.fr0ster/mcp-abap-adt-compact-sse",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "24.0.0",
|
|
5
5
|
"description": "The compact MCP server for SAP ABAP ADT over HTTP+SSE: one tool per operation with the object in the arguments — 28 tools instead of 370 — with credentials only from the x-sap-* headers of the request that opens each SSE connection. 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-sse.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": "^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",
|