cml-mcp AGENTS.md

cml-mcp AGENTS.md is an instructions file for Codex, OpenCode from xorrkaz/cml-mcp. It costs 4,881 tokens per session, scanned A, original, BSD-2-Clause.

Project instructions for cml-mcp, a Python server that lets AI assistants operate Cisco Modeling Labs, a network simulation platform.

In plain words
What is it for?
Use them when developing or maintaining the server, its tool modules, input schemas, typed results, and compatibility with different AI assistants.
Why use it?
They explain the repository structure and design choices needed to make the server's tools understandable to many AI clients.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/xorrkaz/cml-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/xorrkaz/cml-mcp

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cml-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xorrkaz/cml-mcp/agents-md.svg)](https://agentmods.dev/instructions/xorrkaz/cml-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/xorrkaz/cml-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/xorrkaz/cml-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,881 This file is loaded in full into every session.
When invoked 4,881 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.04881 $0.04881
Opus 5 $0.02440 $0.02440
Sonnet 5 $0.00976 $0.00976
Haiku 4.5 $0.00488 $0.00488

Measured 6d ago against content hash db90e904551e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

cml-mcp AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 202 lines

How it starts

The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — CML MCP Server

Project Overview

cml-mcp is a Model Context Protocol (MCP) server that exposes Cisco Modeling Labs (CML) operations as AI-callable tools. It is written in Python (≥ 3.12) using FastMCP and the virl2_client library. The package is published to PyPI as cml-mcp and to Docker Hub as xorrkaz/cml-mcp.

Compatibility Goal

This server must work across the widest possible range of MCP clients and tool-calling LLMs — flagship hosted models (Claude, GPT-4-class, Gemini), AI Canvas, Cursor, Claude Desktop, LM Studio, and local / open-weight models (Gemma, Llama, Qwen, etc.). Optimize the public surface for the lowest-common-denominator client. In particular, assume the LLM may rely on the per-parameter inputSchema more than on the docstring — small models often parse structured schema cheaply and skim prose. Every design decision (flat primitive args, rich per-parameter constraints, Literal[...] over free strings, typed return shapes) traces back to this goal.

Repository Layout

src/cml_mcp/
  __main__.py          # CLI entry point (cml-mcp command)
  server.py            # FastMCP app wiring; registers all tool modules
  cml_client.py        # Async HTTP wrapper around the CML REST API
  settings.py          # Pydantic-settings config (env vars)
  types.py             # Shared response types used across tool modules
  cml/                 # Auto-generated Pydantic schemas from CML (Cisco license)
  tools/               # One module per functional area (see below)
    cache.py           # Thread-safe async session cache for HTTP mode
    dependencies.py    # Shared CML client dependency and elicitation helper
    middleware.py      # HTTP middleware and ACL enforcement
    model_helpers.py   # Lenient Pydantic construction (strips unknown fields, accepts JSON strings)
tests/
  conftest.py          # Fixtures; USE_MOCKS env var switches mock ↔ live mode
  mocks/               # Pre-recorded JSON responses for offline testing
  input_data/          # Sample topology YAML files
acl.yaml.example       # Reference for HTTP-mode ACL configuration
server.json            # MCP server registry metadata
Justfile               # Task runner (test, build, publish, clean, …)
pyproject.toml         # Build config; linters: black (140), isort, flake8

Read the full file on GitHub · 202 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 202 lines · 4,881 tokens per session scan A db90e904551e

Subscribe to this mod's changes

cml-mcp AGENTS.md is an instructions file published in the GitHub repository xorrkaz/cml-mcp (70 stars, last pushed 4d ago), licensed BSD-2-Clause. It adds 4,881 tokens to every session, about $0.0244 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.