Project management tools let you persist topology plans to disk and reload them later — without re-running the planner. A singleDocumentation 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 call writes four artifact types to a named project folder: the TopologyPlan as JSON, a PTBuilder JavaScript scaffold, a full build script that includes IOS config calls, and one IOS CLI config file per device. These files can be committed to version control, shared across machines, or fed back into the pipeline via pt_load_project to redeploy a topology, regenerate scripts, or apply post-deploy operations like ACLs and NAT.
pt_export
Exports aTopologyPlan and all derived artifacts to a named project folder on disk.
Parameters
The full
TopologyPlan as a JSON string — the output of pt_plan_topology, pt_full_build, or any other tool that returns a plan. The string is validated against the TopologyPlan Pydantic model before writing.Name for the project subfolder. Spaces are replaced with underscores. The folder is created under
output_dir if it does not exist.Base directory for project output. Defaults to
"projects" relative to the working directory when the MCP server was started. The directory is created recursively if it does not exist.What gets saved
After export, the project folder contains:The complete
TopologyPlan serialized as JSON with 2-space indentation. This is the canonical plan file — pass its content to pt_load_project or any generation tool.A PTBuilder scaffold script containing
addDevice, addModule, and addLink calls. This script creates the physical topology layout in Packet Tracer but does not configure any IOS settings. Paste it into PT’s Extensions → Scripting dialog.The complete build script: all PTBuilder layout calls plus all IOS configuration calls (
configureIosDevice, configurePcIp). This is the script that pt_deploy and pt_live_deploy use.One IOS CLI configuration file per router and switch in the topology. For a plan with devices R1, R2, SW1, and SW2, the folder will contain
R1_config.txt, R2_config.txt, SW1_config.txt, and SW2_config.txt. Useful for manual configuration or audit purposes.Records project metadata:
project_name, created_at (ISO 8601 UTC timestamp), devices (count), links (count), and is_valid (boolean). This file is read by pt_list_projects to populate the project list.Output directory structure
For a four-router OSPF topology exported as"topologia_4routers_ospf":
Return value
A plain-text summary listing each written file:pt_list_projects
Lists all saved projects in a base directory. Each entry comes from themetadata.json file written by pt_export.
Parameters
Base directory to scan for project subdirectories. Must match the
output_dir used when the projects were created.Returns
A JSON array of project metadata objects. Each object includes:The sanitized project folder name.
ISO 8601 timestamp of when the project was exported.
Number of devices in the plan.
Number of links in the plan.
Whether the plan passed validation at export time.
metadata.json (e.g. created outside pt_export), only {"project_name": "..."} is returned for that entry.
If no projects are found, the tool returns the plain-text message "No hay proyectos guardados.".
pt_load_project
Loads a saved project and returns itsTopologyPlan as a JSON string. The returned string can be passed directly to pt_live_deploy, pt_generate_script, pt_generate_configs, pt_apply_acl, pt_apply_nat, or any other tool that accepts plan_json.
Parameters
Name of the project folder to load — the same name used when exporting. Must match an existing subdirectory under
output_dir.Base directory where the project was saved.
Returns
The fullTopologyPlan as a formatted JSON string (2-space indentation). If the project does not exist, a FileNotFoundError is raised.
Example workflow
Use Cases
- Version control — export plans after each design iteration and commit the
projects/folder to Git. Compareplan.jsondiffs to track topology changes over time. - Sharing plans — send the exported folder to a colleague; they can run
pt_load_projectand redeploy the identical topology on their own Packet Tracer instance. - CI/CD network testing — load a saved plan in a test pipeline, deploy it to PT, run connectivity checks, and tear it down — all via MCP tools without repeating the planning step.
- Post-deploy operations — export after planning, then load the plan later to apply ACLs or NAT rules to the live topology without regenerating the plan from scratch.
- Audit and documentation — the per-device
_config.txtfiles provide a human-readable record of every IOS command applied to every device in the topology.