Invoice Studio
v1.0.0Edit 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).
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Relative path to file inside repository. |
write_template_file
Update contents of a template or style file.
| Parameter | Type | Description |
|---|---|---|
content * | string | Full code or markup to write. |
filePath * | string | Relative 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.
| Parameter | Type | Description |
|---|---|---|
imagePath | string | Relative 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.
| Parameter | Type | Description |
|---|---|---|
destinationDir * | string | Absolute path to the cloned fork (the directory that contains src/ and package.json). |
includeData | boolean | If false, skip src/data/invoice-input.json and only copy template + CSS. |