How ciscodevnet/cisco-pyats-mcp-network-automation works
Cisco pyATS MCP Server lets an AI assistant invoke guarded network operations in a pyATS testbed. The workflow runs from an engineer’s natural-language request through an MCP tool, runtime settings and command guardrails, then a short-lived device connection and returned output. The graph preserves the distinct read-command, health-check, configuration-backup, and guarded-configuration capabilities. Source excerpts show the server’s calls and device wrapper; other product capabilities and client/device relationships are included where the README documents them.
Main entry points: server.py MCP server · devices.py Device access · config.py Runtime settings · validation.py Command validation
Components 13
MCP interface
- MCP server
mcp_server/server.py
Settings and guardrails
- Runtime settings
mcp_server/config.py - Command validation
mcp_server/validation.py
Network operations
- Device access
mcp_server/devices.py - List devices
mcp_server/server.py - Show command
mcp_server/server.py - Health check
mcp_server/server.py - Config backup
mcp_server/server.py - Apply config
mcp_server/server.py - pyATS testbed
testbed
Other components
- Engineer
- AI assistant
- Cisco devices
Connections 19
- Engineer → AI assistant: requests operation
README.md - AI assistant → MCP server: calls over MCP
README.md - MCP server → Runtime settings: loads settings
mcp_server/server.py - MCP server → List devices: registers tool
mcp_server/server.py - MCP server → Show command: registers tool
mcp_server/server.py - MCP server → Health check: registers tool
mcp_server/server.py - MCP server → Config backup: registers tool
mcp_server/server.py - MCP server → Apply config: registers tool
mcp_server/server.py - List devices → Device access: lists allowed devices
mcp_server/server.py - Show command → Command validation: validates command
mcp_server/server.py - Apply config → Command validation: validates config
mcp_server/server.py - Show command → Device access: opens session
mcp_server/server.py - Health check → Device access: opens session
mcp_server/server.py - Config backup → Device access: opens session
mcp_server/server.py - Apply config → Device access: opens session
mcp_server/server.py - Device access → Runtime settings: uses SSH and access settings
mcp_server/devices.py - Device access → pyATS testbed: loads device definitions
README.md - Device access → Cisco devices: connects over SSH
README.md - MCP server → AI assistant: returns device output
README.md