@nimbletools/mcp-http-bridge 1.0.4 → 1.0.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/README.md +18 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -21,6 +21,14 @@ Or use directly with npx:
|
|
|
21
21
|
npx @nimbletools/mcp-http-bridge --endpoint "https://..." --token "..."
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
### Updating
|
|
25
|
+
|
|
26
|
+
To update to the latest version:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install -g @nimbletools/mcp-http-bridge@latest
|
|
30
|
+
```
|
|
31
|
+
|
|
24
32
|
## Usage
|
|
25
33
|
|
|
26
34
|
### Command Line
|
|
@@ -88,12 +96,21 @@ The bridge acts as a protocol translator:
|
|
|
88
96
|
|
|
89
97
|
1. **Input**: Accepts MCP JSON-RPC messages via stdin
|
|
90
98
|
2. **Translation**: Forwards them as HTTP POST requests to your endpoint
|
|
91
|
-
3. **
|
|
99
|
+
3. **Session Management**: Automatically captures and manages `mcp-session-id` headers
|
|
100
|
+
4. **Output**: Returns responses via stdout in MCP format
|
|
92
101
|
|
|
93
102
|
```
|
|
94
103
|
Claude Code ↔ stdio/JSON-RPC ↔ MCP HTTP Bridge ↔ HTTP/JSON ↔ Your MCP Service
|
|
95
104
|
```
|
|
96
105
|
|
|
106
|
+
### Features
|
|
107
|
+
|
|
108
|
+
- ✅ **Session ID Management**: Automatically captures and includes `mcp-session-id` headers
|
|
109
|
+
- ✅ **Server-Sent Events**: Supports both JSON and SSE response formats
|
|
110
|
+
- ✅ **Content Type Negotiation**: Accepts `application/json` and `text/event-stream`
|
|
111
|
+
- ✅ **Error Handling**: Robust retry logic with exponential backoff
|
|
112
|
+
- ✅ **Authentication**: Bearer token support
|
|
113
|
+
|
|
97
114
|
## Authentication
|
|
98
115
|
|
|
99
116
|
The bridge adds Bearer token authentication to all HTTP requests:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimbletools/mcp-http-bridge",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Bridge MCP stdio protocol to HTTP-based MCP services",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"axios": "^1.11.0",
|
|
27
|
-
"yargs": "^
|
|
27
|
+
"yargs": "^17.7.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^20.19.9",
|