From 61d7dd316735b5082a3e1bb4a216fdbb17670db8 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 2 Feb 2026 11:08:11 +0100 Subject: [PATCH] :sparkles: Update devenv with mcp required dependencies --- docker/devenv/Dockerfile | 23 ++++++++++++++++++++++- docker/devenv/docker-compose.yaml | 5 +++++ docker/devenv/files/nginx.conf | 22 ++++++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) diff --git a/docker/devenv/Dockerfile b/docker/devenv/Dockerfile index 6644654312..fa01edf221 100644 --- a/docker/devenv/Dockerfile +++ b/docker/devenv/Dockerfile @@ -181,7 +181,8 @@ FROM base AS setup-utils ENV CLJKONDO_VERSION=2026.01.19 \ BABASHKA_VERSION=1.12.208 \ - CLJFMT_VERSION=0.15.6 + CLJFMT_VERSION=0.15.6 \ + PIXI_VERSION=0.63.2 RUN set -ex; \ ARCH="$(dpkg --print-architecture)"; \ @@ -224,6 +225,26 @@ RUN set -ex; \ tar -xf /tmp/babashka.tar.gz; \ rm -rf /tmp/babashka.tar.gz; +RUN set -ex; \ + ARCH="$(dpkg --print-architecture)"; \ + case "${ARCH}" in \ + aarch64|arm64) \ + BINARY_URL="https://github.com/prefix-dev/pixi/releases/download/v$PIXI_VERSION/pixi-aarch64-unknown-linux-musl.tar.gz"; \ + ;; \ + amd64|x86_64) \ + BINARY_URL="https://github.com/prefix-dev/pixi/releases/download/v$PIXI_VERSION/pixi-x86_64-unknown-linux-musl.tar.gz"; \ + ;; \ + *) \ + echo "Unsupported arch: ${ARCH}"; \ + exit 1; \ + ;; \ + esac; \ + cd /tmp; \ + curl -LfsSo /tmp/pixi.tar.gz ${BINARY_URL}; \ + cd /opt/utils/bin; \ + tar -xf /tmp/pixi.tar.gz; \ + rm -rf /tmp/pixi.tar.gz; + RUN set -ex; \ ARCH="$(dpkg --print-architecture)"; \ case "${ARCH}" in \ diff --git a/docker/devenv/docker-compose.yaml b/docker/devenv/docker-compose.yaml index 3973eea3b4..322a68985d 100644 --- a/docker/devenv/docker-compose.yaml +++ b/docker/devenv/docker-compose.yaml @@ -46,6 +46,11 @@ services: - 9090:9090 - 9091:9091 + # MCP + - 4400:4400 + - 4401:4401 + - 4402:4402 + environment: - EXTERNAL_UID=${CURRENT_USER_ID} # SMTP setup diff --git a/docker/devenv/files/nginx.conf b/docker/devenv/files/nginx.conf index 824c950d3d..f7926c42ef 100644 --- a/docker/devenv/files/nginx.conf +++ b/docker/devenv/files/nginx.conf @@ -121,6 +121,28 @@ http { proxy_http_version 1.1; } + location /mcp { + alias /home/penpot/penpot/mcp/packages/plugin/dist; + proxy_http_version 1.1; + } + + location /mcp/ws { + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_pass http://127.0.0.1:4402; + proxy_http_version 1.1; + } + + location /mcp/stream { + proxy_pass http://127.0.0.1:4401/mcp; + proxy_http_version 1.1; + } + + location /mcp/sse { + proxy_pass http://127.0.0.1:4401/sse; + proxy_http_version 1.1; + } + location /admin { proxy_pass http://127.0.0.1:6063/admin; }