EOS MCP

v1.5.1
io.github.shigechika/eos-mcp Checked 1 day ago Published 15 hours ago

MCP server for Arista EOS device operations via eAPI

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

health_check

Report server version and configuration status (lightweight). Call this at session start (or after a tool-call timeout) to confirm the MCP is up, see which version is running, and verify the device inventory config loads. Lightweight: it only reads and parses config.ini — it does NOT open any eAPI/pyeapi connection to EOS devices, so it is safe to call against a large fleet without touching the network. Always returns the same keys: ``status`` (healthy / degraded / error), ``service``, ``version``, ``config_path`` (resolved config.ini path), ``device_count``…

ParameterTypeDescription
config_pathstring

get_router_list

List EOS devices registered in config, optionally filtered by tags.

ParameterTypeDescription
config_pathstring
tags

get_device_facts

Return structured device facts: hostname, model, serial, EOS version, uptime, memory.

ParameterTypeDescription
hostname *string
config_pathstring

get_device_facts_batch

Return device facts (model, serial, EOS version, uptime) for multiple devices in parallel.

ParameterTypeDescription
config_pathstring
hostnames
max_workersinteger
tags

get_version

Return EOS version string for a device (quick connectivity check).

ParameterTypeDescription
hostname *string
config_pathstring

get_config_diff

Show config diff on an EOS device. rollback_id=1 (default) → diff vs most recent rollback checkpoint. rollback_id=N → diff vs Nth rollback checkpoint. Note: diff vs startup-config requires EOS 4.30+; older versions fall back gracefully.

ParameterTypeDescription
hostname *string
config_pathstring
rollback_idinteger

list_config_sessions

List configure sessions and their state on an EOS device. Shows pending, pendingCommitTimer, and completed sessions. Useful for tracking in-flight push_config operations.

ParameterTypeDescription
hostname *string
config_pathstring

run_command

Run a single enable-mode command on an EOS device and return text output.

ParameterTypeDescription
command *string
hostname *string
config_pathstring

run_commands

Run multiple enable-mode commands on one EOS device and return labelled output.

ParameterTypeDescription
commands *array
hostname *string
config_pathstring

run_command_batch

Run an enable-mode command on multiple EOS devices in parallel. Specify targets via 'hostnames', 'tags', or both.

ParameterTypeDescription
command *string
config_pathstring
hostnames
max_workersinteger
tags

run_commands_batch

Run multiple enable-mode commands on multiple EOS devices in parallel. Specify targets via 'hostnames', 'tags', or both. Each device's output is labelled by hostname and command.

ParameterTypeDescription
commands *array
config_pathstring
hostnames
max_workersinteger
tags

get_config

Retrieve the running-config from an EOS device.

ParameterTypeDescription
hostname *string
config_pathstring

push_config

Push configuration to an EOS device via a named configure session. When dry_run=True (default) shows diffs and aborts — no changes applied. When dry_run=False commits with a rollback timer (default 300 seconds). Call confirm_config_session before the timer expires to finalize.

ParameterTypeDescription
config_lines *array
hostname *string
commit_timerinteger
config_pathstring
dry_runboolean
session_namestring

confirm_config_session

Confirm (finalize) a pending configure session commit timer on an EOS device.

ParameterTypeDescription
hostname *string
config_pathstring
session_namestring

abort_config_session

Abort a pending configure session on an EOS device.

ParameterTypeDescription
hostname *string
config_pathstring
session_namestring

collect_tech_support

Collect show tech-support from an EOS device (large output, 30+ seconds).

ParameterTypeDescription
hostname *string
config_pathstring

daily_brief

Run health checks on EOS devices and return a Markdown daily brief. Checks environment (temperature, cooling, fans, PSUs), errdisabled interfaces, device uptime, MLAG status, and recent syslog alerts (BGP/OSPF/STP/LACP/MLAG/ link-down) within the last 'since_hours' hours. Returns CRITICAL/WARNING/OK per device with a summary. Specify targets via 'hostnames', 'tags', or both (default: all configured devices).

ParameterTypeDescription
config_pathstring
hostnames
max_workersinteger
since_hoursinteger
tags