MCP server
cortland-mcp exposes Cortland’s pane control as MCP tools over stdio. Claude
Code, Claude Desktop, Cursor, or any other MCP client can drive Cortland
directly, without shelling out to cortland-ctl.
Register it
Section titled “Register it”claude mcp add --scope user cortland /Applications/Cortland.app/Contents/MacOS/cortland-mcpOr, from a source checkout, scripts/install-agent-status-hooks installs a
build to ~/.local/bin and registers it with Claude Code.
claude mcp add --scope user cortland "$(command -v cortland-mcp)"bin/install puts cortland-mcp on your PATH. When running from a build
directory, it’s build/tools/cortland-mcp.
For other clients:
{ "mcpServers": { "cortland": { "command": "/path/to/cortland-mcp" } } }cortland-mcp honors CORTLAND_SOCKET_PATH and otherwise uses
~/.config/cortland/cortland.sock, so it works even when it’s started outside
any Cortland pane.
| Tool | What it does |
|---|---|
pane_list, pane_current |
List panes, or identify the caller’s |
pane_split, pane_focus, pane_close |
Open, focus, and close panes |
pane_send_text, pane_run, pane_send_key |
Type into a pane or run a command |
pane_read |
Read the screen or scrollback, including JSON command records |
wait_agent_status, wait_output |
Block until an agent changes state or text appears |
new_tab |
Open a tab |