Guide
Connect coding agents to Edith over MCP
Edith ships an MCP server inside the app. Register it once with your coding agent, and the commands of every extension you enable become tools the agent can call, with the same safety rules as the ed command line. The MCP page has example prompts.
What the server does
ed mcp serves Edith's commands to an agent over MCP stdio. Each command becomes one tool named after it:
| Command | Tool |
|---|---|
ed usage limits |
edith_usage_limits |
ed machines ls |
edith_machines_ls |
ed extensions install |
edith_extensions_install |
A tool takes an arguments array holding the words that follow the command on the command line. It runs the command with --json and returns the JSON unchanged. So ed usage limits --refresh is:
{ "arguments": ["--refresh"] }sent to edith_usage_limits. Tools exist only for the extensions you have enabled, plus built-in ones such as edith_catalog.
Connect your agent
- In Settings > General, set Profile to Developer.
- Open Settings > Tools and find the Coding agents section. Each client shows Installed on this Mac or Not found on this Mac, and a status: Connected, Not connected, Points at another Edith or Settings file unreadable.
- Press Connect next to a client, or Connect all to connect every agent found on this Mac.
- Restart the client, then ask the agent to call
edith_catalog.
Press Disconnect to remove Edith from a client again.

| Client | Where the entry goes |
|---|---|
| Claude Code | user-scope mcpServers.edith in ~/.claude.json |
| Codex | [mcp_servers.edith] in ~/.codex/config.toml, or in $CODEX_HOME/config.toml |
| Cursor | mcpServers.edith in ~/.cursor/mcp.json |
| VS Code | servers.edith in ~/Library/Application Support/Code/User/mcp.json |
The entry runs ed mcp from the installed app, /Applications/Edith.app/Contents/MacOS/ed, so it works whether or not ed is on your PATH. Edith edits each settings file directly, changes only the edith entry and copies the file to <name>.edith-backup first. If a file is not plain JSON, Edith leaves it alone and shows the client as Settings file unreadable.
From the terminal
The same connection, for every agent client found on this Mac:
ed mcp install --client all --dry-runed mcp install --client alled mcp statusOr name one client: claude, codex, cursor or vscode. If a settings file is not plain JSON, ed mcp install exits 1 and prints the exact entry to paste. To remove it again:
ed mcp uninstall --client allChanges wait for confirm
Commands that change or remove something keep the command line's safety model. Their tools return a preview by default and apply only when the call passes confirm: true, which adds --yes. A call that puts --yes in arguments itself is refused, so confirm is the only way to apply.
Installing, updating, enabling, disabling and removing extensions follow the same rule. Other commands run as soon as they are called, so your client's own tool approval still applies to them.
How an agent should use it
The server tells the agent this order when it connects:
- Discover. Call
edith_catalog. It lists every extension with its status (enabled,installedoravailable), a summary and exampleedcommands. Passquery,statusoridto narrow it. - Call. Use the matching
edith_*tool. - Install only when needed. If an extension is only available, ask you first, then call
edith_extensions_installwithconfirm: true. The server then announces that its tool list changed, and the agent lists tools again. - Show you.
edith_app_navigatewith the extension id opens its page in Edith.
The server also serves guidance as resources: edith://guide, edith://guide/agent, edith://guide/mcp and edith://extensions/<id>.
Find the right tool for a request
If you saved a TypeSafe key in Jev settings, the server also lists edith_find. It takes a plain-language request and returns the five likeliest tools. The database tools from the Database extension are served by the same registration.
When a tool fails
A command that runs and fails is not a protocol error. The tool result carries the command's stderr with isError: true, so the agent sees the same error: and hint: lines you would. If Edith is closed or locked, tools that need the app fail with that reason. Protocol errors use the usual JSON-RPC codes, listed in the ed mcp reference.
The server accepts MCP protocol versions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05.
Teach your agent about Edith
Plugins installs skills that teach Claude Code, Cursor or Codex to drive Edith. You can also paste the output of ed guide agent into a repository's instructions file.

Related
ed mcpreference, withinstall,statusanduninstall.- The
edcommand line for the JSON and exit code contract every tool inherits. - Agent docs for running coding agents from Edith.

