# Penpot connection and fallback Penpot is optional and outside Forge Core. Treat server URL, authentication, workspace/project/file, and MCP transport as project-specific configuration. Do not copy tokens into repository files or logs. ## MCP route ### Connection states and preflight - **A — MCP service available:** Codex can discover or invoke the Penpot MCP service. This proves only that the service is reachable. - **B — Editor connected:** The intended design file is open in Penpot with an active editor MCP connection. Tool discovery does not establish this state. - **C — Design operations verified:** A non-destructive inspection completes and its result identifies the intended file and page or unmistakably matches their known design content. Only C permits modification. Before each modification, and again after a connection interruption or extended idle period: 1. Discover the Penpot MCP service and the tools actually exposed in this session. Do not infer availability from a running container or earlier session. 2. Identify the intended project, design file, and page from the task and design references. If ambiguous, resolve the target before editing. 3. Confirm or establish the active editor MCP connection for that file using the editor UI and any connection-status operation actually exposed. Keep the intended design file open during MCP operations and maintain its active editor connection. An open tab by itself is not proof of B or C. 4. Use an exposed read-only operation to inspect the intended design, such as its page or element inventory. Do not use an edit as a connection test. 5. Check the inspection result against the intended file and page. A successful response about another file is not readiness. If the service has no reliable editor-status operation, this successful, target-verified inspection is the operational readiness check. 6. Record A/B/C readiness and the inspected file/page reference, or report the failed step as a blocker. Begin edits only at C. Prefer keeping the Penpot tab active during extended design sessions. If operations become unreliable, reactivate the intended tab and reconnect the editor. An observed editor disconnection is evidence; browser background-tab throttling is a possible cause, not a diagnosis without further evidence. Firefox and other compatible browsers are supported; no particular browser is required. Use the configured instance rather than assuming a port or hardcoded URL. ### Safe recovery When an inspection or modification fails because the editor may be unavailable: 1. Stop further design modifications. Preserve the last confirmed design state, file/page references, and any returned operation results. Do not assume a failed write either applied or rolled back. 2. Explain the likely editor connection issue to the contributor, distinguishing a confirmed disconnection from a possible inactive-tab interruption. 3. Ask the contributor to reactivate the intended Penpot tab and check or restore its editor MCP connection. Reopen the intended file if it was closed. 4. Repeat the non-destructive inspection and verify the intended file and page. Reconcile any uncertain prior write against the last confirmed state before retrying it. 5. Resume modifications only after State C is re-established. If inspection still fails, record the blocker and use the non-MCP route only when it fits the task and preserves editable source and approval references. After readiness, create a versioned concept page/board or duplicate. Keep text as text and shapes as shapes. Record returned references and any unsupported operations. After refinement, inspect the result and compare its elements with the prior version. Export a preview only as evidence; retain the editable source. Record server version and platform as observed, without treating a Linux check as Windows validation. ## Non-MCP route Prepare separate editable SVG concepts with text and vector shapes, plus a concise import/edit guide. In Penpot's UI, import each into the intended file and verify that text and shapes remain separately editable; if the import flattens or substitutes text, repair in Penpot or report the limit. Refine a versioned copy, inspect retained elements, and record file/board references. If the UI is inaccessible, preserve the SVGs and mark Penpot editability unverified. Captain can review an exported preview, but approval must identify the editable source/version. ## Platform checks On Linux and Windows, use the repository's documented Docker/Podman setup and the configured local/self-hosted URL. Check server reachability, login, MCP discovery if enabled, native object edits, SVG import fallback, preview export, and retained elements. Windows PowerShell and Linux shells differ; describe UI actions or use the project's actual scripts rather than inventing universal commands. Report each platform separately. Do not start persistent containers, alter ports, or change server configuration merely to validate a skill.