Skip to content

Commit 30f638d

Browse files
authored
adapt 'e2e demo' instructions to latest (#1513)
Signed-off-by: Stefano Lottini <[email protected]>
1 parent aa25a42 commit 30f638d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ Copy [.env.example](https://github.com/IBM/mcp-context-forge/blob/main/.env.exam
355355
<summary><strong>🚀 End-to-end demo (register a local MCP server)</strong></summary>
356356

357357
```bash
358-
# 1️⃣ Spin up the sample GO MCP time server using mcpgateway.translate & docker
358+
# 1️⃣ Spin up the sample GO MCP time server using mcpgateway.translate & docker (replace docker with podman if needed)
359359
python3 -m mcpgateway.translate \
360360
--stdio "docker run --rm -i ghcr.io/ibm/fast-time-server:latest -transport=stdio" \
361361
--expose-sse \
@@ -389,21 +389,21 @@ curl -s -H "Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN" http://localhost:444
389389
# 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.
390390
curl -s -X POST -H "Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN" \
391391
-H "Content-Type: application/json" \
392-
-d '{"name":"time_server","description":"Fast time tools","associatedTools":[<ID_OF_TOOLS>]}' \
392+
-d '{"server":{"name":"time_server","description":"Fast time tools","associated_tools":[<ID_OF_TOOLS>]}}' \
393393
http://localhost:4444/servers | jq
394394

395395
# Example curl
396396
curl -s -X POST -H "Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN"
397397
-H "Content-Type: application/json"
398-
-d '{"name":"time_server","description":"Fast time tools","associatedTools":["6018ca46d32a4ac6b4c054c13a1726a2"]}' \
398+
-d '{"server":{"name":"time_server","description":"Fast time tools","associated_tools":["6018ca46d32a4ac6b4c054c13a1726a2"]}}' \
399399
http://localhost:4444/servers | jq
400400

401401
# 5️⃣ List servers (should now include the UUID of the newly created virtual server)
402402
curl -s -H "Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN" http://localhost:4444/servers | jq
403403

404-
# 6️⃣ Client SSE endpoint. Inspect it interactively with the MCP Inspector CLI (or use any MCP client)
404+
# 6️⃣ Client HTTP endpoint. Inspect it interactively with the MCP Inspector CLI (or use any MCP client)
405405
npx -y @modelcontextprotocol/inspector
406-
# Transport Type: SSE, URL: http://localhost:4444/servers/UUID_OF_SERVER_1/sse, Header Name: "Authorization", Bearer Token
406+
# Transport Type: Streamable HTTP, URL: http://localhost:4444/servers/UUID_OF_SERVER_1/mcp, Header Name: "Authorization", Bearer Token
407407
```
408408

409409
</details>

0 commit comments

Comments
 (0)