8 Commits

Author SHA1 Message Date
Dominik Jain
055f717207 Standardise configuration with environment variables
Replace CLI parameters with environment variables, keeping only --multi-user and --help

Environment variables:
- PENPOT_MCP_SERVER_PORT (new, replaces CLI param)
- PENPOT_MCP_WEBSOCKET_PORT (new)
- PENPOT_MCP_REPL_PORT (new)
- PENPOT_MCP_SERVER_ADDRESS (new)
- PENPOT_MCP_REMOTE_MODE (existing)
- PENPOT_MCP_LOG_LEVEL (renamed from LOG_LEVEL, replaces CLI param)
- PENPOT_MCP_LOG_DIR (renamed from LOG_DIR, replaces CLI param)
- PENPOT_MCP_PLUGIN_SERVER_LISTEN_ADDRESS (renamed from PENPOT_MCP_PLUGIN_SERVER_ALLOWED_HOSTS)

Additional changes:
- Plugin now constructs WebSocket URL from server address and port (replaces PENPOT_MCP_WEBSOCKET_URL)
- Use configured server address in all startup log messages
- Document all configuration options in README.md
2026-01-12 22:55:17 +01:00
Dominik Jain
7f60e78594 Merge branch 'develop' into server
Conflicts:
  penpot-plugin/src/main.ts
2026-01-12 20:32:04 +01:00
Dominik Jain
4c875ba736 Change default allowedHosts to [], allowing only local connections (as before) 2026-01-12 20:20:57 +01:00
Dominik Jain
b67e6abdd5 Use more specific environment variable names
* VITE_ALLOWED_HOSTS -> PENPOT_MCP_PLUGIN_SERVER_ALLOWED_HOSTS
  * VITE_MCP_WS_URL -> PENPOT_MCP_WEBSOCKET_URL
2026-01-12 20:17:17 +01:00
Fernando Basello
dc3c407ac5 feat(plugin): support running the MCP server on a remote host (not just localhost) 2026-01-11 18:12:31 -03:00
Dominik Jain
02da2b4b19 Plugin: Add multi-user mode option (alt. run script, which sets constant)
User token is a dummy token for now; shall be provided by Penpot in the future
2025-12-16 22:28:02 +01:00
Dominik Jain
4b755e4381 Apply formatter 2025-09-11 11:37:25 +02:00
Dominik Jain
44929fd684 Add plugin code from template 2025-09-10 15:34:22 +02:00