📚 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>
This commit is contained in:
Justin Lin 2026-06-12 16:55:23 +10:00 committed by GitHub
parent 2e1839f898
commit 9c7af3aeb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;