1
- # MCP Gateway StdIO to SSE Bridge (` mcpgateway- translate ` )
1
+ # MCP Gateway StdIO to SSE Bridge (` mcpgateway. translate ` )
2
2
3
- ` mcpgateway- translate ` is a lightweight bridge that connects a JSON-RPC server
3
+ ` mcpgateway. translate ` is a lightweight bridge that connects a JSON-RPC server
4
4
running over StdIO to an HTTP/SSE interface, or consumes a remote SSE stream
5
5
and forwards messages to a local StdIO process.
6
6
@@ -31,7 +31,7 @@ Supported modes:
31
31
### Expose a local StdIO server over SSE
32
32
33
33
``` bash
34
- mcpgateway- translate \
34
+ python3 -m mcpgateway. translate \
35
35
--stdio " uvenv run mcp-server-git" \
36
36
--port 9000
37
37
```
@@ -45,7 +45,7 @@ http://localhost:9000/sse
45
45
### Bridge a remote SSE endpoint to a local process
46
46
47
47
``` bash
48
- mcpgateway- translate \
48
+ python3 -m mcpgateway. translate \
49
49
--sse " https://corp.example.com/mcp" \
50
50
--oauth2Bearer " your-token"
51
51
```
@@ -55,7 +55,7 @@ mcpgateway-translate \
55
55
## Command-Line Options
56
56
57
57
```
58
- mcpgateway- translate [--stdio CMD | --sse URL | --streamableHttp URL] [options]
58
+ python3 -m mcpgateway. translate [--stdio CMD | --sse URL | --streamableHttp URL] [options]
59
59
```
60
60
61
61
### Required (one of)
@@ -110,7 +110,7 @@ Health check endpoint. Always responds with `ok`.
110
110
### 1. Browser integration
111
111
112
112
``` bash
113
- mcpgateway- translate \
113
+ python3 -m mcpgateway. translate \
114
114
--stdio " uvenv run mcp-server-git" \
115
115
--port 9000 \
116
116
--cors " https://myapp.com"
@@ -125,7 +125,7 @@ http://localhost:9000/sse
125
125
### 2. Connect remote server to local CLI tools
126
126
127
127
``` bash
128
- mcpgateway- translate \
128
+ python3 -m mcpgateway. translate \
129
129
--sse " https://corp.example.com/mcp" \
130
130
--oauth2Bearer " $TOKEN " \
131
131
--logLevel debug
0 commit comments