From 9c7af3aeb5bfccb818e049d9c0df157221c7dc91 Mon Sep 17 00:00:00 2001 From: Justin Lin <30039756+lancatlin@users.noreply.github.com> Date: Fri, 12 Jun 2026 16:55:23 +1000 Subject: [PATCH] :books: Add WebSocket proxy configuration for MCP in Nginx example (#10152) The current Nginx example doesn't include the required Websocket settings to correctly proxy /mcp/ws, and leads to WebSocket connection error when trying to connect in a design. Adding this lines fixed the issue. Signed-off-by: Justin Lin <30039756+lancatlin@users.noreply.github.com> --- docs/technical-guide/getting-started/docker.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/technical-guide/getting-started/docker.md b/docs/technical-guide/getting-started/docker.md index 53560235d3..a8c7b55ffa 100644 --- a/docs/technical-guide/getting-started/docker.md +++ b/docs/technical-guide/getting-started/docker.md @@ -206,6 +206,12 @@ server { proxy_pass http://localhost:9001/ws/notifications; } + location /mcp/ws { + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_pass http://localhost:9001/mcp/ws; + } + # Proxy pass location / { proxy_set_header Host $http_host;