dojocodinglabs/hacienda-cr ? reverse-engineered prompt

Reverse engineered prompt

Build me a TypeScript toolkit for Costa Rica electronic invoicing, with three parts in one repo, a reusable SDK, a command line tool, and an MCP server for AI assistants.

I want it to help with the full flow for Hacienda electronic documents, so it can authenticate with OAuth2, generate the XML, calculate IVA, sign with XAdES EPES using a .p12 certificate and PIN, send the document, and check the status afterward. It should work for sandbox and production, and include a simple way to create drafts, validate them, and see results in JSON from the terminal.

Make the developer experience clean, with good docs, examples, tests, and sensible defaults so someone can plug it into a checkout, POS, ERP, or assistant driven workflow. If you need current Hacienda or Node docs while wiring it up, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab