beel-mcp: Instructions file for Codex

AGENTS.md

beel-mcp AGENTS.md is an instructions file for Codex, OpenCode from beel-es/beel-mcp. It costs 1,447 tokens per session, scanned A, original, MIT.

Projektregeln für einen MCP-Server zur spanischen elektronischen Rechnungsstellung nach VeriFactu. Der Server stellt Funktionen bereit, mit denen KI-Assistenten Rechnungs- und Steuerdaten verarbeiten können.

In plain words
What is it for?
Zum Installieren, Testen, Prüfen, Bauen und Starten des Servers. Die Anleitung hilft außerdem dabei, API-Operationen gezielt als Werkzeuge bereitzustellen und nur benötigte Berechtigungen zu vergeben.
Why use it?
Sie erklären, wo die API-Beschreibung, Berechtigungen, Prüfungen und Tests liegen. Das verhindert, dass Änderungen den öffentlichen Vertrag oder steuerliche Prüfregeln verletzen.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/beel-es/beel-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/beel-es/beel-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,447 This file is loaded in full into every session.
When invoked 1,447 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.01447 $0.01447
Opus 5.5 $0.00579 $0.00579
Sonnet 5.5 $0.00289 $0.00289
Haiku 4.5 $0.00145 $0.00145

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

Security

Grade A, and why

beel-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 1mo 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 · 91 lines

How it starts

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

AGENTS.md — working on this repository with a coding agent

This is the BeeL MCP server: Spanish e-invoicing (VeriFactu) tools for LLM agents, derived from the public OpenAPI contract. Read README.md for what it does and CONTRIBUTING.md for the rules; this file is the short version an agent needs before touching code.

Commands

npm ci
npm test            # vitest — must stay green
npm run typecheck   # tsc for both the Node and the Worker configs
npm run lint        # eslint
npm run format      # prettier --write (CI runs format:check)
npm run build       # tsup + the MCP App bundle (dist/mcpapp/invoice-pdf.html)
npm run smoke       # boots dist/index.js and asserts tools/list
npm run tools:list  # every tool the server exposes, with its scopes

Where things live

  • src/spec/ — loads the OpenAPI contract (openapi/public-api.yaml) and derives the operation manifest, and the compact schema declarations beel_schema_get serves (declarations.ts). The contract is synced from the API, never edited by hand.
  • src/policy/ — which operations become tools (tool-policy.ts) and which scopes they need (scopes.ts). Least privilege: never add a scope no tool uses.
  • src/guardrails/ — the fiscal invariants checked before a request leaves (validate.ts), the API usage guides as markdown (rules/), and the error catalogue (catalog.ts).
  • src/rules/ — the fiscal rules catalogue, read from docs.beel.es/api/rules.json. snapshot.json is only its offline fallback, written by npm run sync:rules; never edit it, and never re-type a rule anywhere else.
  • src/tools/ — API tools, docs tools, rules tools, the schema tool, workflow tools; src/prompts/ — the workflow prompts.
  • src/server.ts — the MCP server (stdio and remote share it); src/index.ts — the stdio entrypoint.
  • src/cf/ — the Cloudflare Worker: OAuth bridge (beel-handler.ts), token exchange, PDF relay. /mcp is a protected resource: every request without a token, initialize included, is answered by the OAuth provider with a 401 and its challenge. Deployment notes in DEPLOY.md.
  • src/mcpapp/ — the invoice viewer MCP App and its CSP contract.
  • tests/ — vitest; one file per module. A behaviour change without a test is not done.

Read the full file on GitHub · 91 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. 1mo ago Changed · +29 lines · +477 tokens per session b92643095bc4
  2. 1mo ago Changed · +1 lines · +59 tokens per session b10d9787f3a9
  3. 1mo ago Changed · +31 tokens per session 1f502d53a065
  4. 2mo ago First seen · 61 lines · 880 tokens per session scan A 32d36caa6903

Subscribe to this mod's changes

beel-mcp AGENTS.md is an instructions file published in the GitHub repository beel-es/beel-mcp (2 stars, last pushed 2d ago), licensed MIT. It adds 1,447 tokens to every session, about $0.0058 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-31.

Related

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

beel-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
beel-mcp AGENTS.mdbeel-es/beel-mcpInstructions file22d agoMITA1,447Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
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