Changelog
All notable changes to this project are documented here. The format is based on Keep a Changelog, and the project follows Semantic Versioning.
For crunch-mcp, the “public API” is the set of tool names, their arguments, the prompts and the configuration variables. Renaming or removing any of these is a breaking change.
0.7.1 - 2026-11-27
Section titled “0.7.1 - 2026-11-27”A maintenance release with an updated Docker base image. crunch-mcp still has 74 tools (40 read, 24 write, 9 delete and 1 email) and 6 prompts.
Changed
Section titled “Changed”- The Docker image is built on the latest
gcr.io/distroless/static-debian13base image.
0.7.0 - 2026-11-17
Section titled “0.7.0 - 2026-11-17”This release renames the auth tools verb-first, describes thin tools more fully and removes descriptions that pointed at tools turned off by the current settings. crunch-mcp has 74 tools (40 read, 24 write, 9 delete and 1 email) and 6 prompts. Read the Breaking entries before upgrading.
Changed
Section titled “Changed”- Breaking: the login tools are named verb-first like the rest:
crunch_auth_startis nowcrunch_start_auth,crunch_auth_completeis nowcrunch_complete_authandcrunch_auth_statusis nowcrunch_get_auth_status. The old names are gone. - Clearer descriptions for
crunch_get_supplier,crunch_get_company_details,crunch_get_opening_balancesandcrunch_get_credit_card: what they return and how they differ from the related tools. - Tool descriptions only name tools that are available:
crunch_update_expenseno longer points atcrunch_remove_expense_paymentwithout delete access, norcrunch_issue_invoiceatcrunch_email_invoicewithout email access.
0.6.0 - 2026-11-17
Section titled “0.6.0 - 2026-11-17”This release renames arguments, a setting and list output to match the other mattoddie MCP servers ahead of 1.0. crunch-mcp has 74 tools (40 read, 24 write, 9 delete and 1 email) and 6 prompts. Read the Breaking entries before upgrading.
Changed
Section titled “Changed”Argument, setting and output names now follow the conventions shared by the mattoddie MCP servers, ahead of 1.0. Nothing accepts the old names.
- Breaking:
CRUNCH_RAW_ALLOWis nowCRUNCH_RAW_ALLOWED_PATHS(and the Claude Desktop extension’sraw_allowsetting is nowraw_allowed_paths). - Breaking: the paged list tools (
crunch_list_expenses,crunch_list_invoices,crunch_list_recurring_expenses,crunch_list_bank_account_payments) takepage_sizeinstead ofsize, andmax_itemsis gone: withall: true, paging stops afterlimitresults (default 1000, at most 10,000). Withsearch(orcrunch_list_invoices’status),limitcounts matches, so at least 1000 results are fetched and filtered. - Breaking: date windows are
from/to, or<field>_from/<field>_tofor a window on a particular date:crunch_list_expensestakesfrom,to,payment_fromandpayment_to(wasstart_date,end_date,payment_start_date,payment_end_date);crunch_list_credit_notesandcrunch_get_vat_summarytakefromandto(wasstart_date,end_date), and the VAT summary’s result echoes them asfromandto;crunch_get_invoice_totalstakesissued_from,issued_to,due_fromanddue_to(wasissued_from_date,issued_to_date,due_from_date,due_to_date). Theexpense_reviewandperiod_summaryprompts takefromandto(wasstart_date,end_date). - Breaking: file names are
filename: incrunch_download_expense_attachmentandcrunch_download_invoice_attachment(wasfile_name), in theattachmentsofcrunch_create_expense,crunch_add_expense_attachment,crunch_create_invoiceandcrunch_add_invoice_attachment(wasattachments[].file_name), and in results (downloaded file details and attachment lists). - Breaking:
crunch_list_vat_typesreturns{total, returned, items}like the other list tools, with aforfield (expensesorinvoices) on each item, instead of separateexpensesandinvoiceslists. It now takessearch,fieldsandlimit.
0.5.0 - 2026-11-15
Section titled “0.5.0 - 2026-11-15”crunch-mcp now has 74 tools in 10 toolsets, and 6 prompts. This release has breaking changes: see Changed.
CRUNCH_RAW_ALLOWlimits the raw API tool to a list of path prefixes, such as/expenses,/invoices, andCRUNCH_RAW_READ_ONLY=truekeeps it toGETrequests even when writes are on. Both are in the Claude Desktop extension’s settings and the MCP Registry entry.- A
reportstoolset of read-only reports, included inall.crunch_get_aged_debtorstotals the outstanding balances of issued sales invoices by days past due (current, 1-30, 31-60, 61-90, over 90) and by customer.crunch_get_aged_creditorsdoes the same for unpaid expenses by supplier, aged from the expense date because Crunch’s expenses have no due date. Both takeas_of_dateanddetails. crunch_list_credit_notes(inreports) lists credit notes against sales invoices, against expenses, or both, with amounts, state, lines and refunds. Crunch’s public API has no credit note endpoints, so they’re read from the invoices and expenses they belong to, and can’t be created through crunch-mcp.crunch_get_vat_summary(inreports) totals net, VAT and gross by VAT type for a date range, for sales from issued invoice lines and purchases from expense lines, with VAT on sales minus VAT on purchases. It’s for sense-checking a VAT return, not a return itself, and it reports credit notes separately rather than deducting them.crunch_create_expenserefuses an expense that matches an existing one (same supplier, date, gross amount and supplier reference) and names it, because Crunch has no idempotency key and a repeated call would record the purchase twice. Pass the newallow_duplicate: trueto create it anyway.
Changed
Section titled “Changed”- Breaking:
CRUNCH_TOOLSETS=all, the default, no longer includes therawtoolset. The raw API tool (crunch_api_request) reaches endpoints the curated tools gate more finely, so it’s only enabled when listed by name, for exampleCRUNCH_TOOLSETS=all,raw. - Breaking:
crunch_api_requestonly sendsPOST,PUTandDELETErequests to the write endpoints of Crunch’s documented public API, and refuses any other write. APOSTthat creates a record must not have anidin its body. - Breaking: raw API paths may only contain letters, digits,
-and_in each segment, and a segment that starts with a digit must be a plain number. Paths such as/invoices/+1,/invoices/0x1or/invoices/1.jsonare refused. - Breaking: amounts (
Moneyarguments) must have at most two decimal places and no exponent, and invoice line quantities at most four decimal places. Such values used to be passed on as they were. - Breaking: create tools (
crunch_create_invoice,crunch_create_expense,crunch_create_recurring_expense,crunch_create_client,crunch_create_supplier,crunch_create_bank_account,crunch_create_credit_card) refuse anidinextra, which could make Crunch replace an existing record and drop its payments. - Credit card numbers are masked to the last four digits in
crunch_list_credit_cardsandcrunch_get_overview. - Building from source needs Go 1.26 or later.
- With email off, send flags such as
sendEmail: trueare refused in every tool’sextraandchanges, not only in raw requests.crunch_create_invoiceused to pass them on. crunch_set_credit_card_opening_balancereturns the error when Crunch can’t look up the existing opening balance, instead of trying to create a new one. It only creates one when Crunch says there is none.crunch_create_expenseandcrunch_create_recurring_expensewithcreate_supplier=truecheck the lines and their default VAT types before creating the supplier, so a failing expense no longer leaves a new supplier behind. A dry run shows both the supplier and the expense it would create (then_would_send).- Company details and the overview recognise VAT scheme dates given as plain
YYYY-MM-DDdates.
Security
Section titled “Security”- The audit log records
crunch_auth_startandcrunch_auth_complete, which can switch the server to another Crunch account, with the authorisation code redacted. It also redacts card numbers, account numbers, sort codes and IBANs.
0.4.2 - 2026-11-13
Section titled “0.4.2 - 2026-11-13”- Each release now has plain binaries for macOS, Linux and Windows on
amd64andarm64, with aSHA256SUMSfile and build provenance attestations, so you can run crunch-mcp without Docker. See Running without Docker.
Security
Section titled “Security”- Built with Go 1.27.4, which fixes an HTTP/1 server crash in the standard library’s
net/http(GO-2026-6859).
0.4.1 - 2026-10-22
Section titled “0.4.1 - 2026-10-22”- crunch-mcp is published to the official MCP Registry as
io.github.mattoddie/crunch-mcp, with the Docker image (in stdio mode, with the token volume and the same settings as the extension bundle) and the extension bundles. Each stable release publishes its version from the release workflow. The image has theio.modelcontextprotocol.server.namelabel the registry checks. See The MCP Registry.
0.4.0 - 2026-10-22
Section titled “0.4.0 - 2026-10-22”- An extension bundle (
.mcpb) for one-click installation in Claude Desktop, for macOS, Windows and Linux on amd64 and arm64. Each release has the bundles attached, and their settings form covers the client ID and secret, the access switches, toolsets, a files folder and the audit log. Build them withmake mcpb VERSION=…. See Claude Desktop. dry_runon every tool that changes something, and oncrunch_api_requestwhen writes are on. The request is built and checked but not sent; the tool returns the method, path and body it would send, or for an update the fields that would change (from and to). See Previewing changes.CRUNCH_AUDIT_LOG: an absolute file path (created with mode0600) orstderr. Every call of a tool that changes things, including dry runs, failures and refused calls, is logged as a JSON line with the tool, its arguments (secrets redacted, file contents shortened), the requests sent and the outcome. See Audit log.search,fieldsandlimiton every list tool exceptcrunch_list_vat_types.searchmatches any value in an item,fieldskeeps only the named fields (dot paths reach nested ones), and on paged lists they apply to the items fetched, withsearchedsaying how many were looked at.- A Keeping the tool list small section with the tool count and
tools/listsize for common toolset combinations.
Changed
Section titled “Changed”- Breaking:
crunch_list_payment_methods,crunch_list_personsand (when Crunch returns a list)crunch_list_accounting_periodsreturn{total, returned, items}instead of a bare list, like the other list tools. searchoncrunch_list_clients,crunch_list_suppliers,crunch_list_bank_accounts,crunch_list_credit_cards,crunch_list_expense_typesandcrunch_list_countriesmatches any value in the returned item, instead of a fixed set of fields.- A setting that is empty, or exactly
${user_config.<key>}(how Claude Desktop passes an extension setting left blank), counts as unset, for every variable and its_FILEform.
Security
Section titled “Security”- Built with Go 1.27.3, which fixes a
crypto/x509vulnerability in the standard library (GO-2026-6809).
0.3.0 - 2026-10-20
Section titled “0.3.0 - 2026-10-20”This release contains security fixes from a review, and some breaking changes to configuration and tools; see below before upgrading.
Security
Section titled “Security”- A token refresh is no longer cut short when the tool call that triggered it is cancelled. Before, a cancellation after Crunch had rotated the refresh token lost the new one, and the next refresh reused the spent token, which makes Crunch revoke the whole login.
- POST requests (creating expenses, recording payments, issuing or emailing invoices) are no longer retried when Crunch returns
503, which could do them twice. They are still retried on429. - Updates always send the id of the record in their path: an
idinchangesorextrais overridden (as is a recurring expense’srecurringEventid), and a rawPUTwhose body names a different record is refused. Before, the model could point an update at a record the keep-payments checks never looked at. - Breaking:
CRUNCH_API_URLandCRUNCH_AUTH_URLmust usehttps://(plainhttp://only for loopback hosts), and no configured URL may containuser:password@. Redirects from the Crunch API or OAuth server are no longer followed, so tokens and the client secret can’t be sent elsewhere. - Breaking:
MCP_ALLOW_UNAUTHENTICATED=truenow also requiresMCP_ALLOWED_HOSTS, because without a token the Host check is the only protection against DNS rebinding. - Breaking:
MCP_AUTH_TOKENmust be at least 16 characters. - Breaking: with
MCP_ALLOWED_HOSTSset, anOriginentry without a port only matches the scheme’s default port (443 or 80); listhost:portto allow a page on another port, such aslocalhost:5173. AnOriginheader that is present but empty is now checked (and refused) like any other.Hostentries without a port still match any port. /mcponly acceptsPOST(405otherwise) with a JSON body. The HTTP server has read and idle timeouts.- Breaking:
crunch_auth_completeneeds the login’sstate: paste the whole redirected URL, or pass the code with the newstateargument. A bare code was used with the most recent login, so a code from someone else’s authorisation could complete it. - The raw API tool applies the email switch to query parameters (such as
sendReminders=true, or anything named likeemailorremind) and to flags such assendEmail: truein bodies, and aPOSTto a record path must keep its payments and attachments, like aPUT. - With
CRUNCH_FILES_DIRset, the download tools are no longer annotated read-only, becausesave_towrites files. - Breaking:
crunch_remove_expense_paymentneedspayment_id, orall: trueto remove every payment. Leavingpayment_idout used to remove all of them. - A refresh token that Crunch rejected isn’t sent again on every call; after other refresh failures, refreshes wait 10 seconds.
- API responses over 64 MiB fail instead of being read in full (or, for downloads, silently truncated), and
max_itemsis capped at 10,000. - Error text from Crunch is stripped of control and formatting characters and quoted as coming from the API before it reaches the model.
- Builds use Go 1.27 (
toolchain go1.27.2), the Docker base images are pinned by digest, and CI runsgovulncheck.
Changed
Section titled “Changed”crunch-mcp healthcheckreads the same settings asserve(including_FILEvariants) and connects toMCP_HTTP_HOST, or to loopback when the server listens on every interface.
0.2.0 - 2026-10-15
Section titled “0.2.0 - 2026-10-15”This release contains security fixes and several breaking changes to defaults; see below before upgrading.
Security
Section titled “Security”- Breaking: the http transport refuses to start without
MCP_AUTH_TOKEN. SetMCP_ALLOW_UNAUTHENTICATED=trueonly when something in front of the server authenticates every request.loginandstatusdon’t need the token. - Breaking: the binary’s
MCP_HTTP_HOSTdefaults to127.0.0.1instead of0.0.0.0. The Docker image still sets0.0.0.0. - With
MCP_ALLOWED_HOSTSset, browser requests whoseOriginisn’t on the list are refused. - Breaking: turning on payment reminders (
send_reminders: true, or a truthysendRemindersinextra,changesor a raw request body, in any letter case) needsCRUNCH_ALLOW_EMAIL=true, because Crunch emails them to the customer. The raw API tool also refuses any path containingemailorremindwithout it. - Breaking: without
CRUNCH_ALLOW_DELETES, updates can no longer drop existing payments, supplier payments or attachments (Crunch deletes whatever an update leaves out). This applies tochangesoncrunch_update_invoice,crunch_update_expenseandcrunch_update_recurring_expense, and to rawPUTrequests, which are checked against the current record. - Breaking: the raw API tool only accepts canonical paths: no
.or..segments,//,%,;,\, spaces, control characters or non-ASCII characters. Access checks match the canonical, lower-cased path, so a path such as/invoices/1/email/.can no longer get past the email switch. - Breaking: attachment
file_pathand downloadsave_toare disabled unlessCRUNCH_FILES_DIRis set, and then only work inside that directory, after resolving..and symlinks. The token file, its lock and temporary files, and anything under/run/secretsare always refused. Before, they could read and write any file the server’s user could. - Refreshes are serialised across processes that share a token file, with an exclusive lock on
<token file>.lock; a process that waited uses the tokens the other one saved. Two processes refreshing at once could spend the same rotating refresh token and get the whole login revoked. crunch-mcp loginonly accepts a redirect carrying thestateof the login it started, and ignores other requests, includingerror=responses without a valid state. A pasted URL whose state doesn’t match is refused too.- The docs and
compose.yamlpublish the login port on loopback only (-p 127.0.0.1:8976:8976). - Builds use Go 1.26.9 (
toolchain go1.26.9ingo.mod), which fixes standard library vulnerabilities reported bygovulncheck. Release images are built with the latestgolang:1.26.
Changed
Section titled “Changed”- New settings:
MCP_ALLOW_UNAUTHENTICATEDandCRUNCH_FILES_DIR. - The http server logs a warning when it runs without bearer auth.
- Requests over 4 MiB were rejected by the MCP SDK’s own body limit, so attachments near the documented 10 MB failed over HTTP. The SDK now uses the server’s 16 MiB limit.
crunch-mcp loginno longer panics whenCRUNCH_REDIRECT_URIhas no path (such ashttp://127.0.0.1:8976); the redirect is caught at/.
0.1.0 - 2026-10-15
Section titled “0.1.0 - 2026-10-15”First release. It hasn’t yet been tested against a live Crunch account, so expect rough edges, and please report anything Crunch rejects.
- MCP server for Crunch Accounting with 70 tools in 9 toolsets: account, reference, banking, clients, suppliers, expenses, recurring, invoices and raw.
- Six built-in prompts:
business_health_check,chase_overdue_invoices,record_receipt,expense_review,create_invoiceandperiod_summary. - OAuth 2.0 login with PKCE for public and confidential clients, from a terminal (
crunch-mcp login, which catches the redirect or accepts a pasted URL) or from the assistant (crunch_auth_startandcrunch_auth_complete).CRUNCH_REFRESH_TOKENandCRUNCH_ACCESS_TOKENas alternatives. - Least-privilege scopes derived from the settings, overridable with
CRUNCH_SCOPES. - Safe handling of Crunch’s rotating refresh tokens: tokens are saved atomically to
CRUNCH_TOKEN_FILE(mode0600) before use, refreshes are never run concurrently, and a running server picks up a new login written to the token file by another process. - Four access levels: read-only by default,
CRUNCH_ALLOW_WRITES,CRUNCH_ALLOW_DELETESandCRUNCH_ALLOW_EMAIL.CRUNCH_TOOLSETSlimits the tools exposed. Tools are annotated as read-only, destructive or open-world. - Read-modify-write updates that keep existing payments and attachments.
- Attachments from base64,
data:URIs or file paths, and downloads of receipts (inline images) and invoice PDFs (embedded resources), with optionalsave_to. - Automatic retries when Crunch rate-limits requests, and error messages with hints for common Crunch errors.
- Streamable HTTP (stateless) and stdio transports, with bearer-token auth and a
Hostheader allow-list for HTTP. serve,login,status,healthcheckandversioncommands._FILEvariants of every variable for Docker secrets.- Multi-arch distroless Docker image (
linux/amd64,linux/arm64) published to GHCR on each release, with SBOM and provenance attestation. - Documentation, including a tool reference generated from the code.