About automateyournetwork/pyATS_MCP
automateyournetwork/pyATS_MCP is an MCP server published by automateyournetwork in the Developer Tools category: an MCP Server for pyATS (experimental). Conduid read 34 tools from its source: pyats_clean_device, pyats_configure_device, pyats_configure_devices_multi, pyats_configure_with_diff, pyats_device_health, pyats_diff_learned_snapshots and 28 more. No package is published for it, so it installs from a source checkout.
The repository has 91 stars and 34 forks, is licensed MIT, and its last commit was on 29 Nov 2026. Conduid has no tagged release on record for it. It passes 3 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned, No dynamic code execution and Scoped permissions. Its topics include devtools.
Install
git clone https://github.com/automateyournetwork/pyATS_MCPTools (34)
pyats_clean_deviceGenie Clean (Kleenex), restricted to non-destructive `connect`+`execute_command` stages; `dry_run=True` by default| Parameter | Type | Description |
|---|---|---|
| commands * | array | List of commands to run via the clean execute_command stage (e.g. ["show version", "show boot"]). |
| confirm | string | Required literal string when dry_run=False: "I UNDERSTAND THIS IS A REAL DEVICE OPERATION" |
| device_name * | string | Exact device name. |
| dry_run | boolean | If True (default), only generate and return the clean.yaml — no device contact. |
pyats_configure_deviceApply configuration commands with safety guardrails| Parameter | Type | Description |
|---|---|---|
| config_commands * | any | List of strings OR a multiline string. List: ["interface Gi0/0", " description WAN", " no shutdown"] String: "interface Gi0/0\\n description WAN\\n no shutdown" |
| device_name * | string | Exact device name. |
pyats_configure_devices_multiApply configuration across multiple devices concurrently (thread pool)| Parameter | Type | Description |
|---|---|---|
| config_commands * | any | Config payload applied identically to all devices. Same format rules as pyats_configure_device. |
| device_names * | array | List of exact device names. |
pyats_configure_with_diffApply config and return a before/after diff| Parameter | Type | Description |
|---|---|---|
| config_commands * | any | Same format as pyats_configure_device. |
| device_name * | string | Exact device name. |
| save_rollback_snapshot | boolean | Save a snapshot for rollback (default True). |
pyats_device_healthSnapshot CPU, memory, interfaces, and routing state| Parameter | Type | Description |
|---|---|---|
| device_name * | string | Exact device name (use pyats_search_devices if unsure). |
pyats_diff_learned_snapshotsDiff two snapshots saved by `pyats_learn_feature`| Parameter | Type | Description |
|---|---|---|
| device_name * | string | Exact device name. |
| feature * | string | Genie feature name — must match what was learned. |
| label_a * | string | Label of the "before" snapshot. |
| label_b * | string | Label of the "after" snapshot. |
pyats_find_interface_by_ipFind which interface owns a given IP address| Parameter | Type | Description |
|---|---|---|
| device_names | array | Optional list of device names to search. Omit to search all devices. |
| ip_address * | string | IP address or prefix to search for (partial match OK). |
pyats_get_neighborsRetrieve CDP/LLDP neighbors| Parameter | Type | Description |
|---|---|---|
| device_name * | string | Exact device name. |
pyats_get_operation_logRetrieve the in-memory operation log| Parameter | Type | Description |
|---|---|---|
| device_filter | string | Return only entries for this device name. Omit or pass null to return entries for all devices. |
| limit | integer | Maximum entries to return (default 50, hard cap 500). |
pyats_learn_featureGenie `device.learn()` for a whole feature (interface, ospf, bgp, …), optionally saved as a named snapshot| Parameter | Type | Description |
|---|---|---|
| device_name * | string | Exact device name. |
| feature * | string | Genie feature name (e.g. "interface", "ospf", "bgp"). |
| snapshot_label | string | If given, store this learn result under this label for this device+feature so it can be diffed later. Labels are process-global and overwrite any prior snapshot with the same device+feature+label. |
pyats_list_devicesList all devices in the testbedpyats_pcall_configure_devicesSame, but one OS process per device| Parameter | Type | Description |
|---|---|---|
| config_commands * | any | Config payload applied identically to all devices. Same format rules as pyats_configure_device. |
| device_names * | array | List of exact device names. |
pyats_pcall_show_commandSame, but one OS process per device (`pyats.async_.pcall`) instead of a shared thread pool| Parameter | Type | Description |
|---|---|---|
| command * | string | Show command to run on every device (same rules as pyats_run_show_command — must start with 'show'). |
| device_names * | array | List of exact device names. |
pyats_ping_from_network_deviceExecute a ping from a network device| Parameter | Type | Description |
|---|---|---|
| command * | string | Ping command string, e.g. 'ping 1.1.1.1' or 'ping 1.1.1.1 repeat 100 source Loopback0'. |
| device_name * | string | Exact device name. |
pyats_rest_requestGeneric REST/RESTCONF/NX-API call via pyATS's `rest.connector` (a separate connection type from CLI/SSH)| Parameter | Type | Description |
|---|---|---|
| api_url * | string | Path portion of the URL, e.g. "/restconf/data/ietf-interfaces:interfaces". |
| content_type | string | "json" or "xml" (defaults to the connector's default). |
| device_name * | string | Exact device name (must have a 'rest' connection block). |
| headers | object | Extra HTTP headers as a dict. |
| method * | string | One of GET, POST, PUT, PATCH, DELETE. |
| payload | string | JSON/XML body string for POST/PUT/PATCH (ignored for GET/DELETE). |
| timeout | integer | Request timeout in seconds (default 30). |
pyats_rollback_configRoll back to the last saved configuration snapshot| Parameter | Type | Description |
|---|---|---|
| device_name * | string | Exact device name to roll back. |
pyats_run_blitzRun a declarative pyATS Blitz YAML test| Parameter | Type | Description |
|---|---|---|
| actions_yaml * | string | YAML text for Blitz's test_sections — a list of named steps, each a list of actions. Example: - step1: - execute: device: R1 command: show version |
| device_names * | array | Devices this blitz trigger runs against (the trigger's top-level 'devices:' list). |
pyats_run_dynamic_testExecute a sandboxed pyATS AEtest script| Parameter | Type | Description |
|---|---|---|
| test_script_content * | string | Complete pyATS AEtest script as a string. Must contain 'TEST_DATA = {...}'. |
pyats_run_linux_commandRun a command on a Linux host| Parameter | Type | Description |
|---|---|---|
| command * | string | Shell command. Pipes and redirects are wrapped in 'sh -c "..."' automatically. |
| device_name * | string | Exact device name. |
pyats_run_robotRun a Robot Framework suite using the `pyats.robot`/`genie.libs.robot` keyword libraries| Parameter | Type | Description |
|---|---|---|
| robot_script_content * | string | Complete .robot suite text (Settings + Test Cases sections). |
pyats_run_show_commandRun a validated show command; returns parsed JSON or raw output| Parameter | Type | Description |
|---|---|---|
| command * | string | Must start with 'show'. No pipes, redirects, or dangerous keywords (reload, delete, etc.). |
| device_name * | string | Exact device name (use pyats_search_devices if unsure). |
| retries | integer | Total attempts on failure/timeout (default 1 = no retry). |
| timeout | integer | Seconds to wait per attempt (default 60). |
pyats_run_show_command_multiRun a show command across multiple devices concurrently (thread pool)| Parameter | Type | Description |
|---|---|---|
| command * | string | Show command to run on every device (same rules as pyats_run_show_command — must start with 'show'). |
| device_names * | array | List of exact device names. |
pyats_search_devicesFuzzy-search devices by name or alias| Parameter | Type | Description |
|---|---|---|
| min_score | number | Minimum score threshold (0.0–1.0). Default 0.4. Lower = more permissive; raise to 0.7+ for stricter matching. |
| query * | string | Partial or approximate device name. |
pyats_show_loggingRetrieve device system logs via `show logging`| Parameter | Type | Description |
|---|---|---|
| device_name * | string | Exact device name. |
pyats_show_running_configRetrieve the full running configuration (raw text)| Parameter | Type | Description |
|---|---|---|
| device_name * | string | Exact device name. |
pyats_testbed_activateSwitch every other tool to a dynamic testbed (or back to `static`)| Parameter | Type | Description |
|---|---|---|
| name * | string |
pyats_testbed_buildBuild an in-memory testbed from Itential, NetBox, Nautobot, Catalyst Center, csv/json/yaml/xml or any REST API| Parameter | Type | Description |
|---|---|---|
| activate | boolean | |
| credentials | object | |
| data | any | |
| default_os | string | |
| default_port | integer | |
| default_protocol | string | |
| dry_run | boolean | |
| file_path | string | |
| filters | object | |
| format | string | |
| inventory | any | |
| mapping | object | |
| max_devices | integer | |
| merge_with | string | |
| name * | string | |
| os_map | object | |
| preset | string | |
| profile | string | |
| records_path | string | |
| rest | object | |
| source | string | |
| tags | array |
pyats_testbed_deleteInspect and manage in-memory testbeds| Parameter | Type | Description |
|---|---|---|
| name * | string |
pyats_testbed_getInspect and manage in-memory testbeds| Parameter | Type | Description |
|---|---|---|
| as_yaml | boolean | |
| device | string | |
| limit | integer | |
| name * | string | |
| offset | integer |
pyats_testbed_listInspect and manage in-memory testbedspyats_testbed_source_inventoriesList Itential Inventory Manager inventories with node counts| Parameter | Type | Description |
|---|---|---|
| profile | string | Optional named Itential Platform (reads ITENTIAL_<PROFILE>_URL etc.). Omit to use the default PLATFORM_URL. |
pyats_testbed_sourcesWhich sources are configured on the server, allow-lists, active testbedpyats_testbed_validatepyATS schema check, credential env check, optional TCP reachability| Parameter | Type | Description |
|---|---|---|
| check_reachability | boolean | |
| devices | array | |
| name * | string |
pyats_xpresso_requestAuthenticated call to Cisco XPresso's REST API v2 (test requests, jobs, testbeds, images, …)| Parameter | Type | Description |
|---|---|---|
| method * | string | One of GET, POST, PUT, PATCH, DELETE. |
| params | object | Query-string params dict — XPresso list/search endpoints use offset/limit pagination, e.g. {"offset": 50, "limit": 100}. |
| path * | string | API path, e.g. "/api/v2/testbeds" or "/api/v2/requests". |
| payload | object | JSON body dict for POST/PUT/PATCH (ignored for GET/DELETE). |
| timeout | integer | Request timeout in seconds (default 30). |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.5K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- !No dynamic code executionScanned 7 source files and found 1 call to eval or shell execution, in pyats_mcp_server.py:2621. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- Streamable HTTPpyats_mcp_server.py:3744
- Starts other programs
- 4 callspyats_mcp_server.py:1010, pyats_mcp_server.py:2474, pyats_mcp_server.py:2764
- Outbound network calls
- 9 callspyats_mcp_server.py:3041, pyats_testbed_builder.py:645, pyats_testbed_builder.py:647
- Writes or deletes files
- 12 callspyats_mcp_server.py:1000, pyats_mcp_server.py:1001, pyats_mcp_server.py:1041
- Lockfile
- None in the repository
Pattern matches on the source text of 7 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 2.5K words, fetched a month ago. The original in the repository is authoritative.
Read full README