Skip to main content
mirage is a client of the server’s HTTP routes, with the same commands in Python and TypeScript. When its url is on this machine, it starts a server on first use; a remote url is never started.

Install

Quickstart

workspace.yaml is a workspace config.

Exit codes

Run lines and tools

-w names the workspace and -s the session, the default one when absent.

mirage mcp

mirage mcp [CONFIG] [-w ID] [-s SESSION] serves a session’s MCP tools on stdio. mirage rpc takes the same arguments and serves RPC. With -w, it serves a workspace the server already holds. Otherwise it creates one from CONFIG, from MIRAGE_MCP_CONFIG (MIRAGE_RPC_CONFIG) or MIRAGE_CONFIG, or from a workspace.yaml found walking up from the working directory. It deletes that workspace when the client disconnects, unless the config names a workspace_id.

Workspaces

Asks

Sessions

Jobs

Daemon

The server the CLI starts. It exits 30 seconds after its last workspace is deleted, and logs to ~/.mirage/daemon.log.

Config

mirage config set|get|unset|list edits ~/.mirage/config.toml. An environment variable wins over the file. Changes apply on the next start. MIRAGE_HOME moves everything under ~/.mirage.