NetLicensing-MCP AGENTS.md

NetLicensing-MCP AGENTS.md is an instructions file for Codex, OpenCode from Labs64/NetLicensing-MCP. It costs 2,146 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for developing NetLicensing-MCP, a Python server that exposes the NetLicensing web API as tools for AI applications. MCP is a standard way for an AI client to call external tools.

In plain words
What is it for?
Use them when installing the development environment, running the server locally over standard input or HTTP, inspecting it, running tests, or matching continuous-integration checks.
Why use it?
They provide the exact setup, run, test, lint, formatting, type-checking, and security commands expected by the project.

Instructions file for CodexOpenCode

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/labs64/netlicensing-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/Labs64/NetLicensing-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 NetLicensing-MCP AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/labs64/netlicensing-mcp/agents-md.svg)](https://agentmods.dev/instructions/labs64/netlicensing-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/labs64/netlicensing-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/labs64/netlicensing-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,146 This file is loaded in full into every session.
When invoked 2,146 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 $0.02146 $0.02146
Opus 5 $0.01073 $0.01073
Sonnet 5 $0.00429 $0.00429
Haiku 4.5 $0.00215 $0.00215

Measured 5d ago against content hash ebbe527a6031, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

NetLicensing-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 5d 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 · 97 lines

How it starts

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

AGENTS.md

This file provides guidance to AI Agents when working with code in this repository.

Overview

netlicensing-mcp is a FastMCP server that exposes the Labs64 NetLicensing REST API as MCP tools and prompts. It runs over stdio (Claude Desktop / Copilot) or streamable HTTP (remote deployments). Python ≥ 3.12, async throughout.

Development commands

# Install dev environment (editable + dev extras)
pip install -e ".[dev]"
pip install hatch hatch-vcs

# Run the server locally
python -m netlicensing_mcp.server          # stdio (default)
python -m netlicensing_mcp.server http     # HTTP on $MCP_HOST:$MCP_PORT (127.0.0.1:8000)
mcp dev src/netlicensing_mcp/server.py     # MCP Inspector UI at http://localhost:5173

# Tests (pyproject sets asyncio_mode=auto and turns on coverage automatically)
pytest tests/ -v
pytest tests/test_tools.py::test_name -v   # run a single test
pytest tests/ -v --no-cov                  # disable coverage for faster iteration

# Lint / format / type-check (these are the exact CI checks)
ruff check .
ruff format --check .       # use `ruff format .` to apply
mypy src/

# Security
pip-audit --ignore-vuln CVE-2026-4539 --ignore-vuln CVE-2026-3219

# Build & Docker
hatch build --target wheel  # version comes from git tag via hatch-vcs
docker build -t ghcr.io/labs64/netlicensing-mcp:latest .

CI matrix runs tests on Python 3.12, 3.13, 3.14. Lint/format/mypy run on 3.14 only.

Architecture

Three layers, top-down:

  1. server.py — single FastMCP entry point. Each NetLicensing operation is a thin @mcp.tool() wrapper named netlicensing_<action>_<entity> (e.g. netlicensing_create_license). The wrapper's only jobs are: (a) translate empty strings / None defaults into "leave unchanged" semantics, (b) call the matching function in tools/<entity>.py, (c) wrap NetLicensingError into a JSON error blob via _error(). Tools return JSON strings, not dicts — _json() serializes the result and applies the redaction layer. Token create operations additionally call tag_one_time_display() before _json(); token read operations use _json_token_read() which applies redact_token_read() to also mask APIKEY number and SHOP shopURL fields.

Read the full file on GitHub · 97 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. 5d ago First seen · 97 lines · 2,146 tokens per session scan A ebbe527a6031

Subscribe to this mod's changes

NetLicensing-MCP AGENTS.md is an instructions file published in the GitHub repository Labs64/NetLicensing-MCP (5 stars, last pushed 2d ago), licensed Apache-2.0. It adds 2,146 tokens to every session, about $0.0107 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-31.