mirror of
https://github.com/penpot/penpot.git
synced 2026-08-17 02:09:12 +00:00
✨ Start MCP server in devenv if PENPOT_FLAGS contains 'enable-mcp'
This commit is contained in:
parent
269edcd0ee
commit
b7b31f6ee3
@ -41,4 +41,16 @@ tmux select-window -t penpot:3
|
|||||||
tmux send-keys -t penpot 'cd penpot/backend' enter C-l
|
tmux send-keys -t penpot 'cd penpot/backend' enter C-l
|
||||||
tmux send-keys -t penpot './scripts/start-dev' enter
|
tmux send-keys -t penpot './scripts/start-dev' enter
|
||||||
|
|
||||||
|
if echo "$PENPOT_FLAGS" | grep -q "enable-mcp"; then
|
||||||
|
pushd ~/penpot/mcp/
|
||||||
|
./scripts/setup;
|
||||||
|
pnpm run build;
|
||||||
|
popd
|
||||||
|
|
||||||
|
tmux new-window -t penpot:4 -n 'mcp server'
|
||||||
|
tmux select-window -t penpot:4
|
||||||
|
tmux send-keys -t penpot 'cd penpot/mcp' enter C-l
|
||||||
|
tmux send-keys -t penpot 'PENPOT_MCP_SERVER_HOST=0.0.0.0 PENPOT_MCP_REMOTE_MODE=true pnpm run start' enter
|
||||||
|
fi
|
||||||
|
|
||||||
tmux -2 attach-session -t penpot
|
tmux -2 attach-session -t penpot
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user