How automateyournetwork/pyats_mcp works
pyATS MCP Server lets an MCP client invoke guarded network-automation tools against a configured or dynamically built pyATS testbed. The main workflow is client request → MCP tool execution → device or test-runner operation → structured result and audit entry. Dynamic inventory-to-testbed construction and asynchronous task polling are distinct supporting workflows. The README documents additional tool capabilities beyond the sampled implementation excerpts; those are represented at the server-module level without implying unsampled internal call paths.
Main entry points: pyats_mcp_server.py HTTP MCP Server · pyats_tasks.py Task Extension · pyats_testbed_builder.py Testbed Builder
Components 17
MCP Access
- HTTP MCP Server
pyats_mcp_server.py
Testbed Management
- Testbed Builder
pyats_testbed_builder.py - Testbed Registry
pyats_testbed_builder.py - Inventory Sources
pyats_testbed_builder.py - Active Testbed
pyats_mcp_server.py
Network Operations
- Device Discovery
pyats_mcp_server.py - Show And Health
pyats_mcp_server.py - Config And Learn
pyats_mcp_server.py - Fleet Commands
pyats_mcp_server.py - Tests And Clean
pyats_mcp_server.py - REST Device API
pyats_mcp_server.py - XPresso Requests
pyats_mcp_server.py
Task Management
- Task Extension
pyats_tasks.py - SQLite Task Store
pyats_tasks.py
Other components
- MCP Client
- Network Devices
- Inventory And APIs
Connections 23
- MCP Client → HTTP MCP Server: sends MCP requests
README.md - HTTP MCP Server → Task Extension: supports task polling
pyats_mcp_server.py - Task Extension → HTTP MCP Server: invokes tools
pyats_tasks.py - Task Extension → SQLite Task Store: persists task state
pyats_tasks.py - HTTP MCP Server → Testbed Builder: uses builder
pyats_mcp_server.py - Testbed Builder → Inventory Sources: fetches source records
README.md - HTTP MCP Server → Testbed Registry: manages dynamic testbeds
README.md - HTTP MCP Server → Active Testbed: uses active testbed
README.md - HTTP MCP Server → Device Discovery: offers discovery tools
README.md - HTTP MCP Server → Show And Health: offers show and health tools
README.md - HTTP MCP Server → Config And Learn: offers config and learn tools
README.md - HTTP MCP Server → Fleet Commands: offers fleet commands
README.md - HTTP MCP Server → Tests And Clean: offers test and clean tools
README.md - HTTP MCP Server → REST Device API: offers REST requests
README.md - HTTP MCP Server → XPresso Requests: offers XPresso requests
README.md - Device Discovery → Network Devices: queries devices
README.md - Show And Health → Network Devices: runs device commands
README.md - Config And Learn → Network Devices: changes and learns state
README.md - Fleet Commands → Network Devices: fans out commands
README.md - Tests And Clean → Network Devices: runs device tests
README.md - REST Device API → Network Devices: calls device API
README.md - Inventory Sources → Inventory And APIs: fetches inventory
README.md - XPresso Requests → Inventory And APIs: calls XPresso
README.md