@mcp-abap-adt/auth-broker 0.2.4 → 0.2.5
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 +9 -0
- package/README.md +4 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,15 @@ Thank you to all contributors! See [CONTRIBUTORS.md](CONTRIBUTORS.md) for the co
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [0.2.5] - 2025-01-XX
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
- Updated `@mcp-abap-adt/auth-providers` to `^0.2.1` for automatic port selection and improved server shutdown
|
|
18
|
+
- Browser auth server now automatically finds an available port if the requested port is in use
|
|
19
|
+
- Improved server shutdown ensures ports are properly freed after authentication completes
|
|
20
|
+
- Prevents `EADDRINUSE` errors when multiple stdio servers run simultaneously
|
|
21
|
+
- Ports are properly released after server shutdown, preventing lingering port occupation
|
|
22
|
+
|
|
14
23
|
## [0.2.4] - 2025-12-19
|
|
15
24
|
|
|
16
25
|
### Changed
|
package/README.md
CHANGED
|
@@ -98,6 +98,8 @@ const broker = new AuthBroker({
|
|
|
98
98
|
}, 'chrome');
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
+
**Note**: The `BtpTokenProvider` automatically finds an available port if the requested port is in use. This prevents `EADDRINUSE` errors when multiple stdio servers run simultaneously. The server properly closes all connections and frees the port after authentication completes, ensuring no lingering port occupation.
|
|
102
|
+
|
|
101
103
|
### Getting Tokens
|
|
102
104
|
|
|
103
105
|
```typescript
|
|
@@ -496,6 +498,8 @@ The package uses `ITokenProvider` interface for token acquisition. Two implement
|
|
|
496
498
|
|
|
497
499
|
- **`BtpTokenProvider`** - For BTP/ABAP authentication (full scope)
|
|
498
500
|
- Constructor accepts optional `browserAuthPort?: number` parameter (default: 3001)
|
|
501
|
+
- Automatically finds an available port if the requested port is in use (prevents `EADDRINUSE` errors)
|
|
502
|
+
- Server properly closes all connections and frees the port after authentication completes
|
|
499
503
|
- Use custom port to avoid conflicts when running alongside other services (e.g., proxy server)
|
|
500
504
|
- Uses browser-based OAuth2 flow (if no refresh token)
|
|
501
505
|
- Uses refresh token if available
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/auth-broker",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "JWT authentication broker for MCP ABAP ADT - manages tokens based on destination headers",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"axios": "^1.13.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@mcp-abap-adt/auth-providers": "^0.2.
|
|
58
|
+
"@mcp-abap-adt/auth-providers": "^0.2.1",
|
|
59
59
|
"@mcp-abap-adt/auth-stores": "^0.2.5",
|
|
60
60
|
"@types/express": "^5.0.5",
|
|
61
61
|
"@types/jest": "^30.0.0",
|