@mcp-abap-adt/core 2.2.5 → 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.
- package/CHANGELOG.md +12 -0
- package/README.md +19 -8
- package/dist/handlers/function/high/handleUpdateFunctionModule.d.ts.map +1 -1
- package/dist/handlers/function/high/handleUpdateFunctionModule.js +31 -1
- package/dist/handlers/function/high/handleUpdateFunctionModule.js.map +1 -1
- package/dist/handlers/function/low/handleLockFunctionModule.d.ts.map +1 -1
- package/dist/handlers/function/low/handleLockFunctionModule.js +4 -2
- package/dist/handlers/function/low/handleLockFunctionModule.js.map +1 -1
- package/dist/handlers/function/low/handleUpdateFunctionModule.d.ts +6 -1
- package/dist/handlers/function/low/handleUpdateFunctionModule.d.ts.map +1 -1
- package/dist/handlers/function/low/handleUpdateFunctionModule.js +12 -3
- package/dist/handlers/function/low/handleUpdateFunctionModule.js.map +1 -1
- package/dist/handlers/function/readonly/handleGetFunction.d.ts +1 -1
- package/dist/handlers/function/readonly/handleGetFunction.d.ts.map +1 -1
- package/dist/handlers/function/readonly/handleGetFunction.js +9 -7
- package/dist/handlers/function/readonly/handleGetFunction.js.map +1 -1
- package/dist/handlers/function_module/high/handleDeleteFunctionModule.d.ts +6 -1
- package/dist/handlers/function_module/high/handleDeleteFunctionModule.d.ts.map +1 -1
- package/dist/handlers/function_module/high/handleDeleteFunctionModule.js +12 -5
- package/dist/handlers/function_module/high/handleDeleteFunctionModule.js.map +1 -1
- package/dist/handlers/function_module/high/handleGetFunctionModule.d.ts +6 -1
- package/dist/handlers/function_module/high/handleGetFunctionModule.d.ts.map +1 -1
- package/dist/handlers/function_module/high/handleGetFunctionModule.js +12 -6
- package/dist/handlers/function_module/high/handleGetFunctionModule.js.map +1 -1
- package/dist/lib/config/ArgumentsParser.d.ts.map +1 -1
- package/dist/lib/config/ArgumentsParser.js +20 -21
- package/dist/lib/config/ArgumentsParser.js.map +1 -1
- package/dist/lib/config/ServerConfigManager.d.ts.map +1 -1
- package/dist/lib/config/ServerConfigManager.js +8 -3
- package/dist/lib/config/ServerConfigManager.js.map +1 -1
- package/dist/lib/config/envResolver.d.ts +6 -0
- package/dist/lib/config/envResolver.d.ts.map +1 -0
- package/dist/lib/config/envResolver.js +84 -0
- package/dist/lib/config/envResolver.js.map +1 -0
- package/dist/lib/config/runtimeConfig.d.ts.map +1 -1
- package/dist/lib/config/runtimeConfig.js +27 -14
- package/dist/lib/config/runtimeConfig.js.map +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +10 -6
- package/dist/lib/utils.js.map +1 -1
- package/dist/server/launcher.js +1 -1
- package/docs/installation/INSTALLATION.md +17 -12
- package/docs/user-guide/AUTHENTICATION.md +3 -2
- package/docs/user-guide/AVAILABLE_TOOLS.md +815 -526
- package/docs/user-guide/AVAILABLE_TOOLS_HIGH.md +1417 -0
- package/docs/user-guide/AVAILABLE_TOOLS_LOW.md +1945 -0
- package/docs/user-guide/AVAILABLE_TOOLS_READONLY.md +405 -0
- package/docs/user-guide/CLIENT_CONFIGURATION.md +24 -16
- package/docs/user-guide/CLI_OPTIONS.md +28 -22
- package/docs/user-guide/HANDLERS_MANAGEMENT.md +5 -5
- package/docs/user-guide/README.md +12 -6
- 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
|
|
104
|
-
mcp-abap-adt --env
|
|
105
|
-
|
|
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
|
|
113
|
-
2.
|
|
114
|
-
|
|
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=<
|
|
411
|
-
- `--env
|
|
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` -
|
|
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: `%
|
|
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
|
-
-
|
|
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
|
|