legacy-switch-mcp

v0.2.0
io.github.Nebulous-Ideas/legacy-switch-mcp Checked 1 day ago Published 22 days ago

Manage 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.

ParameterTypeDescription
interface *string
wait_secondsnumber

probe

Ask one switch by IP (works across subnets); returns its discovery reply or {"error": ...}.

ParameterTypeDescription
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.

ParameterTypeDescription
page *string
switch *string

overview

Everything useful in one login (USRobotics: its main pages; D-Link: the parsed state).

ParameterTypeDescription
switch *string

get_state

Parsed state: VLANs/groups, ports, mirror, trunks, system. Read-only.

ParameterTypeDescription
switch *string

backup_state

Save the parsed state to a JSON file under ~/.local/state/switch-mcp/backups. Read-only on the switch.

ParameterTypeDescription
switch *string

list_snapshots

Saved state files (backups and the snapshot before every apply), newest first.

ParameterTypeDescription
switch

describe_switch

Markdown description of a switch's configuration for a wiki. Read-only.

ParameterTypeDescription
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.

ParameterTypeDescription
switch *string

backup_firmware

Download the D-Link's running firmware image (~740 KB) to the state directory. Read-only; the USRobotics has none.

ParameterTypeDescription
switch *string

list_files

Saved configuration/firmware files (id, size, time; never content), newest first.

ParameterTypeDescription
switch