Skip to content

Commit 8e99e83

Browse files
committed
Add info on mcpgateway-wrapper
1 parent 440d991 commit 8e99e83

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

README.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ docker logs mcpgateway
121121
### Generate a token for API access
122122

123123
```bash
124-
export MCPGATEWAY_BEARER_TOKEN=$(docker exec mcpgateway python3 -m mcpgateway.utils.create_jwt_token -u admin -e 10080)
124+
export MCPGATEWAY_BEARER_TOKEN=$(docker exec mcpgateway python3 -m mcpgateway.utils.create_jwt_token --username admin --exp 10080 --secret my-test-key)
125125
```
126126

127127
### Smoke-test the running container
@@ -138,15 +138,45 @@ curl -s -H "Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN" \
138138
The mcpgateway-wrapper lets you connect to the gateway over stdio.
139139

140140
```bash
141-
docker run -d --name mcpgateway-wrapper \
141+
docker run -i --name mcpgateway-wrapper \
142142
--entrypoint uv \
143143
-e UV_CACHE_DIR=/tmp/uv-cache \
144144
-e MCP_SERVER_CATALOG_URLS=http://host.docker.internal:4444 \
145145
-e MCP_AUTH_TOKEN=$MCPGATEWAY_BEARER_TOKEN \
146146
ghcr.io/ibm/mcp-context-forge:latest \
147-
run mcpgateway-wrapper
147+
run --directory mcpgateway-wrapper mcpgateway-wrapper
148148
```
149149

150+
### Running from a MCP Client
151+
152+
```json
153+
{
154+
"servers": {
155+
"mcpgateway-wrapper": {
156+
"command": "docker",
157+
"args": [
158+
"run",
159+
"--rm",
160+
"-i",
161+
"-e",
162+
"MCP_SERVER_CATALOG_URLS=http://host.docker.internal:4444/servers/1",
163+
"-e",
164+
"MCP_AUTH_TOKEN=${MCPGATEWAY_BEARER_TOKEN}",
165+
"--entrypoint",
166+
"uv",
167+
"ghcr.io/ibm/mcp-context-forge:latest",
168+
"run",
169+
"--directory",
170+
"mcpgateway-wrapper",
171+
"mcpgateway-wrapper"
172+
],
173+
"env": {
174+
"MCPGATEWAY_BEARER_TOKEN": "${MCPGATEWAY_BEARER_TOKEN}"
175+
}
176+
}
177+
}
178+
}
179+
```
150180
---
151181

152182
## Quick Start (manual install)

0 commit comments

Comments
 (0)