mirror of
https://github.com/penpot/penpot.git
synced 2026-11-05 17:40:39 +00:00
The MCP endpoint parsed request bodies with express.json() and its default 100kb limit, so large tool calls such as execute_code failed with HTTP 413 (PayloadTooLargeError). Read the limit from the new PENPOT_MCP_MAX_BODY_SIZE env var, defaulting to 10mb, and document it. Closes #12080 Signed-off-by: Nimesh Kulkarni <167794819+GitNimay@users.noreply.github.com> Co-authored-by: Andrey Antukh <niwi@niwi.nz>