Repository navigation
Closed
Labels
Description
Goal (owner decision 2026-10-07)
One server, every device. The plugin's plugin:cua:cua_repl server reaches remote devices itself, so a client needs no per-device claude mcp add: the tool names stay mcp__plugin_cua_cua_repl__*, and which machine they drive is a per-connection target.
Design
- Target per connection. New tools
devices_list(local + every configured device withonline/offline/lockedas the relay reports it) anddevices_use {device}(switch the connection's target; refused while a task is open on the current target,task_open; default targetlocal).js,js_reset,end_task,profiles_list,secrets_listroute to the target. Host notes gain one rule (budget 2,048 chars incl. the vendor's first line). - Remote target = an MCP Streamable HTTP client inside
cua serve(src/remote/client.mjs): initialize, POST with SSE parsing,Last-Event-IDresumption on a dropped stream, DELETE onend_task/close; elicitations from the device are relayed to the local client unchanged (the plugin's approval hook answers them). Relay errors map to classified codes (device_offline,console_locked,device_unauthorized,session_limit). - Device registry
~/.config/cua/devices.json(0600):{name: {deviceId, relayUrl}}; CLIcua devices add <name> --relay <url> --device <id>,remove,list, andimport <mcp.json>for the~/.config/cua-relay/*.mcp.jsonfiles that exist today (writes the credential to the secret store itself). - Credential read by the server from the secret store under the key
CUA_DEVICE_<id with - as _>(the owner stores it with/secret). TheCUA_DEVICE_prefix is reserved: excluded fromsecrets_listand from{{secret:…}}substitution (closes Secrets: should relay client credentials stored via /secret be substitutable; fixture temp-home cleanup; accept-native PASS on macOS #69's decision). - The standalone HTTP registration (
claude mcp add --transport http cua_repl …) stays supported for clients without the plugin. - Skill
cua-remotePart B collapses to: store the credential,cua devices add(orimport), reconnect,devices_list/devices_use.
Acceptance
From this MacBook's plugin server: devices_list shows mini online; devices_use mini, a TextEdit marker typed/read on the mini and a Chrome school tab; devices_use local after end_task; relay restart mid-js delivers the in-flight result; the credential appears nowhere in the transcript; secrets_list hides CUA_DEVICE_*; {{secret:CUA_DEVICE_…}} is refused. Same from the mini to the MacBook. Spec: new Phase G section + Decision Log in 2026-10-06-remote-and-linux-design.md.
Activity
Device registry and cua devices add|remove|list|import; devicesAddCom…
The device's session-less 400 carries Cua-Console: locked while the c…
The device session client: openDeviceSession, probeDevice and DeviceE…
Device client review fixes: an already-cancelled request is never sen…
Device client: a request the device certainly never received says so …
The target in the stdio server: devices_list and devices_use, the fiv…
chrome-all acceptance: cua serve lists seven tools now (the two devic…
Device target review fixes: a js waiting for its lazy open holds the …
Plugin 0.3.0: README leads remote control with the plugin route (cua …
devices_use carries its note and the device's host notes in the struc…
Phase G acceptance evidence: items 13 to 18 in both directions throug…
README: the plugin route's two ways to add a device, without /secret …
Device target: a call queued behind a devices_use joins the switch ch…
SSFSKIM commentedon Oct 7, 2026
[board] in-review: PR open: acceptance 13-18 passed both directions; reviews clean
SSFSKIM commentedon Oct 7, 2026
[board] done: PR #71 merged: devices_list/devices_use in the plugin server, cua devices CLI, CUA_DEVICE_ reserved; live both directions