@mcp-abap-adt/core 2.2.4 → 2.2.6

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +21 -10
  3. package/dist/handlers/function/high/handleUpdateFunctionModule.d.ts.map +1 -1
  4. package/dist/handlers/function/high/handleUpdateFunctionModule.js +31 -1
  5. package/dist/handlers/function/high/handleUpdateFunctionModule.js.map +1 -1
  6. package/dist/handlers/function/low/handleLockFunctionModule.d.ts.map +1 -1
  7. package/dist/handlers/function/low/handleLockFunctionModule.js +4 -2
  8. package/dist/handlers/function/low/handleLockFunctionModule.js.map +1 -1
  9. package/dist/handlers/function/low/handleUpdateFunctionModule.d.ts +6 -1
  10. package/dist/handlers/function/low/handleUpdateFunctionModule.d.ts.map +1 -1
  11. package/dist/handlers/function/low/handleUpdateFunctionModule.js +12 -3
  12. package/dist/handlers/function/low/handleUpdateFunctionModule.js.map +1 -1
  13. package/dist/handlers/function/readonly/handleGetFunction.d.ts +1 -1
  14. package/dist/handlers/function/readonly/handleGetFunction.d.ts.map +1 -1
  15. package/dist/handlers/function/readonly/handleGetFunction.js +9 -7
  16. package/dist/handlers/function/readonly/handleGetFunction.js.map +1 -1
  17. package/dist/handlers/function_module/high/handleDeleteFunctionModule.d.ts +6 -1
  18. package/dist/handlers/function_module/high/handleDeleteFunctionModule.d.ts.map +1 -1
  19. package/dist/handlers/function_module/high/handleDeleteFunctionModule.js +12 -5
  20. package/dist/handlers/function_module/high/handleDeleteFunctionModule.js.map +1 -1
  21. package/dist/handlers/function_module/high/handleGetFunctionModule.d.ts +6 -1
  22. package/dist/handlers/function_module/high/handleGetFunctionModule.d.ts.map +1 -1
  23. package/dist/handlers/function_module/high/handleGetFunctionModule.js +12 -6
  24. package/dist/handlers/function_module/high/handleGetFunctionModule.js.map +1 -1
  25. package/dist/lib/config/ArgumentsParser.d.ts.map +1 -1
  26. package/dist/lib/config/ArgumentsParser.js +20 -21
  27. package/dist/lib/config/ArgumentsParser.js.map +1 -1
  28. package/dist/lib/config/ServerConfigManager.d.ts.map +1 -1
  29. package/dist/lib/config/ServerConfigManager.js +8 -3
  30. package/dist/lib/config/ServerConfigManager.js.map +1 -1
  31. package/dist/lib/config/envResolver.d.ts +6 -0
  32. package/dist/lib/config/envResolver.d.ts.map +1 -0
  33. package/dist/lib/config/envResolver.js +84 -0
  34. package/dist/lib/config/envResolver.js.map +1 -0
  35. package/dist/lib/config/runtimeConfig.d.ts.map +1 -1
  36. package/dist/lib/config/runtimeConfig.js +27 -14
  37. package/dist/lib/config/runtimeConfig.js.map +1 -1
  38. package/dist/lib/utils.d.ts.map +1 -1
  39. package/dist/lib/utils.js +10 -6
  40. package/dist/lib/utils.js.map +1 -1
  41. package/dist/server/launcher.js +1 -1
  42. package/docs/installation/INSTALLATION.md +17 -12
  43. package/docs/user-guide/AUTHENTICATION.md +3 -2
  44. package/docs/user-guide/AVAILABLE_TOOLS.md +2634 -2725
  45. package/docs/user-guide/AVAILABLE_TOOLS_HIGH.md +1417 -0
  46. package/docs/user-guide/AVAILABLE_TOOLS_LOW.md +1945 -0
  47. package/docs/user-guide/AVAILABLE_TOOLS_READONLY.md +405 -0
  48. package/docs/user-guide/CLIENT_CONFIGURATION.md +24 -16
  49. package/docs/user-guide/CLI_OPTIONS.md +28 -22
  50. package/docs/user-guide/HANDLERS_MANAGEMENT.md +5 -5
  51. package/docs/user-guide/README.md +12 -6
  52. package/package.json +1 -1
@@ -100,18 +100,23 @@ mcp-abap-adt --auth-broker
100
100
  # Example: mcp-abap-adt --transport=stdio --mcp=TRIAL
101
101
  mcp-abap-adt --transport=stdio
102
102
 
103
- # Or specify custom .env location (uses .env instead of auth-broker)
104
- mcp-abap-adt --env=/path/to/my.env
105
- mcp-abap-adt --env ~/configs/sap-dev.env
103
+ # Or specify env destination from sessions store
104
+ mcp-abap-adt --env=trial
105
+
106
+ # Or explicit .env location (uses .env instead of auth-broker)
107
+ mcp-abap-adt --env-path=/path/to/my.env
108
+ mcp-abap-adt --env-path ~/configs/sap-dev.env
106
109
 
107
110
  # Start HTTP server on custom port
108
111
  mcp-abap-adt --transport=http --http-port=8080
109
112
  ```
110
113
 
111
114
  **Environment File Priority:**
112
- 1. Path specified via `--env` or `--env=` argument
113
- 2. `.env` in current working directory (where you run the command)
114
- 3. `.env` in package installation directory
115
+ 1. Path specified via `--env-path` (or `MCP_ENV_PATH`)
116
+ 2. Destination file via `--env=<destination>`:
117
+ - Unix: `~/.config/mcp-abap-adt/sessions/<destination>.env`
118
+ - Windows: `%USERPROFILE%\\Documents\\mcp-abap-adt\\sessions\\<destination>.env`
119
+ 3. `.env` in current working directory (where you run the command)
115
120
 
116
121
  This means you can have different `.env` files for different projects and the server will automatically use the one in your current directory.
117
122
 
@@ -270,7 +275,7 @@ mcp-abap-adt --auth-broker
270
275
  mcp-abap-adt --transport=stdio
271
276
 
272
277
  # Use .env file instead of auth-broker
273
- mcp-abap-adt --env=/path/to/.env
278
+ mcp-abap-adt --env-path=/path/to/.env
274
279
 
275
280
  # HTTP server transport
276
281
  mcp-abap-adt --transport=http --http-port=3000
@@ -365,7 +370,7 @@ EOF
365
370
  Or use a custom environment file:
366
371
 
367
372
  ```bash
368
- mcp-abap-adt --transport=http --env /path/to/custom/.env --port 3000
373
+ mcp-abap-adt --transport=http --env-path /path/to/custom/.env --port 3000
369
374
  ```
370
375
 
371
376
  #### Usage Examples
@@ -387,7 +392,7 @@ mcp-abap-adt --transport=http --host 0.0.0.0 --port 3000
387
392
 
388
393
  **Example 4: Use custom environment file**
389
394
  ```bash
390
- mcp-abap-adt --transport=http --env /opt/config/.env.production --port 8080
395
+ mcp-abap-adt --transport=http --env-path /opt/config/.env.production --port 8080
391
396
  ```
392
397
 
393
398
  **Example 5: Start SSE server**
@@ -407,8 +412,8 @@ All server commands (`mcp-abap-adt`, `mcp-abap-adt --transport=http`, `mcp-abap-
407
412
  - Directories are created automatically if they don't exist
408
413
  - Example: `--auth-broker-path=~/prj/tmp/` uses `~/prj/tmp/service-keys/` and `~/prj/tmp/sessions/`
409
414
  - Can be used together with `--auth-broker` flag
410
- - `--env=<path>` - Path to .env file (uses .env instead of auth-broker)
411
- - `--env <path>` - Alternative syntax for specifying .env path
415
+ - `--env=<destination>` - Destination env file from sessions store (`<destination>.env`)
416
+ - `--env-path=<path|file>` - Explicit path to `.env` file (uses .env instead of auth-broker)
412
417
 
413
418
  **Note:** By default (when no flags are specified), the server checks for `.env` in the current directory first. If `.env` exists, it is used automatically. If not, auth-broker is used. Use `--auth-broker` to force auth-broker even when `.env` exists.
414
419
 
@@ -435,7 +440,7 @@ All server commands (`mcp-abap-adt`, `mcp-abap-adt --transport=http`, `mcp-abap-
435
440
  You can also configure the server using environment variables.
436
441
 
437
442
  *MCP Server Configuration:*
438
- - `MCP_ENV_PATH` - Path to .env file
443
+ - `MCP_ENV_PATH` - Explicit path to `.env` file (same as `--env-path`)
439
444
  - `MCP_SKIP_ENV_LOAD` - Skip automatic .env loading (true|false)
440
445
  - `MCP_TRANSPORT` - Default transport type (stdio|http|sse)
441
446
  - `MCP_HTTP_PORT` - Default HTTP port
@@ -8,7 +8,7 @@ A **destination** is simply the **filename** of a service key stored in the serv
8
8
 
9
9
  - Put service keys here:
10
10
  - Linux/macOS: `~/.config/mcp-abap-adt/service-keys`
11
- - Windows: `%APPDATA%\mcp-abap-adt\service-keys`
11
+ - Windows: `%USERPROFILE%\Documents\mcp-abap-adt\service-keys`
12
12
  - The filename (without extension) becomes the destination name.
13
13
 
14
14
  Example:
@@ -30,7 +30,8 @@ The server will load the matching service key and manage tokens automatically.
30
30
  You can also provide credentials via `.env`:
31
31
 
32
32
  - In the current directory: `.env`
33
- - Or explicitly: `--env /path/to/.env`
33
+ - By destination: `--env <destination>` (resolved to sessions `<destination>.env`)
34
+ - Or explicitly: `--env-path /path/to/.env`
34
35
 
35
36
  This is useful for quick local testing or when you do not want to store service keys.
36
37