XC

xorrkaz/cml-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

78 stars 44 forks Качество 86 Тренд 35BSD-2-Clause

xorrkaz / cml-mcp - кандидат на сервер MCP, импортированный из https://github.com/xorrkaz/cml-mcp.

Обзор

xorrkaz / cml-mcp - кандидат на сервер MCP, импортированный из https://github.com/xorrkaz/cml-mcp.

Обзор (машинный перевод)

mcp-name: io.github.xorrkaz/cml-mcp

Обзор

cml-mcp приносит силу помощников ИИ в вашу сетевую лабораторию! Этот инструмент позволяет взаимодействовать с Cisco Modeling Labs (CML) с использованием естественного языка с помощью приложений ИИ, таких как Claude Desktop, Claude Code и Cursor.

Вместо того, чтобы нажимать на меню или писать скрипты, просто скажите ИИ, что вы хотите сделать на простом английском языке — например, «Создать новую лабораторию с двумя маршрутизаторами и настроить OSPF» или «Покажите мне исполняющуюся конфигурацию на маршрутизаторе 1».

Это достигается с помощью протокола Model Context Protocol (MCP), стандартного способа взаимодействия приложений ИИ с внешними инструментами и службами. Подумайте об этом, как о предоставлении вашему помощнику ИИ прямого подключения к вашему CML-серверу.

Особенности

** Создать лабораторные топологии: ** Инструменты для создания новых лабораторий и определения топологий сети с нуля или с использованием полных определений топологии. ** Статус запроса:** Инструменты для получения подробной информации о состоянии для лабораторий, узлов, ссылок, аннотаций и самого сервера CML. ** Контрольные лаборатории и узлы: ** Инструменты для запуска, остановки и протирания лабораторий или отдельных узлов по мере необходимости.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Model Context Protocol (MCP) Server for Cisco Modeling Labs (CML)

mcp-name: io.github.xorrkaz/cml-mcp

Overview

cml-mcp brings the power of AI assistants to your network lab! This tool allows you to interact with Cisco Modeling Labs (CML) using natural language through AI applications like Claude Desktop, Claude Code, and Cursor.

Instead of clicking through menus or writing scripts, simply tell the AI what you want to do in plain English—like “Create a new lab with two routers and configure OSPF” or “Show me the running config on Router1”—and watch it happen automatically.

This is accomplished through the Model Context Protocol (MCP), a standard way for AI applications to interact with external tools and services. Think of it as giving your AI assistant a direct connection to your CML server.

Features

  • Create Lab Topologies: Tools to create new labs and define network topologies from scratch or using full topology definitions.
  • Query Status: Tools to retrieve detailed status information for labs, nodes, links, annotations, and the CML server itself.
  • Control Labs and Nodes: Tools to start, stop, and wipe labs or individual nodes as needed.
  • Manage CML Users and Groups: Tools to list, create, and delete local users and groups (requires admin privileges).
  • Visual Annotations: Add visual elements (text, rectangles, ellipses, lines) to lab topologies for documentation and organization.
  • Link Management: Connect nodes, configure link conditioning (bandwidth, latency, jitter, loss), and control link states.
  • Packet Capture: Start, stop, and retrieve packet captures (PCAP) from network links for traffic analysis with Wireshark or other tools.
  • Node Configuration: Configure node startup configurations and send CLI commands to running devices.
  • Run Commands on Devices: Using PyATS, MCP clients can execute commands on virtual devices within CML labs.
  • Console Log Access: Retrieve console logs from running nodes for troubleshooting and monitoring, with support for selecting specific serial console ports.
  • Modular Architecture: Tools are organized into logical modules (labs, nodes, links, pcap, etc.) for maintainability and extensibility.
  • Access Control Lists (HTTP Mode): When running in HTTP transport mode, you can restrict which users can access which tools using a YAML-based ACL configuration file.
  • Observability: Optional OpenTelemetry tracing exports spans for every tool call to any OTLP-compatible backend (Jaeger, Grafana Tempo, Datadog, etc.).
Открыть полный README на GitHub

Установка

uvx cml-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "Cisco Modeling Labs CML": { "type": "stdio", "command": "uvx", "args": [ "cml-mcp" ], "env": { "CML_URL": "{CML_URL}", "CML_USERNAME": "{CML_USERNAME}", "CML_PASSWORD": "{CML_PASSWORD}!", "CML_VERIFY_SSL": "true" } } } }