@mcp-abap-adt/connection 1.5.3 → 1.6.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.
|
@@ -5,7 +5,7 @@ import type { AbapConnection } from './AbapConnection.js';
|
|
|
5
5
|
/**
|
|
6
6
|
* RFC-based connection for on-premise SAP systems.
|
|
7
7
|
*
|
|
8
|
-
* Uses
|
|
8
|
+
* Uses @mcp-abap-adt/sap-rfc-lite to call SADT_REST_RFC_ENDPOINT — the same standard SAP FM
|
|
9
9
|
* that Eclipse ADT uses for all on-premise ADT operations via JCo.
|
|
10
10
|
*
|
|
11
11
|
* RFC connections are inherently stateful: one ABAP session persists for the
|
|
@@ -18,7 +18,7 @@ import type { AbapConnection } from './AbapConnection.js';
|
|
|
18
18
|
*
|
|
19
19
|
* Prerequisites:
|
|
20
20
|
* - SAP NW RFC SDK installed on the machine
|
|
21
|
-
* -
|
|
21
|
+
* - @mcp-abap-adt/sap-rfc-lite package installed: npm install @mcp-abap-adt/sap-rfc-lite
|
|
22
22
|
*/
|
|
23
23
|
export declare class RfcAbapConnection implements AbapConnection {
|
|
24
24
|
private readonly config;
|
|
@@ -59,7 +59,7 @@ function detectExceptionStatus(body) {
|
|
|
59
59
|
/**
|
|
60
60
|
* RFC-based connection for on-premise SAP systems.
|
|
61
61
|
*
|
|
62
|
-
* Uses
|
|
62
|
+
* Uses @mcp-abap-adt/sap-rfc-lite to call SADT_REST_RFC_ENDPOINT — the same standard SAP FM
|
|
63
63
|
* that Eclipse ADT uses for all on-premise ADT operations via JCo.
|
|
64
64
|
*
|
|
65
65
|
* RFC connections are inherently stateful: one ABAP session persists for the
|
|
@@ -72,7 +72,7 @@ function detectExceptionStatus(body) {
|
|
|
72
72
|
*
|
|
73
73
|
* Prerequisites:
|
|
74
74
|
* - SAP NW RFC SDK installed on the machine
|
|
75
|
-
* -
|
|
75
|
+
* - @mcp-abap-adt/sap-rfc-lite package installed: npm install @mcp-abap-adt/sap-rfc-lite
|
|
76
76
|
*/
|
|
77
77
|
class RfcAbapConnection {
|
|
78
78
|
config;
|
|
@@ -95,16 +95,16 @@ class RfcAbapConnection {
|
|
|
95
95
|
async connect() {
|
|
96
96
|
let Client;
|
|
97
97
|
try {
|
|
98
|
-
// Dynamic require —
|
|
98
|
+
// Dynamic require — @mcp-abap-adt/sap-rfc-lite is NOT a declared dependency.
|
|
99
99
|
// Users who need RFC connections must install it manually:
|
|
100
|
-
// npm install
|
|
100
|
+
// npm install @mcp-abap-adt/sap-rfc-lite (+ SAP NW RFC SDK on the machine)
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
102
|
-
const noderfc = require('
|
|
102
|
+
const noderfc = require('@mcp-abap-adt/sap-rfc-lite');
|
|
103
103
|
Client = noderfc.Client;
|
|
104
104
|
}
|
|
105
105
|
catch (e) {
|
|
106
|
-
throw new Error('
|
|
107
|
-
'and run: npm install
|
|
106
|
+
throw new Error('@mcp-abap-adt/sap-rfc-lite is not available. To use RFC connections, install SAP NW RFC SDK ' +
|
|
107
|
+
'and run: npm install @mcp-abap-adt/sap-rfc-lite. ' +
|
|
108
108
|
`Details: ${e instanceof Error ? e.message : String(e)}`);
|
|
109
109
|
}
|
|
110
110
|
this.rfcClient = new Client(this.rfcParams);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/connection",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "ABAP connection layer for MCP ABAP ADT server",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"node": ">=18.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@mcp-abap-adt/interfaces": "^
|
|
49
|
+
"@mcp-abap-adt/interfaces": "^6.1.0",
|
|
50
|
+
"@mcp-abap-adt/sap-rfc-lite": "^0.1.0",
|
|
50
51
|
"axios": "^1.13.5",
|
|
51
52
|
"commander": "^14.0.3",
|
|
52
53
|
"express": "^5.1.0",
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
"@biomejs/biome": "^2.3.14",
|
|
57
58
|
"@types/jest": "^30.0.0",
|
|
58
59
|
"@types/node": "^25.2.3",
|
|
60
|
+
"dotenv": "^17.3.1",
|
|
59
61
|
"jest": "^30.2.0",
|
|
60
62
|
"jest-util": "^30.2.0",
|
|
61
63
|
"ts-jest": "^29.2.5",
|