pdf-reader-mcp, now named anymd, is a local Rust command-line tool and MCP server that converts documents, web pages, images, audio, and video into Markdown or extracted metadata, so AI agents can read them in a consistent text format. It is intended for local document processing without an API key, and the catalogue entries let coding agents call its conversion and search functions.
Borrowing it
Nothing to install: this file belongs to SylphxAI/pdf-reader-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.
curl -O https://raw.githubusercontent.com/SylphxAI/pdf-reader-mcp/main/.opencode/command/saas-billing.mdgit clone --depth 1 https://github.com/SylphxAI/pdf-reader-mcpWrote 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/commands/sylphxai/pdf-reader-mcp/saas-billing)<a href="https://agentmods.dev/commands/sylphxai/pdf-reader-mcp/saas-billing"><img src="https://agentmods.dev/badge/commands/sylphxai/pdf-reader-mcp/saas-billing/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/commands/sylphxai/pdf-reader-mcp/saas-billing"><img src="https://agentmods.dev/badge/commands/sylphxai/pdf-reader-mcp/saas-billing.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.00020 | $0.00897 |
| Opus 5.5 | $0.00008 | $0.00359 |
| Sonnet 5.5 | $0.00004 | $0.00179 |
| Haiku 4.5 | $0.00002 | $0.00090 |
Grade A, and why
saas-billing 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 3mo 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 — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Billing & Payments Review
Scope
Review all payment and billing systems: Stripe integration, webhook handling, pricing governance, subscription state machine, and financial-grade ledger (if applicable).
Specification
Billing State Machine (Hard Requirement)
- Billing and access state machine is mandatory: define and validate the mapping Stripe state → internal subscription state → entitlements, including trial, past_due, unpaid, canceled, refund, and dispute outcomes.
- UI must only present interpretable, non-ambiguous states derived from server-truth.
- No dual-write (hard requirement): subscription/payment truth must be derived from Stripe-driven events; internal systems must not directly rewrite billing truth or authorize entitlements based on non-Stripe truth, except for explicitly defined admin remediation flows that are fully server-enforced and fully audited.
Stripe Integration
- Support subscriptions and one-time payments as product needs require.
- Tax/invoicing and refund/dispute handling must be behaviorally consistent with product UX and entitlement state.
Webhook Handling (Hard Requirement)
- Webhooks must be idempotent, retry-safe, out-of-order safe, auditable; billing UI reflects server-truth state without ambiguity.
- Webhook trust is mandatory (high-risk): webhook origin must be verified (signature verification and replay resistance). The Stripe event id must be used as the idempotency and audit correlation key; unverifiable events must be rejected and must trigger alerting.
- Out-of-order behavior must be explicit: all webhook handlers must define and enforce a clear out-of-order strategy (event ordering is not guaranteed even for the same subscription), and must define final-state decision rules.
Pricing Governance (Stripe-first, not Dashboard-first)
- Stripe is the system-of-record for products, prices, subscriptions, invoices, and disputes; internal systems must not contradict Stripe truth.
- Pricing changes must be performed by creating new Stripe Prices and updating the "active sellable price" policy; historical prices must remain immutable for existing subscriptions unless an approved migration is executed.
- Default pricing change policy is grandfathering: existing subscribers keep their current price; new customers use the currently active sellable price.
- An operational-grade Pricing Admin must exist to manage creation of new Stripe Prices, activation/deactivation of sellable prices, and (optionally) controlled bulk subscription migrations; all actions must be governed by RBAC, step-up controls, and audit logs.
- Stripe Dashboard is treated as monitoring/emergency access; non-admin Stripe changes must be detectable (drift), alertable, and remediable.
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.
- 3mo ago First seen · 69 lines · 20 tokens per session scan A 60a836f13dc3
saas-billing is a command published in the GitHub repository SylphxAI/pdf-reader-mcp (1,075 stars, last pushed 14d ago), licensed MIT. It adds 20 tokens to every session and 897 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-09-06.
saas-billing compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| saas-billingSylphxAI/pdf-reader-mcp | Command | 1.1k | 14d ago | MIT | A | 20 | OpenCode |
| bib-filterflonat/flonat-research | Command | 158 | 21d ago | MIT | A | 68 | Claude Code |
| brief-compliance-checkflonat/flonat-research | Command | 158 | 21d ago | MIT | A | 45 | Claude Code |
| latex-polishflonat/flonat-research | Command | 158 | 21d ago | MIT | A | 60 | Claude Code |
| latexflonat/flonat-research | Command | 158 | 21d ago | MIT | A | 72 | Claude Code |
| split-pdfflonat/flonat-research | Command | 158 | 21d ago | MIT | A | 44 | Claude Code |
| balancekomoai2026/claude-plugin | Command | 3 | 17d ago | MIT | A | 8 | Claude Code |