legacy-switch-mcp
v0.2.0Manage D-Link DGS-1100 and USRobotics 7724 smart switches: plan-then-apply changes with rollback.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_switches
Configured switches (name, address, vendor); edit ~/.config/switch-mcp/switches.json to add more.
list_interfaces
IPv4 interfaces on this host that discovery can use.
discover
Broadcast/multicast discovery on one interface (e.g. vmbr0). Sends requests only; changes nothing.
| Parameter | Type | Description |
|---|---|---|
interface * | string | |
wait_seconds | number |
probe
Ask one switch by IP (works across subnets); returns its discovery reply or {"error": ...}.
| Parameter | Type | Description |
|---|---|---|
host * | string |
read_page
One raw page of a switch's web UI. USRobotics: status, port, vlan, trunk, mirror, statistics, system, trap. D-Link: system, vlan, port, mirror, pvlan, mgmt_vlan, trunk. Read-only.
| Parameter | Type | Description |
|---|---|---|
page * | string | |
switch * | string |
overview
Everything useful in one login (USRobotics: its main pages; D-Link: the parsed state).
| Parameter | Type | Description |
|---|---|---|
switch * | string |
get_state
Parsed state: VLANs/groups, ports, mirror, trunks, system. Read-only.
| Parameter | Type | Description |
|---|---|---|
switch * | string |
backup_state
Save the parsed state to a JSON file under ~/.local/state/switch-mcp/backups. Read-only on the switch.
| Parameter | Type | Description |
|---|---|---|
switch * | string |
list_snapshots
Saved state files (backups and the snapshot before every apply), newest first.
| Parameter | Type | Description |
|---|---|---|
switch |
describe_switch
Markdown description of a switch's configuration for a wiki. Read-only.
| Parameter | Type | Description |
|---|---|---|
switch * | string |
backup_config
Download the configuration file to the state directory (mode 0600; it is a secret). Returns only id, size, checksum. Read-only.
| Parameter | Type | Description |
|---|---|---|
switch * | string |
backup_firmware
Download the D-Link's running firmware image (~740 KB) to the state directory. Read-only; the USRobotics has none.
| Parameter | Type | Description |
|---|---|---|
switch * | string |
list_files
Saved configuration/firmware files (id, size, time; never content), newest first.
| Parameter | Type | Description |
|---|---|---|
switch |