cml-mcp: Instructions file for Codex

AGENTS.md

cml-mcp AGENTS.md is an instructions file for Codex, OpenCode from xorrkaz/cml-mcp. It costs 5,651 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.

This is xorrkaz/cml-mcp's own configuration. It tells Codex and OpenCode how to work on cml-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cml-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xorrkaz/cml-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/xorrkaz/cml-mcp/main/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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cml-mcp AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,651 This file is loaded in full into every session.
When invoked 5,651 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.05651 $0.05651
Opus 5.5 $0.02260 $0.02260
Sonnet 5.5 $0.01130 $0.01130
Haiku 4.5 $0.00565 $0.00565

Measured 4d ago against content hash 29ecacedcb64, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 4d 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 · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 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 · 215 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. 4d ago Changed · +2 lines · +273 tokens per session 29ecacedcb64
  2. 1mo ago Changed · +11 lines · +497 tokens per session cc8707dfb12f
  3. 2mo 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 (78 stars, last pushed 4d ago), licensed BSD-2-Clause. It adds 5,651 tokens to every session, about $0.0226 per session on Opus 5.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.

Related

cml-mcp AGENTS.md compared with instructions from other repositories

cml-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cml-mcp AGENTS.mdxorrkaz/cml-mcpInstructions file784d agoBSD-2-ClauseA5,651Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot