一键导入
deploy-connector
Build and restart the mclaude-connector in its tmux window. Use when the user wants to deploy, rebuild, or restart the connector.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build and restart the mclaude-connector in its tmux window. Use when the user wants to deploy, rebuild, or restart the connector.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Stand up a local k3d cluster and deploy mclaude to it. Builds images locally if ghcr.io images are unavailable. HTTPS via Let's Encrypt wildcard cert for *.mclaude.richardmcsong.com. DNS via DigitalOcean + ExternalDNS. Idempotent — safe to re-run.
Trigger any CI deploy and monitor it using local tools. CI builds and deploys; local kubectl/gh are for observing only.
Cross-compile and deploy the mclaude-relay binary to the remote VM. Use when the user wants to deploy, rebuild, or restart the relay.
Build and restart mclaude-server as a launchd service. Use when the user wants to deploy, rebuild, or restart the server.
基于 SOC 职业分类
| name | deploy-connector |
| description | Build and restart the mclaude-connector in its tmux window. Use when the user wants to deploy, rebuild, or restart the connector. |
Build and restart the mclaude-connector on the local laptop inside its tmux window.
Credentials are stored in Vault at appcodes/0LL0/DEV/MCLAUDE (case-sensitive).
Fetch them with:
vault kv get appcodes/0LL0/DEV/MCLAUDE
This provides RELAY_URL and TUNNEL_TOKEN. Other env vars:
MCLAUDE_URL: Local mclaude-server (default: http://localhost:8377)STATIC_DIR: Path to local static files for hot-reload (optional)Build the connector:
cd mclaude-connector && go build -o mclaude-connector .
Kill any running connector:
pkill -f mclaude-connector || true
Restart in the tmux "connector" window (mclaude session):
tmux send-keys -t mclaude:connector C-c
sleep 1
tmux send-keys -t mclaude:connector "RELAY_URL=$RELAY_URL TUNNEL_TOKEN=$TUNNEL_TOKEN MCLAUDE_URL=$MCLAUDE_URL STATIC_DIR=$STATIC_DIR $(pwd)/mclaude-connector/mclaude-connector" Enter
If the tmux window doesn't exist yet, create it:
tmux new-window -t mclaude -n connector "RELAY_URL=$RELAY_URL TUNNEL_TOKEN=$TUNNEL_TOKEN MCLAUDE_URL=$MCLAUDE_URL STATIC_DIR=$STATIC_DIR $(pwd)/mclaude-connector/mclaude-connector; exec zsh"
Verify (wait 2s for reconnect):
curl -s $RELAY_URL/health
| Variable | Required | Description |
|---|---|---|
RELAY_URL | Yes | Relay WebSocket URL |
TUNNEL_TOKEN | Yes | Shared secret with relay |
MCLAUDE_URL | No | Local mclaude-server (default: http://localhost:8377) |
STATIC_DIR | No | Path to local static files for hot-reload dev mode |
CONNECTOR_NAME | No | Override auto-detected hostname for multi-laptop display |
TLS_SKIP_VERIFY | No | Set to 1 to skip TLS verification |
mclaude:connector/health and /laptops responses