You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 34b042a
Browse filesBrowse the repository at this point in the historyBrowse files
Canvas host: --host / GIOTTO_HOST lets the canvas listen on 0.0.0.0 (or any address), so a UI inside a sandbox or container can be opened from outside; it still listens on 127.0.0.1 by default, warns when it doesn't, and a canvas started by giotto mcp keeps the host (closes#3)
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ Then ask your agent for a diagram. The first time, it sets Giotto up for you and
32
32
## What it does
33
33
34
34
-**Live canvas** at http://localhost:4321 with every diagram in a sidebar. Move, resize and rename things by hand, search with ⌘F, undo with ⌘Z.
35
+
It listens on this machine only. Running the agent in a sandbox or container? Set `GIOTTO_HOST=0.0.0.0` (or `giotto --host 0.0.0.0`) and open it from outside; anyone who can reach it can edit your diagrams.
35
36
-**No coordinates needed.** Groups lay out their children, boxes fit their text, notes stay pinned, arrows route around boxes, legends explain colors.
36
37
-**Rich boxes:** titles, lists, tags, chat bubbles and code, with `**bold**` and `` `code` `` in any text.
37
38
-**Request changes visually:** draw areas on the canvas, write what should change in each, and copy them all as one "Requested changes" note for your agent.
// Bind to localhost only: the API writes files on this machine.
393
+
// Localhost only unless --host says otherwise: the API writes files on this machine.
394
+
if(opts.host!=='127.0.0.1'&&opts.host!=='localhost')log(`Giotto canvas listening on ${opts.host}:${opts.port}: anyone who can reach it can edit your diagrams.`);
constHTTP_INSTRUCTIONS=`Giotto: diagrams drawn right here in the chat (create_diagram, get_diagram and edit_diagram show the diagram). One diagram per topic: list_diagrams first, create_diagram for something new, then small edit_diagram steps. Looks come from styles (list_styles, save_style, use_style), not from diagrams: give shapes a "tone" instead of hex colors.`;
0 commit comments