---
title: "isoplane agent"
canonical: https://isoplane.dev/docs/reference/cli/agent
---

# isoplane agent

Connect a coding agent to this machine's Isoplane tools.

```bash
isoplane agent <command>
```

| Command                                       | Description                                                                              |
| --------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [`isoplane agent init`](#isoplane-agent-init) | Register the Isoplane MCP server in a coding agent's project configuration.              |
| [`isoplane agent mcp`](#isoplane-agent-mcp)   | Serve the Isoplane MCP server on standard input and output, for a coding agent to start. |

## isoplane agent init

Register the Isoplane MCP server in a coding agent's project configuration.

```bash
isoplane agent init [options]
```

| Option                    | Description                                                                                                                                  |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `--harness <harness>`     | Required. The coding agent to configure; repeat for several: claude-code, codex, cursor, opencode, pi, copilot, vscode, antigravity, gemini. |
| `--directory <directory>` | Directory whose configuration is written (default: current directory), usually the repository root.                                          |

The file each harness's configuration is written to, relative to the directory:

| Harness       | File                      |
| ------------- | ------------------------- |
| `claude-code` | `.mcp.json`               |
| `codex`       | `.codex/config.toml`      |
| `cursor`      | `.cursor/mcp.json`        |
| `opencode`    | `opencode.json`           |
| `pi`          | `.pi/mcp.json`            |
| `copilot`     | `.github/mcp.json`        |
| `vscode`      | `.vscode/mcp.json`        |
| `antigravity` | `.agents/mcp_config.json` |
| `gemini`      | `.gemini/settings.json`   |

## isoplane agent mcp

Serve the Isoplane MCP server on standard input and output, for a coding agent to start.

```bash
isoplane agent mcp
```

The tools it offers:

| Tool             | Description                                                                                                                                                                                                                                                                                                                                                                                                |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `check_machine`  | Checks that this machine can build and run Isoplane applications: the .NET SDK, the native host library and the project templates. Returns the ready message, or an error saying what to install or run.                                                                                                                                                                                                   |
| `start_session`  | Builds an Isoplane application project and runs it in the sandbox on this machine, as `isoplane dev` does. Returns the session's id and the address the application answers at. With watching on, a saved source change rebuilds and reloads it. A build that fails returns its errors and starts nothing.                                                                                                 |
| `session_events` | Returns what a session has reported since a given event number: ready and reloaded with the application's address, reload\_pending, reload\_failed and build\_failed with their detail, application\_log for each line the application logged, and diagnostic for each record the host logged. Pass the last number seen to read only newer events; a wait of some seconds returns as soon as one arrives. |
| `stop_session`   | Stops a session started by start\_session and frees its port.                                                                                                                                                                                                                                                                                                                                              |
| `list_sessions`  | Lists the sessions started by start\_session that are still running, with the project and address of each.                                                                                                                                                                                                                                                                                                 |
