Intermittent wrong-device routing in multi-device setup despite explicit deviceId
Summary
In a multi-device setup with two Windows machines connected under the same account, tool calls that explicitly include a target deviceId can intermittently execute on the wrong online device.
This is not only a display issue: at least one write operation was actually performed on the wrong host.
Environment
- Desktop Commander MCP:
0.2.46 - OS: Windows 10 on both devices
- Two simultaneously connected devices under the same account:
Dell-E5270-Dev10- device ID:
b9b56b9f-dcfc-4d2c-a1de-6b0c647c880c - Windows user:
Dell E5270
- device ID:
Latitude-E5540- device ID:
3d58fcef-c1e2-4ed4-87fb-9d7ed1d7a8e2 - Windows user:
Asus F75A
- device ID:
- Both devices appear correctly in
list_devices - Both devices have separate persisted sessions and valid auth tokens
Observed behavior
For tools such as start_process and list_directory, the public tool schema exposes an optional deviceId parameter.
However, calls frequently emit this warning:
You sent parameters not supported by this tool, which were ignored: deviceId.
Supported parameters for start_process: command, timeout_ms, shell, verbose_timing, origin.Despite that warning, the command is sometimes still routed to the requested device, which makes the behavior ambiguous.
More importantly, at least one explicitly targeted write operation was executed on the wrong device.
Concrete evidence
A scheduled-task setup command intended for Latitude-E5540 / user Asus F75A was executed on Dell-E5270-Dev10 / user Dell E5270.
The command contained this target path:
C:\Users\Asus F75A\AppData\Local\DesktopCommander\start-remote.ps1But the returned task information showed:
UserId: DELL-E5270-DEV1\Dell E5270This created a real scheduled task on the wrong machine. The task was subsequently removed.
Later tests using the same two device IDs routed correctly again, so the problem appears intermittent rather than deterministic.
The ordering of devices returned by list_devices also changed during the session, which may indicate a fallback to the first available online device when explicit device routing is not applied correctly.
Reproduction outline
- Connect two Windows devices under the same Desktop Commander account.
- Confirm both appear online in
list_devices. - Call
start_processorlist_directorywith the explicitdeviceIdof device B. - Repeat calls while both devices remain online.
- Observe:
- the warning that
deviceIdis ignored, - calls sometimes routing correctly,
- and intermittently a call executing on device A instead.
- the warning that
A safe read-only verification command is:
$env:COMPUTERNAME
[System.Security.Principal.WindowsIdentity]::GetCurrent().NameExpected behavior
- If a valid
deviceIdis supplied, the request must execute only on that device. - If the target device is offline or unreachable, the call must fail explicitly.
- There must be no silent fallback to another online device.
- The exposed tool schema and the parameters accepted by the implementation should agree.
- For write-capable operations, returning the effective target device/hostname would provide an additional safety check.
Impact
This is a target-integrity and safety issue for multi-device use. A command intended for one authorized machine may modify another authorized machine. Depending on the command, this could affect files, scheduled tasks, services, or running processes.
Current workaround
We now guard every write command with a host/user assertion, for example:
if ([Environment]::MachineName -ne 'LATITUDE-E5540') {
throw 'Wrong target device'
}This prevents damage but should not be required for normal multi-device operation.
Reported jointly by:
- Elian (ChatGPT)
- Martin Mehnert
Source: wonderwhy-er/DesktopCommanderMCP