Tools
Everything mcp-tracer exposes to your AI client: tools, resources and prompts.
add_deviceresourceAdd a device. Aliases resolve to PTBuilder keys (4331 → ISR4331, WRT300N → Linksys-WRT300N, PC → PC-PT). Without x/y the device is placed automatically. The result lists its ports.
add_linkresourceConnect two ports with a cable. A port takes one link. Without cable, the server infers it.
build_topologyresourceReplace the whole topology in one atomic call, with the same rules as the four tools above. If any item is invalid nothing changes, and the error names the item.
configure_deviceresourceAppend IOS commands to a router, switch or multilayer switch. They run in global configuration mode; enable, configure terminal, end and write memory lines are dropped and reported.
configure_pcresourceSet a host's IPv4 configuration on FastEthernet0, static or DHCP. Supported on PC-PT and Server-PT; Laptop-PT and Printer-PT are accepted but unverified. ip accepts 192.168.1.10/24, mask accepts 255.255.255.0 or /24.
dhcp_labresourceA 2911 gateway, a 2960 switch and DHCP-client PCs
export_scriptresourceWrite the PTBuilder script to a .js or .txt file (adds .js when the name has no extension). Same validation as generatescript.
generate_scriptresourceReturn the PTBuilder script, plus a second text block with any warnings. Validation errors block it.
get_topologyresourceReturn the topology as JSON, with the positions and cables that will be emitted.
load_topologyresourceReplace the topology with one from a .json file written by savetopology (a bare gettopology object also works). Fully validated before anything changes. 5 MB maximum.
nat_labresourceInside PCs behind a 2911 edge router, an ISP router and a web server
ospf_labresourceSingle-area OSPF between 2911 routers, one PC LAN per router
remove_deviceresourceRemove a device with its links, IOS commands and IP configuration.
remove_linkresourceRemove the link that uses a port.
rename_deviceresourceRename a device. Its links and configuration follow; IOS hostname lines are not changed.
reset_topologyresourceDelete every device, link and configuration.
save_topologyresourceSave the topology to a .json file that loadtopology reads back. Adds .json when the name has no extension and creates missing folders.
validate_configresourceReport errors and warnings, each with a stable code and a fix.
vlan_labresourceA 2960 switch with PCs per VLAN and optional inter-VLAN routing