mcp-erpnext: Instructions file for Codex

AGENTS.md

mcp-erpnext AGENTS.md is an instructions file for Codex, OpenCode from Casys-AI/mcp-erpnext. It costs 7,520 tokens per session, scanned A, original, MIT.

Repository instructions for AI coding agents working on an ERPNext integration project. ERPNext is business-management software, and the project provides an MCP server so agents can work with its records and workflows.

In plain words
What is it for?
Use it when developing, testing, or reviewing the Casys-AI ERPNext MCP server, including its TypeScript server and React-based interface.
Why use it?
It gives agents the project's structure, conventions, build commands, and testing guidance so their changes fit the codebase.

Instructions file for CodexOpenCode

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

This is Casys-AI/mcp-erpnext's own configuration. It tells Codex and OpenCode how to work on mcp-erpnext 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 mcp-erpnext configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Casys-AI/mcp-erpnext. 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/Casys-AI/mcp-erpnext/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Casys-AI/mcp-erpnext

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 mcp-erpnext AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/casys-ai/mcp-erpnext/agents-md/github.svg)](https://agentmods.dev/instructions/casys-ai/mcp-erpnext/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/casys-ai/mcp-erpnext/agents-md"><img src="https://agentmods.dev/badge/instructions/casys-ai/mcp-erpnext/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 mcp-erpnext AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/casys-ai/mcp-erpnext/agents-md"><img src="https://agentmods.dev/badge/instructions/casys-ai/mcp-erpnext/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,520 This file is loaded in full into every session.
When invoked 7,520 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.07520 $0.07520
Opus 5.5 $0.03008 $0.03008
Sonnet 5.5 $0.01504 $0.01504
Haiku 4.5 $0.00752 $0.00752

Measured 21d ago against content hash eb227dadd417, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-erpnext 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 21d 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 · 600 lines

How it starts

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

AGENTS.md

Repository guidelines for AI coding agents working on this codebase.

Project Overview

MCP server that lets AI agents operate an ERPNext/Frappe instance: documents, workflows, and interactive UI viewers. Published as @casys/mcp-erpnext on npm (Node bundle) and JSR (Deno).

Project Structure & Module Organization

  • Entry points: mod.ts (JSR public API), server.ts (MCP server — stdio + HTTP).
  • Config: deno.json is the primary config (version, tasks, import map). src/ui/package.json manages UI-only npm deps (Preact, Vite, Recharts).
  • Source code: all under src/. Server-side TypeScript uses Deno conventions; UI viewers use Vite/Preact with standard npm imports.
  • Tool categories: one file per category under src/tools/ (sales.ts, inventory.ts, accounting.ts, etc.). All registered in src/tools/mod.ts.
  • Tests: colocated with source files (Deno convention) — foo.ts / foo_test.ts. Not all modules have tests yet; the convention is the target, not a guarantee.
  • UI viewers: each viewer is a standalone Preact app under src/ui/{viewer-name}/, bundled to a single HTML file. Built output goes to src/ui/dist/ (gitignored but included in published artifacts via deno.json publish config).
  • Kanban: src/kanban/ contains types, definitions, field-utils, and per-DocType adapters in adapters/.
  • Cache: src/cache/ — pluggable Cache interface, MemoryCache/ NoopCache implementations, app-wide singleton.
  • Runtime adapters: src/runtime.ts (Deno) and src/runtime.node.ts (Node.js) — the build script swaps them.
  • Scripts: scripts/build-node.sh produces the npm bundle; scripts/release-guard.mjs is the publish guard (versions, tag ref, npm dist-tag, latest never moves backwards); scripts/align-next-dist-tag.mjs decides whether a stable release realigns next (an unreadable npm registry leaves next untouched); scripts/third-party-notices.mjs generates/checks THIRD_PARTY_NOTICES.txt. Their tests (scripts/*_test.ts) run with deno task test:scripts.
  • Docs: docs/ contains roadmap, known issues, and coverage notes.
  • Keep UI-only deps in src/ui/package.json; do not add them to deno.json. Conversely, server-side deps go in the deno.json import map.

Read the full file on GitHub · 600 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. 21d ago Changed · +61 lines · +1,062 tokens per session eb227dadd417
  2. 2mo ago First seen · 539 lines · 6,458 tokens per session scan A f114e4f0c160

Subscribe to this mod's changes

mcp-erpnext AGENTS.md is an instructions file published in the GitHub repository Casys-AI/mcp-erpnext (121 stars, last pushed 2d ago), licensed MIT. It adds 7,520 tokens to every session, about $0.0301 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

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

mcp-erpnext AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-erpnext AGENTS.mdCasys-AI/mcp-erpnextInstructions file1212d agoMITA7,520Codex, 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