Install
The fastest path: unzip the package and tell your agent to read the bundled onboarding.md. It detects the harness, merges the config, and verifies the connection for you. This page is the same procedure written out for humans, with Claude Code, Claude Desktop, Codex, opencode, and Cursor as the worked examples - any other MCP client follows the same shape.
Unzip and install the runtime
Extract etch-agent-<version>.zip into a durable location, for example:
etch-agent/
├── README.md
├── AGENTS.md
├── CHANGELOG.md
├── onboarding.md
├── LICENSE
└── mcp/
├── server.js ← the MCP server your harness launches
├── package.json ← locked runtime manifest
├── bun.lock
└── skills/ ← core and user agent skills
The unzipped folder name is version-agnostic, so a future release can be dropped over the same path without touching your MCP config (see Update to a new release). The version lives in the ZIP filename and CHANGELOG.md.
Then install the locked runtime from the package root:
bun install --cwd mcp --frozen-lockfile --no-save
This installs the connector (@digital-gravy/etch-connector), ws, and zod locally inside mcp/node_modules/. The ZIP deliberately contains no connector code - it is installed on your machine, under its own license terms, at review-pinned versions.
Check your Bun version first (bun --version); 1.3.14 or newer is required.
Values every config needs
Two absolute paths go into every harness config:
| Placeholder | Meaning | How to get it |
|---|---|---|
SERVER_PATH | Absolute path to mcp/server.js inside the unzipped package. | Run pwd inside mcp/ and append /server.js. |
BUN_PATH | Absolute path to the bun binary. | Run which bun. If the harness inherits your shell PATH, the plain string "bun" works. |
Also pick a --client-name value (e.g. claude, codex, opencode) - it only labels the instance in startup logs.
Claude Code
Project-scoped config in .mcp.json at the project root, or a global entry under the top-level mcpServers object of ~/.claude.json:
{
"mcpServers": {
"etch-agent": {
"command": "BUN_PATH",
"args": ["SERVER_PATH", "--client-name", "claude"]
}
}
}
Merge into the existing mcpServers object; do not overwrite other entries. Or add the server from the terminal:
claude mcp add etch-agent -- bun SERVER_PATH --client-name claude
Restart Claude Code afterwards.
Claude Desktop
Claude Desktop runs local MCP servers for its chats. Edit claude_desktop_config.json: in current Claude Desktop, open Settings → Desktop app, choose Manage next to Extensions, and look under Local MCP servers; in older versions, open Settings → Developer and choose Edit Config. You can also open the file directly:
| System | Config file |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
{
"mcpServers": {
"etch-agent": {
"command": "BUN_PATH",
"args": ["SERVER_PATH", "--client-name", "claude-desktop"]
}
}
}
Claude Desktop does not read your shell profile, so plain bun is usually not found: use the full path that which bun prints (on Windows, where bun, written with forward slashes or doubled backslashes). Quit Claude Desktop completely and start it again; closing the window is not enough. In a new chat, check that the etch-agent tools are listed.
Claude on the web and the mobile apps cannot start a server on your computer, so they cannot use etch-agent. Use Claude Desktop or Claude Code on the machine that has the Etch builder open.
Codex
Config file: ~/.codex/config.toml. TOML, not JSON:
[mcp_servers.etch-agent]
command = "BUN_PATH"
args = ["SERVER_PATH", "--client-name", "codex"]
Append to the existing file; do not overwrite other [mcp_servers.*] blocks. Restart Codex afterwards.
opencode
Config file: ~/.config/opencode/opencode.json. Note the shape differs from Claude Code: a single command array under mcp, no separate args:
{
"mcp": {
"etch-agent": {
"type": "local",
"command": ["BUN_PATH", "SERVER_PATH", "--client-name", "opencode"]
}
}
}
Restart opencode afterwards.
Cursor
Add the server in Cursor's Customize sidebar (older versions: Cursor Settings → MCP or Tools & Integrations), or edit the file directly: ~/.cursor/mcp.json makes it available in every project, .cursor/mcp.json in one project.
{
"mcpServers": {
"etch-agent": {
"command": "bun",
"args": ["SERVER_PATH", "--client-name", "cursor"]
}
}
}
If Cursor cannot start the server, replace bun with the absolute BUN_PATH. Check that etch-agent shows as enabled with its tools listed (use the refresh button after editing the file). Do not commit a project .cursor/mcp.json that contains your private absolute paths.
Other harnesses
Most MCP clients use the Claude Code JSON shape - put etch-agent under the client's own mcpServers key:
| Harness | Config location |
|---|---|
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| ZCode | Settings UI → MCP Servers → paste the entry into Full configuration (scope: User) |
The ZCode entry uses this JSON in the UI:
{
"etch-agent": {
"type": "stdio",
"command": "BUN_PATH",
"args": ["SERVER_PATH", "--client-name", "zcode"],
"env": {}
}
}
Choose the folders for asset files
Asset uploads read a file from your computer, and downloads write into a folder you name. By default only these folders are allowed: Downloads, Desktop, Pictures, and the system temp folder.
To use other folders, list them in the server config. Either add --asset-root once per folder:
"args": ["SERVER_PATH", "--client-name", "claude", "--asset-root", "/ABS/PATH/folder"]
or set the ETCH_AGENT_ASSET_ROOTS environment variable in the client's server entry, with folders separated by : on macOS and Linux or ; on Windows. Once you list folders, only the folders you list are allowed. Restart the client after the change.
Hidden files and folders (such as ~/.ssh or .env), system files, and device names are never read or written, even through a link. App settings (such as ~/Library or AppData) and folders that start programs automatically (such as LaunchAgents or Startup) are refused too, unless you explicitly allow a folder inside them. A download never writes through a link and never replaces an existing file unless you ask it to.
Run several harnesses at once
The connector is shared, not exclusive. The first harness to start becomes the connector host (it owns ports 7331 and 7332); any harness started afterwards detects it and reuses it. You can install etch-agent into Claude Code, Codex, and opencode at the same time and run them simultaneously.
Two rules:
- Only one agent should mutate the same Etch target at a time. Two agents editing the same builder tab will collide. Different targets in different tabs are fine.
- For an isolated instance (a scratch harness that must not share the connector), add a distinct port argument such as
--connector-ws-port 17331. A custom port runs standalone: it hosts nothing and reuses nothing.
Verify the installation
- Connector is up. The first harness's startup log should read
[etch-agent:<name>] hosting the connector (host mode); any harness started later should readreusing an existing connector (client mode). - A target answers. Log into WordPress, open the Etch builder for a page or template, and click AI Connector in the builder. Then ask your agent to call
etch_list_targets- your tab should appear with its URL and title. - The right version answers. Ask your agent to call
etch_get_status.etchAgentVersionin the result should be the version you installed, for example2.2.0.
If etch_list_targets comes back empty, see Troubleshooting.
Update to a new release
Project Memory and your own skills in mcp/skills/user/ live outside the files a release replaces, so an update keeps them.
-
Quit every MCP client that runs etch-agent - Claude Desktop, Claude Code, Codex, Cursor, and the rest. The first client to start hosts the shared connector, and an old host keeps serving the old connector to every new client until it exits.
-
Unzip the new release over your existing
etch-agent/folder. The folder name stays the same, so MCP configs that point atetch-agent/mcp/server.jskeep working. -
Run the locked install again from the package root:
bun install --cwd mcp --frozen-lockfile --no-saveA release can pin a newer connector. Without this step the server keeps running with the one already installed. 2.2.0 moves to Connector 0.6.0 and Public API 0.22.0. As on first install, the Etch license and connector terms apply.
-
Start your MCP client again. In the Etch builder, reload the tab and click AI Connector.
-
Check the version. Ask the agent to call
etch_get_status. IfetchAgentVersionshows an older number, or is missing, a client still runs the old server: quit it completely and start it again.
To start from a clean copy instead, move mcp/skills/user/ aside, delete the old folder, unzip the new release under the same folder name, and move mcp/skills/user/ back.