Troubleshooting
etch_list_targets is empty
The server is running but no builder tab is connected to the local connector.
- Confirm the Etch builder tab is open in an authenticated WordPress admin session.
- Enable AI Connector in Etch if the builder asks for it, then click AI Connector again - the tab dials out to
127.0.0.1:7331only when connected. - Call
etch_list_targetsagain (oretch_recall_project_memory, which falls back to listing when no working target exists). - If your harness runs in client mode (
reusing an existing connector), confirm at least one other harness is actually running and hosting the connector. A client with no host has nothing to connect through.
Never share your WordPress credentials with the agent - the authenticated browser tab is the only credential involved.
Could not bind the connector WebSocket port 7331
Another process owns port 7331 and is not acting as the shared connector - often a foreign process, or an older 1.1.x etch-agent that predates connector sharing. Either free port 7331, or give this instance its own port:
"args": ["SERVER_PATH", "--client-name", "claude", "--connector-ws-port", "17331"]
A custom port runs standalone: it does not host the shared control server and does not reuse another connector.
bun install fails on the packaged runtime
- Bun too old.
bun --versionmust report 1.3.14 or newer; older releases are not verified against the packaged lockfile. - Frozen lockfile mismatch. Run the exact form
bun install --cwd mcp --frozen-lockfile --no-savefrom the package root. The lockfile pins exact versions with integrity hashes; any drift is a hard error by design. - Upgrading the package. Quit every MCP client first, unzip the new release over the existing
etch-agent/folder (the folder name is version-agnostic), and re-run the install command. See Update to a new release.
The agent still runs the old version after an update
Ask the agent to call etch_get_status. If etchAgentVersion shows the old number, or is missing, an MCP client still runs the old server. Quit every client that runs etch-agent completely (closing a window is not enough for Claude Desktop), confirm you re-ran bun install --cwd mcp --frozen-lockfile --no-save, then start the clients again and reload the Etch builder tab.
The first client to start hosts the shared connector. An old host keeps serving the old connector to every client started after it, until it exits.
ACSS detection in safe mode
etch_detect_acss works in safe mode, the default connection. It asks Etch directly when the builder offers that, and otherwise checks the builder's own skill list, which includes the Automatic.css guide only while ACSS is active. source in the result names the signal it used.
In safe mode the result has no stylesheet URLs or sample variables, and its note says that sampling them needs unsafe mode. To get them, connect AI tooling in unsafe mode in the Etch builder. Everything else works in safe mode, including the ACSS settings tools on builds that offer them.
If you still see an error saying "globalThis" is not available in safe mode, the client runs a version older than 2.1.2; see The agent still runs the old version after an update.
A tool says a feature is unavailable
TOOL_UNAVAILABLE with a message that names an Etch capability (for example "assets", "dataSources", "acss", or "presence") or an Etch API the builder lacks means the open Etch build does not offer that feature. It is not a temporary error, and retrying will not help. etch_get_status lists what the builder supports under environment.capabilities. Use the feature on an Etch build that offers it, or do that part by hand in Etch.
An asset upload or download is refused
ASSET_PATH_NOT_ALLOWED means the file or folder is outside the allowed folders. By default those are Downloads, Desktop, Pictures, and the system temp folder. Move the file there, or allow another folder with --asset-root or ETCH_AGENT_ASSET_ROOTS and restart the client; see Choose the folders for asset files.
A download refuses to replace a file that already exists unless you ask for it. Etch stores files up to 24.9 MiB; ask the agent to compress a large image while uploading it.
Large uploads fail with CONNECTOR_BODY_TOO_LARGE
Connector hosts before 0.6 accept about 3.7 MB of file per request. The shared connector is hosted by the first MCP client that started, so an old client can still be the host after an update. Quit every MCP client, make sure the locked install ran for 2.2.0, start the clients again, and retry. Or upload a smaller file.
An upload or edit-lock request timed out
Long uploads, compressions, and edit-lock requests tell your MCP client they are still running, so clients that support this keep waiting. If one times out anyway, the operation may still have finished. The agent should check the asset list (or the asset) before uploading or compressing again, so the same file is not uploaded twice.
A save is refused because of the edit lock
When a project lets only one tab at a time save, only the tab holding the lock can save. The refused save says so. Ask the agent to request control with etch_request_control, and redo the unsaved edits once its tab has reloaded and reconnected; the reload drops unsaved edits in that tab. To avoid that, request control before editing.
etch_hand_over_control saves before it hands control back. If that save is refused, nothing is handed over; usually the tab did not hold the lock.
A component key came back in a different form
Etch stores component keys in PascalCase, so feature-card is stored as FeatureCard. The agent finds a component under either form, updates the same component when you save it again, and tells you the key Etch stored. Earlier versions added a new copy on every save with a dashed key; delete such duplicates in Etch.
Creating a component fails
When Etch rejects a new component, for example because a block is in a format it does not accept, you see Etch's own error and no empty component is left behind. Fix the component and try again. If removing the empty component also fails, the error names the one left behind so you can delete it.
Switching posts or templates is refused
etch_open_post and etch_open_template refuse while the document has buffered (unsaved) changes. Save with etch_save_document, or discard with etch_undo repeated until clean - etch_get_status reports the unsaved-changes state.
Edits appear in the builder but WordPress is unchanged
That is the buffered editing model working as designed. Block, style, and loop edits land in the open document only; nothing reaches the database until an explicit, user-approved etch_save_document. Note the exceptions that persist immediately: global stylesheets, components, custom fields, ACSS settings, assets and collections, data sources, and Project Memory.
A staging site moved to production (or the domain changed)
Project Memory is keyed by the normalized site URL; it never merges data across URLs automatically. The agent runs etch_recover_project_memory in preview mode, confirms the target URL has no memory and both URLs are the same project, then applies the rebind. If the local store is corrupt, the same tool quarantines it to a sidecar file so a fresh store can be created.
Two agents on the same target
Only one agent should mutate the same Etch target at a time - two agents editing one builder tab will collide. Keep one mutating agent per target; reading, and any work on other targets, is fine in parallel. Multiple harnesses (Claude Code, Codex, opencode, …) can all run simultaneously and share one connector.
The agent improvised a block structure that broke
The agent should read the bundled etchapi skill (mcp/skills/core/etchapi/SKILL.md) before editing on a site - it defines the safe block shapes and the read-then-write flow. Recovery from a bad apply is always etch_undo, repeated as needed, before any save.