@mcp-abap-adt/proxy 0.1.3 → 0.1.4

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 CHANGED
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.4] - 2025-12-02
11
+
12
+ ### Added
13
+ - **Documentation for BTP-Only authentication mode**
14
+ - Added "Scenario 2: BTP Authentication Only (No SAP Configuration)" in `doc/USAGE.md`
15
+ - Documented use case for connecting to any BTP service without SAP ABAP configuration
16
+ - Explained that `x-mcp-destination` is optional when using `x-btp-destination` or `--btp`
17
+ - Updated README.md with "BTP-Only Mode" section explaining behavior when only `--btp` is provided
18
+ - **Enhanced help text in `bin/mcp-abap-adt-proxy.js`**
19
+ - Added detailed "Usage Modes" section with three modes:
20
+ 1. BTP Authentication Mode (with `--btp` only)
21
+ 2. BTP + SAP Configuration Mode (`--btp + --mcp`)
22
+ 3. Local Testing Mode (only `--mcp` or `--mcp-url`)
23
+ - Added examples for each usage mode
24
+ - Added information about headers for HTTP/SSE transports
25
+ - Added service keys location and structure documentation
26
+ - Clarified that `abap.url` in service key is used as MCP server URL (even for non-SAP services)
27
+
28
+ ### Documentation
29
+ - Improved clarity on when to use each authentication mode
30
+ - Added examples showing BTP-only usage (without SAP configuration)
31
+ - Documented that proxy works with any BTP service, not just SAP ABAP
32
+
10
33
  ## [0.1.3] - 2025-12-02
11
34
 
12
35
  ### Fixed
package/README.md CHANGED
@@ -81,9 +81,15 @@ The proxy uses two service keys (URLs are obtained from service keys):
81
81
 
82
82
  **BTP Authentication Mode** (with `x-btp-destination` or `--btp`):
83
83
  1. `x-btp-destination` (or `--btp`) → Gets JWT token from auth-broker → Adds `Authorization: Bearer <token>` header
84
- 2. `x-mcp-destination` (or `--mcp`) → Gets JWT token and SAP config from auth-broker → Adds SAP headers (`x-sap-jwt-token`, `x-sap-url`, etc.)
84
+ 2. `x-mcp-destination` (or `--mcp`) → Gets JWT token and SAP config from auth-broker → Adds SAP headers (`x-sap-jwt-token`, `x-sap-url`, etc.) - **optional**
85
85
  3. MCP server URL obtained from service key for `x-btp-destination`
86
86
 
87
+ **BTP-Only Mode** (with only `x-btp-destination`/`--btp`, without `x-mcp-destination`):
88
+ - Works with any BTP service, not just SAP ABAP
89
+ - Only adds `Authorization: Bearer <token>` header (no SAP headers)
90
+ - MCP server URL obtained from BTP destination service key
91
+ - Suitable for BTP services that don't require SAP ABAP configuration
92
+
87
93
  **Local Testing Mode** (with only `x-mcp-destination`/`--mcp` or `x-mcp-url`/`--mcp-url`):
88
94
  1. `x-mcp-url` (or `--mcp-url`) → Direct URL to MCP server (no authentication)
89
95
  2. `x-mcp-destination` (or `--mcp`) → Gets MCP server URL from service key for MCP destination (optional token)
@@ -94,6 +94,49 @@ Transport Modes:
94
94
  - http / streamable-http: HTTP server (default if stdin is TTY, port 3001)
95
95
  - sse: Server-Sent Events server (port 3002)
96
96
 
97
+ Usage Modes:
98
+
99
+ 1. BTP Authentication Mode (with --btp):
100
+ - Adds Authorization: Bearer <token> header from BTP destination
101
+ - Gets MCP server URL from BTP destination service key
102
+ - Works with any BTP service, not just SAP ABAP
103
+ Example: mcp-abap-adt-proxy --btp=ai
104
+
105
+ 2. BTP + SAP Configuration Mode (--btp + --mcp):
106
+ - Adds Authorization: Bearer <token> header from BTP destination
107
+ - Adds SAP headers (x-sap-jwt-token, x-sap-url, etc.) from MCP destination
108
+ - Gets MCP server URL from BTP destination service key
109
+ - Suitable for SAP ABAP systems that require both BTP and SAP authentication
110
+ Example: mcp-abap-adt-proxy --btp=ai --mcp=trial
111
+
112
+ 3. Local Testing Mode (only --mcp or --mcp-url):
113
+ - No BTP authentication required
114
+ - Gets MCP server URL from MCP destination service key (--mcp) or uses direct URL (--mcp-url)
115
+ - Optional SAP token (won't fail if unavailable)
116
+ - Enables local integration testing without BTP authentication
117
+ Example: mcp-abap-adt-proxy --mcp=trial
118
+ Example: mcp-abap-adt-proxy --mcp-url=http://localhost:3000/mcp
119
+
120
+ Headers (for HTTP/SSE transports):
121
+ - x-btp-destination: Destination for BTP Cloud authorization (optional if --btp is used)
122
+ - x-mcp-destination: Destination for SAP ABAP connection (optional if --mcp is used)
123
+ - x-mcp-url: Direct MCP server URL (optional if --mcp-url is used)
124
+
125
+ At least one of the above headers (or corresponding --btp/--mcp/--mcp-url parameter) is required.
126
+
127
+ Service Keys:
128
+ Service keys should be placed in:
129
+ - Unix: ~/.config/mcp-abap-adt/service-keys/<destination>.json
130
+ - Windows: %USERPROFILE%\\Documents\\mcp-abap-adt\\service-keys\\<destination>.json
131
+
132
+ For BTP destination, service key should contain:
133
+ {
134
+ "uaa": { "url": "...", "clientid": "...", "clientsecret": "..." },
135
+ "abap": { "url": "https://your-mcp-server.com" }
136
+ }
137
+
138
+ The "abap.url" field is used as the MCP server URL (even for non-SAP services).
139
+
97
140
  For more information, see: https://github.com/fr0ster/mcp-abap-adt-proxy
98
141
  `);
99
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/proxy",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
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",