# Connect coding agents to Edith over MCP

> Connect Claude Code, Codex, Cursor or VS Code to the Edith MCP server from Settings > Tools or ed mcp install, and see how tools map to ed commands.

- Canonical URL: https://getedith.pro/docs/mcp
- Updated: 2026-12-03

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](https://getedith.pro/mcp) 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:

```json
{ "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

1. In **Settings > General**, set **Profile** to **Developer**.
2. 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**.
3. Press **Connect** next to a client, or **Connect all** to connect every agent found on this Mac.
4. Restart the client, then ask the agent to call `edith_catalog`.

Press **Disconnect** to remove Edith from a client again.

![Settings > Tools, Coding agents section, with Claude Code and Codex connected, Cursor installed but not connected and VS Code not found](shot:mcp)

| 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:

```terminal
$ ed mcp install --client all --dry-run
$ ed mcp install --client all
$ ed mcp status
```

Or 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:

```sh
ed mcp uninstall --client all
```

## Changes 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:

1. **Discover.** Call `edith_catalog`. It lists every extension with its status (`enabled`, `installed` or `available`), a summary and example `ed` commands. Pass `query`, `status` or `id` to narrow it.
2. **Call.** Use the matching `edith_*` tool.
3. **Install only when needed.** If an extension is only available, ask you first, then call `edith_extensions_install` with `confirm: true`. The server then announces that its tool list changed, and the agent lists tools again.
4. **Show you.** `edith_app_navigate` with 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](https://getedith.pro/docs/extensions/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](https://getedith.pro/docs/extensions/database-client) 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](https://getedith.pro/docs/cli/mcp).

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](https://getedith.pro/docs/extensions/agent-skills) 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.

![The Plugins page listing Edith skills, with Edith Remote Work installed and Preview and Install buttons on the others](shot:ext-plugins)

## Related

- [`ed mcp` reference](https://getedith.pro/docs/cli/mcp), with [`install`](https://getedith.pro/docs/cli/mcp/install), [`status`](https://getedith.pro/docs/cli/mcp/status) and [`uninstall`](https://getedith.pro/docs/cli/mcp/uninstall).
- [The `ed` command line](https://getedith.pro/docs/command-line) for the JSON and exit code contract every tool inherits.
- [Agent docs](https://getedith.pro/docs/agents) for running coding agents from Edith.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
