@@ -255,18 +255,24 @@ python3 -m mcpgateway.translate --stdio "uvx mcp-server-git" --port 9000
255
255
# 2️⃣ Register it with the gateway
256
256
curl -s -X POST -H " Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN " \
257
257
-H " Content-Type: application/json" \
258
- -d ' {"name":"fast_time","url":"http://localhost:8002 /sse"}' \
258
+ -d ' {"name":"fast_time","url":"http://localhost:9000 /sse"}' \
259
259
http://localhost:4444/gateways
260
260
261
261
# 3️⃣ Verify tool catalog
262
262
curl -s -H " Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN " http://localhost:4444/tools | jq
263
263
264
- # 4️⃣ Create a *virtual server* bundling those tools
264
+ # 4️⃣ Create a *virtual server* bundling those tools. Use the ID of tools from the tool catalog (Step #3) and pass them in the associatedTools list.
265
265
curl -s -X POST -H " Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN " \
266
266
-H " Content-Type: application/json" \
267
- -d ' {"name":"time_server","description":"Fast time tools","associatedTools":["1" ]}' \
267
+ -d ' {"name":"time_server","description":"Fast time tools","associatedTools":[<ID_OF_TOOLS> ]}' \
268
268
http://localhost:4444/servers | jq
269
269
270
+ # Example curl
271
+ curl -s -X POST -H " Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN "
272
+ -H " Content-Type: application/json"
273
+ -d ' {"name":"time_server","description":"Fast time tools","associatedTools":["6018ca46d32a4ac6b4c054c13a1726a2"]}' \
274
+ http://localhost:4444/servers | jq
275
+
270
276
# 5️⃣ List servers (should now include the UUID of the newly created virtual server)
271
277
curl -s -H " Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN " http://localhost:4444/servers | jq
272
278
@@ -355,6 +361,12 @@ Browse to **[http://localhost:4444/admin](http://localhost:4444/admin)** (user `
355
361
``` bash
356
362
mkdir -p $( pwd) /data
357
363
364
+ touch $( pwd) /data/mcp.db
365
+
366
+ sudo chown -R :docker $( pwd) /data
367
+
368
+ chmod 777 $( pwd) /data
369
+
358
370
docker run -d --name mcpgateway \
359
371
--restart unless-stopped \
360
372
-p 4444:4444 \
@@ -372,6 +384,14 @@ SQLite now lives on the host at `./data/mcp.db`.
372
384
#### 3 - Local tool discovery (host network)
373
385
374
386
``` bash
387
+ mkdir -p $( pwd) /data
388
+
389
+ touch $( pwd) /data/mcp.db
390
+
391
+ sudo chown -R :docker $( pwd) /data
392
+
393
+ chmod 777 $( pwd) /data
394
+
375
395
docker run -d --name mcpgateway \
376
396
--network=host \
377
397
-e HOST=0.0.0.0 \
@@ -402,6 +422,12 @@ podman run -d --name mcpgateway \
402
422
``` bash
403
423
mkdir -p $( pwd) /data
404
424
425
+ touch $( pwd) /data/mcp.db
426
+
427
+ sudo chown -R :docker $( pwd) /data
428
+
429
+ chmod 777 $( pwd) /data
430
+
405
431
podman run -d --name mcpgateway \
406
432
--restart=on-failure \
407
433
-p 4444:4444 \
@@ -413,6 +439,14 @@ podman run -d --name mcpgateway \
413
439
#### 3 - Host networking (rootless)
414
440
415
441
``` bash
442
+ mkdir -p $( pwd) /data
443
+
444
+ touch $( pwd) /data/mcp.db
445
+
446
+ sudo chown -R :docker $( pwd) /data
447
+
448
+ chmod 777 $( pwd) /data
449
+
416
450
podman run -d --name mcpgateway \
417
451
--network=host \
418
452
-v $( pwd) /data:/data \
0 commit comments