Skip to content

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.

Terminal window
claude mcp add --scope user cortland /Applications/Cortland.app/Contents/MacOS/cortland-mcp

Or, from a source checkout, scripts/install-agent-status-hooks installs a build to ~/.local/bin and registers it with Claude Code.

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