mirror of
https://github.com/penpot/penpot.git
synced 2026-09-30 15:56:17 +00:00
The MCP server closes duplicate plugin connections with 1008 (policy violation). The plugin treated every close as retryable: shouldReconnect stayed true, scheduleReconnect re-armed, and each brief onopen reset the backoff - looping at ~1s until the browser froze. Treat 1008 closes as terminal and stay disconnected until the user reconnects explicitly.
Penpot MCP Plugin
This project contains a Penpot plugin that accompanies the Penpot MCP server. It connects to the MCP server via WebSocket, subsequently allowing the MCP server to execute tasks in Penpot using the Plugin API.
Setup
-
Install Dependencies
pnpm install -
Build the Project
pnpm run build -
Start a Local Development Server
pnpm run startThis will start a local development server at
http://localhost:4400.