Connect Claude Code

Updated

On this page
  1. 1. Choose what it may do
  2. 2. Start the endpoint
  3. 3. Add Polyform to Claude Code
  4. Run without a window

Polyform runs an MCP server inside the app. Choose what the agent may do, start the server, and add it to Claude Code with one command.

1. Choose what it may do

Open the Agent panel. Nine permissions decide what the agent may do. Reading never implies changing: Edit is its own permission, and it starts off.

PermissionLets the agent
DocumentRead pages, layers and their properties
SelectionSee what you’ve selected
ChangesFollow edits as they happen
RenderRender images of the canvas
AttentionSelect layers, move your view and show its step
CommentsRead the comment threads, reply and resolve. It never changes the design
FilesRead images from folders you allow. It asks you for each new folder
WebDownload images from sites you allow. Off until you turn it on; then it asks you for each new site
EditChange the document. Off until you turn it on

Read only, Read & point and Full access set all of them but Comments, Files and Web in one click. You can change any of them later, even while an agent is connected.

2. Start the endpoint

Press Start endpoint. Polyform picks a free port on 127.0.0.1 and makes a fresh token. Nothing outside this computer can reach it.

3. Add Polyform to Claude Code

Copy the command from the Agent panel and run it in a terminal. The panel masks the token until you reveal it.

Shell
claude mcp add --transport http polyform http://127.0.0.1:[PORT]/mcp \
  --header "Authorization: Bearer [TOKEN]"

Warning: Each start makes a new port and token

After you restart Polyform, or stop and start the endpoint, run the new command from the Agent panel.

Tip: Prefer one click?

The Agent panel can install the Polyform skill into Claude Code for you.

Run without a window

For scripts, start a headless server on one file. Every permission is on, Edit included. An agent can read comments there but can’t write them yet, and it reads images only from the folders you name with --allow-images and downloads them only from the sites you name with --allow-web.

Shell
claude mcp add polyform -- polyform mcp serve <file>