Invoice Studio

v1.0.0
io.github.vijayst/invoice-studio Checked 1 day ago Published 2 months ago

Edit Markdown invoice templates, generate PDFs, and inspect preview PNGs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

read_template_file

Read contents of a template or stylesheet file (e.g. src/templates/invoice.md).

ParameterTypeDescription
filePath *stringRelative path to file inside repository.

write_template_file

Update contents of a template or style file.

ParameterTypeDescription
content *stringFull code or markup to write.
filePath *stringRelative path to file.

run_generate_build

Executes `npm run generate` to compile templates into PDF and output/preview.png.

get_invoice_preview

Returns visual PNG preview of rendered invoice as base64 image payload.

ParameterTypeDescription
imagePathstringRelative path to preview PNG.

get_git_status

Inspect modified files and branch state before merging.

get_workspace_root

Return the directory this MCP uses for templates, data, and generate output (npx install or a local clone).

export_studio_to_repo

Copy invoice.md, invoice.css, and invoice-input.json from this MCP workspace into a local clone of a fork. Pass the absolute path of the clone.

ParameterTypeDescription
destinationDir *stringAbsolute path to the cloned fork (the directory that contains src/ and package.json).
includeDatabooleanIf false, skip src/data/invoice-input.json and only copy template + CSS.