pop-mcp: Instructions file for Claude Code

CLAUDE.md

pop-mcp CLAUDE.md is an instructions file for Claude Code from getpopapi/pop-mcp. It costs 5,862 tokens per session, scanned A, original, MIT.

Project instructions for working on pop-mcp, a TypeScript MCP server that lets AI assistants use the POP Cloud API for electronic invoicing. They describe the project, related codebases, architecture, and available tools.

In plain words
What is it for?
Finding the right source files, understanding the invoice schema and API client, and working with invoicing, validation, status, archival, PDF, Peppol, SdI, KSeF, ZUGFeRD, or onboarding features.
Why use it?
They give an agent the context needed to understand the repository and avoid guessing about API behavior or invoice fields.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is getpopapi/pop-mcp's own configuration. It tells Claude Code how to work on pop-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 pop-mcp configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/runner/work/pop-mcp/pop-mcp.

Reuse

Borrowing it

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

Made for: Claude Code.

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 pop-mcp CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/getpopapi/pop-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/getpopapi/pop-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,862 This file is loaded in full into every session.
When invoked 5,862 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.05862 $0.05862
Opus 5.5 $0.02345 $0.02345
Sonnet 5.5 $0.01172 $0.01172
Haiku 4.5 $0.00586 $0.00586

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

Security

Grade A, and why

pop-mcp CLAUDE.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 10d 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.

CLAUDE.md · 435 lines

How it starts

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

pop-mcp — Project Context for Claude

What This Project Is

A TypeScript MCP (Model Context Protocol) server for the POP Cloud API, enabling LLMs (Claude, etc.) to generate, submit, and manage electronic invoices directly from AI assistants.

The server exposes invoice-generation, integration, status, validation, archival, and onboarding tools covering the maintained POP API surface, including SdI, Peppol, KSeF, ZUGFeRD, PDF, and Zoho.


These two sibling directories are the source of truth for the POP API:

  • ../pop-cloud-api — The POP Cloud API backend (WordPress REST API, PHP)
  • ../n8n-nodes-pop — n8n community nodes for POP (shows all API call patterns)

When in doubt about API behaviour, endpoint shapes, or field meanings: read those.


Architecture

src/
├── index.ts              stdio transport entry point
├── constants.ts          API base URLs + endpoint paths
├── types.ts              TypeScript interfaces (responses, errors)
├── client.ts             Axios client, auth (POP_API_KEY header), error handling
├── schemas/
│   └── invoice.ts        Full Zod schema for FatturaPA invoice data structure
└── tools/
    ├── invoices.ts       SdI, Peppol, PDF, KSeF, ZUGFeRD, and Zoho invoice actions
    ├── status.ts         pop_get_invoice_status, pop_get_peppol_document, pop_get_sdi_document
    └── advanced.ts       pop_verify_sdi_document, pop_preserve_document

Transport: stdio (for Claude Desktop and similar local clients)
Stack: TypeScript, @modelcontextprotocol/sdk, axios, zod


The 8 Tools

Tool Endpoint Plan
pop_create_sdi_invoice POST /create-xml Any
pop_create_peppol_invoice POST /create-ubl Any (Basic+ to submit)
pop_create_pdf_invoice POST /create-pdf Any (Basic+ for email)
pop_create_ksef_invoice POST /create-ksef-xml Any (KSeF setup for provider submission)
pop_create_zugferd_invoice POST /create-zugferd Any
pop_sync_zoho_document POST /integration/zoho/sync Zoho connector required
pop_get_invoice_status POST /sdi/document-notifications Any
pop_get_peppol_document POST /peppol/document-get Basic+
pop_get_sdi_document POST /sdi/document-get Basic+
pop_verify_sdi_document POST /sdi/document-verify Basic+
pop_preserve_document POST /sdi/document-preserve Basic+

Read the full file on GitHub · 435 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. 10d ago Changed · +2 lines · +192 tokens per session 63da3495e15c
  2. 1mo ago Changed · +34 lines · +494 tokens per session a63a9ed4b273
  3. 2mo ago First seen · 399 lines · 5,176 tokens per session scan A f143c6ec9dca

Subscribe to this mod's changes

pop-mcp CLAUDE.md is an instructions file published in the GitHub repository getpopapi/pop-mcp (0 stars, last pushed 10d ago), licensed MIT. It adds 5,862 tokens to every session, about $0.0234 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

pop-mcp CLAUDE.md compared with instructions from other repositories

pop-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pop-mcp CLAUDE.mdgetpopapi/pop-mcpInstructions file010d agoMITA5,862Claude Code
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 file143ktodayMITA7,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