@mcp-abap-adt/proxy 0.1.8 → 0.1.9
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/CHANGELOG.md +11 -1
- package/README.md +10 -1
- package/dist/lib/stores.d.ts.map +1 -1
- package/dist/lib/stores.js +9 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.9] - 2026-02-12
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- **AUTH_BROKER_PATH resolution aligned with `mcp-abap-adt`**
|
|
14
|
+
- `AUTH_BROKER_PATH` is now treated as a base directory.
|
|
15
|
+
- Proxy now resolves stores from `<base>/service-keys` and `<base>/sessions`.
|
|
16
|
+
- If a path already ends with `service-keys` or `sessions`, it is normalized and still resolved correctly.
|
|
17
|
+
|
|
18
|
+
### Documentation
|
|
19
|
+
- Clarified in README and troubleshooting docs how default store paths and `AUTH_BROKER_PATH` are resolved.
|
|
20
|
+
|
|
10
21
|
## [0.1.8] - 2026-02-05
|
|
11
22
|
|
|
12
23
|
### Added
|
|
@@ -198,4 +209,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
198
209
|
- `@mcp-abap-adt/header-validator` ^0.1.3 - Header validation
|
|
199
210
|
- `axios` - HTTP client
|
|
200
211
|
- `zod` - Schema validation
|
|
201
|
-
|
package/README.md
CHANGED
|
@@ -157,8 +157,17 @@ The proxy is transparent - it only adds authentication headers and forwards requ
|
|
|
157
157
|
export MCP_HTTP_PORT=3001
|
|
158
158
|
export LOG_LEVEL=info
|
|
159
159
|
export MCP_PROXY_UNSAFE=true # Enable file-based session storage (optional)
|
|
160
|
+
export AUTH_BROKER_PATH=~/.config/mcp-abap-adt # Optional base path for service-keys/sessions
|
|
160
161
|
```
|
|
161
162
|
|
|
163
|
+
`AUTH_BROKER_PATH` is treated as a base directory. The proxy resolves:
|
|
164
|
+
- `service-keys` from `<AUTH_BROKER_PATH>/service-keys`
|
|
165
|
+
- `sessions` from `<AUTH_BROKER_PATH>/sessions`
|
|
166
|
+
|
|
167
|
+
Defaults when `AUTH_BROKER_PATH` is not set:
|
|
168
|
+
- Unix/Linux/macOS: `~/.config/mcp-abap-adt/service-keys` and `~/.config/mcp-abap-adt/sessions`
|
|
169
|
+
- Windows: `%USERPROFILE%\\Documents\\mcp-abap-adt\\service-keys` and `%USERPROFILE%\\Documents\\mcp-abap-adt\\sessions`
|
|
170
|
+
|
|
162
171
|
### Configuration File
|
|
163
172
|
|
|
164
173
|
Create `mcp-proxy-config.json`:
|
|
@@ -175,7 +184,7 @@ Create `mcp-proxy-config.json`:
|
|
|
175
184
|
|
|
176
185
|
**Session Storage:**
|
|
177
186
|
- `unsafe: false` (default) - Session data stored in-memory (secure, lost on restart)
|
|
178
|
-
- `unsafe: true` - Session data persisted to disk (tokens saved
|
|
187
|
+
- `unsafe: true` - Session data persisted to disk (tokens saved under the session store path)
|
|
179
188
|
|
|
180
189
|
See [Configuration Guide](./docs/CONFIGURATION.md) for complete options.
|
|
181
190
|
|
package/dist/lib/stores.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores.d.ts","sourceRoot":"","sources":["../../src/lib/stores.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACd,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"stores.d.ts","sourceRoot":"","sources":["../../src/lib/stores.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACd,MAAM,2BAA2B,CAAC;AAsFnC;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,GAAE,OAAe,GAAG,OAAO,CAAC;IACxE,eAAe,EAAE,gBAAgB,CAAC;IAClC,YAAY,EAAE,aAAa,CAAC;CAC7B,CAAC,CAqBD"}
|
package/dist/lib/stores.js
CHANGED
|
@@ -59,6 +59,7 @@ function getPlatformPaths(subfolder) {
|
|
|
59
59
|
const paths = [];
|
|
60
60
|
const isWindows = process.platform === 'win32';
|
|
61
61
|
// Priority 1: AUTH_BROKER_PATH environment variable
|
|
62
|
+
// AUTH_BROKER_PATH is treated as a base path; append subfolder when requested
|
|
62
63
|
const envPath = process.env.AUTH_BROKER_PATH;
|
|
63
64
|
if (envPath) {
|
|
64
65
|
// Support both colon (Unix) and semicolon (Windows) separators
|
|
@@ -66,7 +67,14 @@ function getPlatformPaths(subfolder) {
|
|
|
66
67
|
.split(/[:;]/)
|
|
67
68
|
.map((p) => p.trim())
|
|
68
69
|
.filter((p) => p.length > 0);
|
|
69
|
-
paths.push(...envPaths.map((p) =>
|
|
70
|
+
paths.push(...envPaths.map((p) => {
|
|
71
|
+
let resolved = path.resolve(p);
|
|
72
|
+
// If path already ends with subfolder, use parent as base path
|
|
73
|
+
if (subfolder && path.basename(resolved) === subfolder) {
|
|
74
|
+
resolved = path.dirname(resolved);
|
|
75
|
+
}
|
|
76
|
+
return subfolder ? path.join(resolved, subfolder) : resolved;
|
|
77
|
+
}));
|
|
70
78
|
}
|
|
71
79
|
// Priority 2: Platform-specific standard paths
|
|
72
80
|
// Only add platform-specific paths if no custom paths were provided (matching mcp-abap-adt logic)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/proxy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "MCP proxy server for SAP ABAP ADT - proxies local requests to cloud-llm-hub with JWT authentication",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@biomejs/biome": "^2.3.
|
|
47
|
+
"@biomejs/biome": "^2.3.15",
|
|
48
48
|
"@jest/globals": "^30.2.0",
|
|
49
|
-
"@modelcontextprotocol/inspector": "^0.
|
|
49
|
+
"@modelcontextprotocol/inspector": "^0.20.0",
|
|
50
50
|
"@types/jest": "^30.0.0",
|
|
51
51
|
"@types/js-yaml": "^4.0.9",
|
|
52
|
-
"@types/node": "^
|
|
53
|
-
"commander": "^14.0.
|
|
54
|
-
"cors": "^2.8.
|
|
52
|
+
"@types/node": "^25.2.3",
|
|
53
|
+
"commander": "^14.0.3",
|
|
54
|
+
"cors": "^2.8.6",
|
|
55
55
|
"cross-env": "^10.1.0",
|
|
56
56
|
"express": "^5.1.0",
|
|
57
57
|
"jest": "^30.2.0",
|
|
58
58
|
"jest-util": "^30.2.0",
|
|
59
|
-
"pino": "^10.3.
|
|
59
|
+
"pino": "^10.3.1",
|
|
60
60
|
"pino-pretty": "^13.1.3",
|
|
61
61
|
"rimraf": "^6.1.2",
|
|
62
62
|
"ts-jest": "^29.2.5",
|
|
@@ -64,16 +64,16 @@
|
|
|
64
64
|
"typescript": "^5.9.2"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@mcp-abap-adt/auth-broker": "^0.
|
|
68
|
-
"@mcp-abap-adt/auth-providers": "^0.
|
|
69
|
-
"@mcp-abap-adt/auth-stores": "^0.
|
|
67
|
+
"@mcp-abap-adt/auth-broker": "^1.0.5",
|
|
68
|
+
"@mcp-abap-adt/auth-providers": "^1.0.5",
|
|
69
|
+
"@mcp-abap-adt/auth-stores": "^1.0.2",
|
|
70
70
|
"@mcp-abap-adt/header-validator": "^0.1.8",
|
|
71
|
-
"@mcp-abap-adt/interfaces": "^
|
|
71
|
+
"@mcp-abap-adt/interfaces": "^2.3.0",
|
|
72
72
|
"@mcp-abap-adt/logger": "^0.1.4",
|
|
73
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
74
|
-
"axios": "^1.
|
|
73
|
+
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
74
|
+
"axios": "^1.13.5",
|
|
75
75
|
"js-yaml": "^4.1.1",
|
|
76
|
-
"zod": "^3.
|
|
76
|
+
"zod": "^4.3.6"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
79
|
"node": ">=18.0.0",
|