File tree Expand file tree Collapse file tree 1 file changed +33
-3
lines changed Expand file tree Collapse file tree 1 file changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ docker logs mcpgateway
121
121
### Generate a token for API access
122
122
123
123
``` 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 )
125
125
```
126
126
127
127
### Smoke-test the running container
@@ -138,15 +138,45 @@ curl -s -H "Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN" \
138
138
The mcpgateway-wrapper lets you connect to the gateway over stdio.
139
139
140
140
``` bash
141
- docker run -d --name mcpgateway-wrapper \
141
+ docker run -i --name mcpgateway-wrapper \
142
142
--entrypoint uv \
143
143
-e UV_CACHE_DIR=/tmp/uv-cache \
144
144
-e MCP_SERVER_CATALOG_URLS=http://host.docker.internal:4444 \
145
145
-e MCP_AUTH_TOKEN=$MCPGATEWAY_BEARER_TOKEN \
146
146
ghcr.io/ibm/mcp-context-forge:latest \
147
- run mcpgateway-wrapper
147
+ run --directory mcpgateway-wrapper mcpgateway-wrapper
148
148
```
149
149
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
+ ```
150
180
---
151
181
152
182
## Quick Start (manual install)
You can’t perform that action at this time.
0 commit comments