15 Commits

Author SHA1 Message Date
Dominik Jain
3dc2411130 Extend ExportShapeTool to support the export of image fill content
Add new tool parameter `mode` ("shape" or "fill") to support this

Since the fill's format is not guaranteed to be PNG, include dependency
`sharp` to handle image format conversion

Because the export logic has become more complex, introduce
PenpotUtils.exportImage utility function for minimal code to be
sent to the plugin for execution

Resolves #12
2026-01-14 16:15:36 +01:00
Dominik Jain
2b1a287f15 Update dependencies 2026-01-13 20:12:19 +01:00
Dominik Jain
3766124961 Introduce MCP server launch argument --multi-user and adjust NPM scripts
(adding :multi-user variants) #20
2025-12-16 22:28:02 +01:00
Dominik Jain
8a6848a663 Move prettier configuration to top level 2025-10-11 22:56:57 +02:00
Dominik Jain
cbac84bab2 Restructuring, improving README structure and npm commands 2025-10-08 00:10:26 +02:00
Dominik Jain
3a1494e18c Move REPL server HTML content to a separate file 2025-10-08 00:10:25 +02:00
Dominik Jain
e0efe2b110 Add initial instructions (loaded from yml file) 2025-10-08 00:10:25 +02:00
Dominik Jain
82bd77c9bc Replace console logging with a proper logging system (Pino) 2025-09-17 20:07:26 +02:00
Dominik Jain
b7d1171654 Establish return channel when executing plugin tasks
and package 'common' for representations used in both subprojects
2025-09-12 16:42:13 +02:00
Dominik Jain
0468381d2b Improve build to not require .js extensions in imports 2025-09-12 13:37:20 +02:00
Dominik Jain
16167e2758 Use Streamable HTTP and SSE transports in MCP server instead of stdio
(This is necessary to ensure a single instance, which is required for a
well-defined websocket port)
2025-09-10 21:13:10 +02:00
Dominik Jain
7faca70aa7 Establish websocket connection between plugin and MCP server 2025-09-10 16:33:53 +02:00
Dominik Jain
a99851e7dd Fully typed tool interfaces 2025-09-10 15:21:14 +02:00
Dominik Jain
d1045b28b3 Apply formatter with identation 4 2025-09-10 14:47:07 +02:00
Dominik Jain
c41d92785a Add initial server implementation 2025-09-10 12:24:46 +02:00