Every artifact produced by the MCP server can be written to disk for later reuse, version control, or manual review before deployment.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Mats2208/MCP-Packet-Tracer/llms.txt
Use this file to discover all available pages before exploring further.
pt_export serializes the full TopologyPlan as JSON, emits PTBuilder JavaScript scripts that can recreate the topology, and writes per-device IOS CLI configuration blocks as individual text files — all in one call. Projects are saved under a named directory and can be listed and reloaded at any time with pt_list_projects and pt_load_project.
What pt_export Saves
pt_export writes the following files under projects/{project_name}/:
| File | Description |
|---|---|
plan.json | The full TopologyPlan object serialized as JSON — devices, links, IPs, routes, DHCP pools, modules, and validation results |
topology.js | PTBuilder JavaScript script (addDevice, addModule, addLink calls only) — places devices and cables without IOS config |
full_build.js | Complete script including all configureIosDevice and configurePcIp calls — everything needed to recreate the topology from scratch |
{Device}_config.txt | Per-device IOS CLI config block — one file per router (e.g., R1_config.txt, R2_config.txt) |
metadata.json | Project metadata: name, creation timestamp, device count, link count, validity flag |
Output Directory Structure
Example plan.json (excerpt)
Example topology.js (excerpt)
Example R1_config.txt
Project Management
Listing Projects
pt_list_projects reads the projects/ directory and returns metadata for every saved project:
Loading a Project
pt_load_project reads plan.json from the named project directory and returns the full TopologyPlan object, ready to pass to any downstream tool:
pt_generate_script, pt_generate_configs, pt_live_deploy, or any other tool that accepts a TopologyPlan.
Use Cases
Version Control
Commit
plan.json and *_config.txt files to Git alongside your network diagrams
for full change tracking and rollback.Manual Review
Inspect
full_build.js and config files before deploying to catch any issues
you want to fix manually in IOS before pushing to the live topology.Reuse Across Sessions
Save a validated plan today, load it in a new session, and redeploy or modify
it without re-running the full planning pipeline.
Sharing
Share
topology.js with colleagues who can paste it directly into their own
Packet Tracer instance — no MCP server required on their end.