Documentation
¶
Overview ¶
Command muster-mirror shows this machine's tmux sessions in muster's Agents view as MIRRORED sessions — one card per tmux WINDOW. It is READ-ONLY unless started with -interactive. It is the optional host half of the mirror plugin: install it only on the machines whose sessions muster should show, and only against a muster running with MUSTER_MIRROR=1.
It dials OUT to muster and opens no listener — unless -mcp-listen is set, which serves a LOOPBACK-only MCP endpoint for this host's own Claude Code sessions (internal/mirrorhost's MCPProxy; docs/attention.md). Its one credential is this host's mirror token, minted on the muster side with
muster-server mirror token create <host>
Usage:
muster-mirror -url https://muster.example.com -token-file ~/.config/muster-mirror/token
`muster-mirror ask` is a different, short-lived command: Claude Code's PreToolUse hook for AskUserQuestion (ask.go).
Every flag also reads an environment variable (named in -help), so a systemd unit can configure it without putting the token in argv.