device-scanner-mcp
v1.1.0MCP server to detect WiFi/Ethernet/USB devices, SSH into them, deploy files, run tests, and manage services.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_wifi
List all visible WiFi networks nearby. Returns SSID, signal strength, band, channel, and authentication type for each network. Use this to find device WiFi SSIDs before connecting.
scan_network_adapters
List all network adapters on this machine (Ethernet, WiFi, Bluetooth, virtual). Returns name, status (Up/Disconnected), MAC address, link speed, and IP addresses for each adapter.
scan_usb_devices
List all USB devices currently connected to this machine. Returns device name, manufacturer, vendor/product IDs, and status.
scan_all_connections
Run scan_wifi, scan_network_adapters, and scan_usb_devices together in one call. Use this for a complete overview of all connections.
device_ssh
Run one or more shell commands on a device over Ethernet or USB. Each command runs sequentially in a single SSH session. Use this for quick checks like 'uname -a', 'ls /tmp', 'df -h'. For multi-line scripts with pipes or variables, use device_ssh_batch instead. Does NOT require WiFi hop — the device is directly reachable via wired connection. Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) commands: List of shell commands — e.g. ["uname -a", "ls /tmp", "free -h"] connection: How the device is connected — "…
| Parameter | Type | Description |
|---|---|---|
commands * | array | |
device_type * | string | |
connection | string | |
device_ip | string | |
per_cmd_timeout | integer | |
ssh_password | string | |
ssh_user | string |
device_ssh_batch
Run a multi-line bash script on a device over Ethernet or USB. The entire script is sent as stdin to 'bash -s' in a single SSH session. Use this when commands depend on each other (variables, pipes, loops, conditionals). For simple independent commands, use device_ssh instead. Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) script: Multi-line bash script — e.g. "cd /tmp\nexport LD_LIBRARY_PATH=.\n./my_test" connection: "ethernet" or "usb" device_ip: Override the auto-detected IP ssh_user: Overr…
| Parameter | Type | Description |
|---|---|---|
device_type * | string | |
script * | string | |
connection | string | |
device_ip | string | |
ssh_password | string | |
ssh_user | string | |
timeout | integer |
device_scp_push
Upload a single file from this machine to a device over Ethernet or USB. Uses SFTP. The remote directory must already exist — use device_ssh to create it first if needed. For uploading over WiFi, use wifi_hop_scp_push instead. Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) local_path: Full path to the local file — e.g. "C:/temp/firmware.bin" remote_path: Full destination path on device — e.g. "/tmp/firmware.bin" connection: "ethernet" or "usb" device_ip: Override the auto-detected IP s…
| Parameter | Type | Description |
|---|---|---|
device_type * | string | |
local_path * | string | |
remote_path * | string | |
connection | string | |
device_ip | string | |
ssh_password | string | |
ssh_user | string |
device_scp_pull
Download a single file from a device to this machine over Ethernet or USB. Uses SFTP. For downloading over WiFi, use wifi_hop_scp_pull instead. Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) remote_path: Full path of the file on device — e.g. "/tmp/logs/app.log" local_path: Full local destination path — e.g. "C:/temp/app.log" connection: "ethernet" or "usb" device_ip: Override the auto-detected IP ssh_user: Override SSH username ssh_password: Override SSH password
| Parameter | Type | Description |
|---|---|---|
device_type * | string | |
local_path * | string | |
remote_path * | string | |
connection | string | |
device_ip | string | |
ssh_password | string | |
ssh_user | string |
wifi_hop_scp_push
Upload a single file to a device over WiFi. Automatically switches WiFi to the device network, uploads via SFTP, then switches back to office WiFi. The remote directory must already exist. For Ethernet/USB use device_scp_push instead (no hop needed). Args: device_ssid: WiFi SSID of the device — e.g. "DEVICE_ABC123" local_path: Full local file path — e.g. "C:/temp/firmware.bin" remote_path: Full remote destination — e.g. "/tmp/firmware.bin" home_ssid: Office WiFi to return to (auto-detected if empty) device_ip: Override auto-detected I…
| Parameter | Type | Description |
|---|---|---|
device_ssid * | string | |
local_path * | string | |
remote_path * | string | |
device_ip | string | |
home_ssid | string | |
ssh_password | string | |
ssh_user | string |
wifi_hop_scp_pull
Download a single file from a device over WiFi. Automatically switches WiFi to the device network, downloads via SFTP, then switches back to office WiFi. For Ethernet/USB use device_scp_pull instead (no hop needed). Args: device_ssid: WiFi SSID of the device — e.g. "DEVICE_XYZ789" remote_path: Full path of file on device — e.g. "/tmp/logs/crash.log" local_path: Full local destination — e.g. "C:/temp/crash.log" home_ssid: Office WiFi to return to (auto-detected if empty) device_ip: Override auto-detected IP ssh_user: Override S…
| Parameter | Type | Description |
|---|---|---|
device_ssid * | string | |
local_path * | string | |
remote_path * | string | |
device_ip | string | |
home_ssid | string | |
ssh_password | string | |
ssh_user | string |
wifi_hop_ssh
Run shell commands on a device over WiFi. Automatically switches WiFi to the device, runs commands via SSH, then switches back to office WiFi. For Ethernet/USB use device_ssh instead (no hop needed, faster). Args: device_ssid: WiFi SSID of the device — e.g. "DEVICE_ABC123", "DEVICE_XYZ789" commands: List of shell commands — e.g. ["uname -a", "ls /tmp", "df -h"] home_ssid: Office WiFi to return to (auto-detected if empty) device_ip: Override auto-detected IP (default 10.0.0.10) ssh_user: Override SSH username ssh_password: Overri…
| Parameter | Type | Description |
|---|---|---|
commands * | array | |
device_ssid * | string | |
device_ip | string | |
home_ssid | string | |
per_cmd_timeout | integer | |
ssh_password | string | |
ssh_user | string |
wifi_hop_ssh_batch
Run a multi-line bash script on a device over WiFi. Automatically switches WiFi to the device, runs the script via SSH, then switches back. For Ethernet/USB use device_ssh_batch instead (no hop needed, faster). Args: device_ssid: WiFi SSID of the device — e.g. "DEVICE_ABC123" script: Multi-line bash script — e.g. "cd /tmp\nexport LD_LIBRARY_PATH=.\n./run_tests.sh" home_ssid: Office WiFi to return to (auto-detected if empty) device_ip: Override auto-detected IP ssh_user: Override SSH username ssh_password: Override SSH password…
| Parameter | Type | Description |
|---|---|---|
device_ssid * | string | |
script * | string | |
device_ip | string | |
home_ssid | string | |
ssh_password | string | |
ssh_user | string | |
timeout | integer |
device_upload_directory
Compress a local directory into a .tar.gz and upload it to a device. Does ONE job: tar locally + upload. Does NOT extract — use device_extract_archive to extract. Works over Ethernet, USB, or WiFi (auto-hops for WiFi). Typical workflow to deploy files: 1. device_upload_directory → uploads .tar.gz to device 2. device_extract_archive → extracts .tar.gz on device Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) local_dir: Local directory to compress — e.g. "C:/temp/binaries" remote_path: Destina…
| Parameter | Type | Description |
|---|---|---|
device_type * | string | |
local_dir * | string | |
connection | string | |
device_ip | string | |
device_ssid | string | |
file_glob | string | |
remote_path | string | |
ssh_password | string | |
ssh_user | string |
device_extract_archive
Extract a .tar.gz archive that is already on a device. Does ONE job: extract. Use device_upload_directory or device_scp_push to upload the archive first. Works over Ethernet, USB, or WiFi (auto-hops for WiFi). Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) archive_path: Path to .tar.gz on device — e.g. "/tmp/binaries.tar.gz" extract_dir: Directory to extract into — e.g. "/tmp/binaries" connection: "ethernet", "usb", or "wifi" device_ssid: Required only for WiFi device_ip: Override the au…
| Parameter | Type | Description |
|---|---|---|
archive_path * | string | |
device_type * | string | |
connection | string | |
delete_archive | boolean | |
device_ip | string | |
device_ssid | string | |
extract_dir | string | |
ssh_password | string | |
ssh_user | string |
device_health
Get a quick health snapshot of a device: CPU info, memory usage, disk space, uptime, temperature, load average, top processes, and network interfaces. Works over Ethernet, USB, or WiFi (auto-hops for WiFi). Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) connection: "ethernet", "usb", or "wifi" device_ssid: Required only for WiFi — the device SSID device_ip: Override auto-detected IP ssh_user: Override SSH username ssh_password: Override SSH password
| Parameter | Type | Description |
|---|---|---|
device_type * | string | |
connection | string | |
device_ip | string | |
device_ssid | string | |
ssh_password | string | |
ssh_user | string |
device_ping
Ping a device to check if it is reachable on the network. Use this before SSH/SCP to avoid long timeouts on offline devices. Only works for Ethernet/USB (direct connections). Cannot ping device WiFi without hopping. Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) connection: "ethernet" or "usb" device_ip: Override auto-detected IP
| Parameter | Type | Description |
|---|---|---|
device_type * | string | |
connection | string | |
device_ip | string |
device_reboot
Reboot a device and optionally wait until it comes back online. Sends 'reboot' via SSH, then polls with ping+SSH until the device responds again. Works over Ethernet, USB, or WiFi (auto-hops for WiFi). Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) connection: "ethernet", "usb", or "wifi" device_ssid: Required only for WiFi device_ip: Override auto-detected IP ssh_user: Override SSH username ssh_password: Override SSH password wait_timeout: Max seconds to wait for recovery (0 = fire…
| Parameter | Type | Description |
|---|---|---|
device_type * | string | |
connection | string | |
device_ip | string | |
device_ssid | string | |
ssh_password | string | |
ssh_user | string | |
wait_timeout | integer |
device_run_tests
Run GTest/executable test binaries on a device and return structured pass/fail results. Automatically parses Google Test output to extract passed/failed counts per binary. Returns a summary table with per-binary results and overall totals. Works over Ethernet, USB, or WiFi (auto-hops for WiFi). Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) test_binaries: List of binary names to run — e.g. ["smoke_test", "test_iox_wrapper", "iox_flatbuf_tests"] test_dir: Directory on device where the binaries are located —…
| Parameter | Type | Description |
|---|---|---|
device_type * | string | |
test_binaries * | array | |
connection | string | |
device_ip | string | |
device_ssid | string | |
ld_library_path | string | |
ssh_password | string | |
ssh_user | string | |
test_dir | string | |
timeout | integer |
device_logs
Fetch log output from a device. Supports kernel logs (dmesg), system logs (syslog/journal), or any custom log file. Returns the last N lines, optionally filtered by a grep pattern. Works over Ethernet, USB, or WiFi (auto-hops for WiFi). Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) log_type: What to fetch — "dmesg" (kernel), "syslog" (system), "journal" (systemd), or a file path like "/var/log/app.log" lines: Number of lines to fetch from the end (default 100) connection: "ethernet", "usb", or "wifi"…
| Parameter | Type | Description |
|---|---|---|
device_type * | string | |
connection | string | |
device_ip | string | |
device_ssid | string | |
grep_filter | string | |
lines | integer | |
log_type | string | |
ssh_password | string | |
ssh_user | string |
device_service
Control a systemd service on a device: check its status, start, stop, restart, enable, disable, or view its logs. Does ONE action per call. Works over Ethernet, USB, or WiFi (auto-hops for WiFi). Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) service_name: Name of the systemd service — e.g. "my-app", "nginx", "sshd" (any systemd service name) action: What to do — "status", "start", "stop", "restart", "enable", "disable", or "logs" connection: "ethernet", "usb", or "wifi" device_ssid: Required only f…
| Parameter | Type | Description |
|---|---|---|
device_type * | string | |
service_name * | string | |
action | string | |
connection | string | |
device_ip | string | |
device_ssid | string | |
ssh_password | string | |
ssh_user | string |
device_process_list
List running processes on a device, sorted by CPU usage (top 30). Optionally filter by process name. Works over Ethernet, USB, or WiFi (auto-hops for WiFi). Args: device_type: Device name — e.g. "DeviceA", "DeviceB" (as configured in .env) connection: "ethernet", "usb", or "wifi" device_ssid: Required only for WiFi device_ip: Override auto-detected IP ssh_user: Override SSH username ssh_password: Override SSH password filter_name: Only show processes matching this name — e.g. "my-app" or "python"
| Parameter | Type | Description |
|---|---|---|
device_type * | string | |
connection | string | |
device_ip | string | |
device_ssid | string | |
filter_name | string | |
ssh_password | string | |
ssh_user | string |
multi_device_ssh
Run the same shell commands on multiple devices in sequence and collect all results. Useful for checking firmware versions, disk space, or running the same test across devices. Only for Ethernet/USB (direct connections). For WiFi devices, call wifi_hop_ssh per device. Args: devices: List of devices, each a dict with "device_type" and "connection" — e.g. [{"device_type": "DeviceA", "connection": "ethernet"}, {"device_type": "DeviceB", "connection": "usb"}] commands: Shell commands to run on EACH device — e.g. ["uname -a", "cat /etc/version"] per_cmd…
| Parameter | Type | Description |
|---|---|---|
commands * | array | |
devices * | array | |
per_cmd_timeout | integer |
wifi_switch
Switch WiFi to a different office network (one that has internet). Use this to move between office networks. BLOCKED for device SSIDs (as configured in DEVICE_PREFIXES in .env) — those have no internet and would kill the Claude connection. Use wifi_hop_ssh to interact with devices instead.
| Parameter | Type | Description |
|---|---|---|
ssid * | string |
wifi_status
Show which WiFi network this machine is currently connected to, including signal strength, band, channel, and speed.