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.
npx skills add Casys-AI/mcp-erpnext --skill erpnext-code-modegit clone --depth 1 https://github.com/Casys-AI/mcp-erpnextWrote 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.
[](https://agentmods.dev/skills/casys-ai/mcp-erpnext/erpnext-code-mode)<a href="https://agentmods.dev/skills/casys-ai/mcp-erpnext/erpnext-code-mode"><img src="https://agentmods.dev/badge/skills/casys-ai/mcp-erpnext/erpnext-code-mode/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.
<a href="https://agentmods.dev/skills/casys-ai/mcp-erpnext/erpnext-code-mode"><img src="https://agentmods.dev/badge/skills/casys-ai/mcp-erpnext/erpnext-code-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.04334 |
| Opus 5.5 | $0.00014 | $0.01734 |
| Sonnet 5.5 | $0.00007 | $0.00867 |
| Haiku 4.5 | $0.00003 | $0.00433 |
Grade A, and why
erpnext-code-mode 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.
How it starts
The opening of the file, as written. The whole thing — 314 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Use the ERPNext connection's execute tool. Its code argument is the body of
an asynchronous JavaScript function. Inside that function, erp.catalog lists
the currently available business operations, with their names, descriptions and
input schemas. Use it when choosing an operation or checking accepted arguments.
The catalogue reflects this server's enabled categories and exclusions.
For example, find the sales invoice operations and their parameters:
return erp.catalog.filter((op) => op.name.includes("sales_invoice"));
Use await erp.call(name, args) to work with the connected ERP. To open the
business result for the user, return the original result. For a calculation,
return the computed value and its units. A programme may make several reads. Use
the document's exact ERPNext identifier for a detail request. If the server
reports an ambiguous name, ask the user to choose from the candidates.
List the first page of overdue sales invoices:
return await erp.call("erpnext_sales_invoice_list", {
status: "Overdue",
limit: 20,
});
Open an invoice, substituting the identifier supplied by the user or a preceding read:
return await erp.call("erpnext_sales_invoice_get", { name: "SINV-00042" });
To show several existing business views in one response, select each original
result with erp.panel(result, title) in the requested display order. A
programme can use the output of an operation without displaying it. Return a
short summary after selecting the panels. For example, show a customer's overdue
list alongside the invoice whose exact name the user supplied in
execute.params.invoice:
const rows = await erp.call("erpnext_sales_invoice_list", {
status: "Overdue",
customer: erp.params.customer,
limit: 20,
});
const invoice = await erp.call("erpnext_sales_invoice_get", {
name: erp.params.invoice,
});
erp.panel(rows, "Overdue invoices");
erp.panel(invoice, "Invoice details");
return { invoice: erp.params.invoice };
If the user wants the invoice detail to follow selections in the list, add this
line after both erp.panel calls and before the return:
erp.sync({
from: rows,
event: "invoice.selected",
to: invoice,
action: "invoice.focus",
});
The source is a Sales Invoice list from erpnext_sales_invoice_list or
erpnext_doc_list with doctype: "Sales Invoice" and the name field. The
target is an original result from erpnext_sales_invoice_get. Use the exact
requested invoice as the initial detail, or the first row when the user asks to
start with the first invoice. Clicking a row opens that invoice immediately in
the linked panel. Cmd/Ctrl+click, flipping the header mode switch to Select,
or long press toggles that invoice in the conversation context. Dragging a
rectangle adds the rows it covers on the visible page. The basket preserves
records the user has already joined from other pages. When answering questions
about pinned records, use the host's current context and respect any reported
limit on the number of records it contains. Show just the list if there is no
invoice to open.
To let the user recalculate gross margin for a month in the Sales Order revenue
series, link the cards as shown below. Clicking a monthly bar updates the margin
immediately for that month. Cmd/Ctrl+click, flipping the header mode switch to
Select, or long press adds or removes that month from context, even while the
margin shows a different month. Drag a rectangle over several bars to add those
months together. Start the margin at the current month to date and keep any
requested company or valuation options in the original margin call.
const revenue = await erp.call("erpnext_kpi_revenue", {});
const margin = await erp.call("erpnext_kpi_gross_margin", {
...revenue.sparklinePeriods.at(-1),
});
erp.panel(revenue, "Sales Order revenue");
erp.panel(margin, "Estimated gross margin");
erp.sync({
from: revenue,
event: "kpi.period.selected",
to: margin,
action: "kpi.period.apply",
});
return { shown: 2 };
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.
- 4d ago First seen · 314 lines · 35 tokens per session scan A 3a5190770552
erpnext-code-mode is a skill published in the GitHub repository Casys-AI/mcp-erpnext (126 stars, last pushed 5d ago), licensed MIT. It adds 35 tokens to every session and 4,334 once invoked, about $0.0001 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-12-02.
erpnext-code-mode compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| erpnext-code-modeCasys-AI/mcp-erpnext | Skill | 126 | 5d ago | MIT | A | 35 | Claude Code, Codex |
| frappe-core-apiImpertio-Studio/Frappe_Claude_Skill_Package | Skill | 214 | 2mo ago | none | A | 99 | Claude Code, Codex |
| frappe-errors-apiImpertio-Studio/Frappe_Claude_Skill_Package | Skill | 214 | 2mo ago | none | A | 196 | Claude Code, Codex |
| frappe-errors-hooksImpertio-Studio/Frappe_Claude_Skill_Package | Skill | 214 | 2mo ago | none | A | 137 | Claude Code, Codex |
| frappe-impl-jinjaImpertio-Studio/Frappe_Claude_Skill_Package | Skill | 214 | 2mo ago | none | A | 122 | Claude Code, Codex |
| frappe-impl-whitelistedImpertio-Studio/Frappe_Claude_Skill_Package | Skill | 214 | 2mo ago | none | A | 130 | Claude Code, Codex |
| frappe-impl-workflowImpertio-Studio/Frappe_Claude_Skill_Package | Skill | 214 | 2mo ago | none | A | 111 | Claude Code, Codex |