Skip to content

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.

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.

  • The Docker image is built on the latest gcr.io/distroless/static-debian13 base image.

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.

  • Breaking: the login tools are named verb-first like the rest: crunch_auth_start is now crunch_start_auth, crunch_auth_complete is now crunch_complete_auth and crunch_auth_status is now crunch_get_auth_status. The old names are gone.
  • Clearer descriptions for crunch_get_supplier, crunch_get_company_details, crunch_get_opening_balances and crunch_get_credit_card: what they return and how they differ from the related tools.
  • Tool descriptions only name tools that are available: crunch_update_expense no longer points at crunch_remove_expense_payment without delete access, nor crunch_issue_invoice at crunch_email_invoice without email access.

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.

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_ALLOW is now CRUNCH_RAW_ALLOWED_PATHS (and the Claude Desktop extension’s raw_allow setting is now raw_allowed_paths).
  • Breaking: the paged list tools (crunch_list_expenses, crunch_list_invoices, crunch_list_recurring_expenses, crunch_list_bank_account_payments) take page_size instead of size, and max_items is gone: with all: true, paging stops after limit results (default 1000, at most 10,000). With search (or crunch_list_invoices’ status), limit counts matches, so at least 1000 results are fetched and filtered.
  • Breaking: date windows are from/to, or <field>_from/<field>_to for a window on a particular date: crunch_list_expenses takes from, to, payment_from and payment_to (was start_date, end_date, payment_start_date, payment_end_date); crunch_list_credit_notes and crunch_get_vat_summary take from and to (was start_date, end_date), and the VAT summary’s result echoes them as from and to; crunch_get_invoice_totals takes issued_from, issued_to, due_from and due_to (was issued_from_date, issued_to_date, due_from_date, due_to_date). The expense_review and period_summary prompts take from and to (was start_date, end_date).
  • Breaking: file names are filename: in crunch_download_expense_attachment and crunch_download_invoice_attachment (was file_name), in the attachments of crunch_create_expense, crunch_add_expense_attachment, crunch_create_invoice and crunch_add_invoice_attachment (was attachments[].file_name), and in results (downloaded file details and attachment lists).
  • Breaking: crunch_list_vat_types returns {total, returned, items} like the other list tools, with a for field (expenses or invoices) on each item, instead of separate expenses and invoices lists. It now takes search, fields and limit.

crunch-mcp now has 74 tools in 10 toolsets, and 6 prompts. This release has breaking changes: see Changed.

  • CRUNCH_RAW_ALLOW limits the raw API tool to a list of path prefixes, such as /expenses,/invoices, and CRUNCH_RAW_READ_ONLY=true keeps it to GET requests even when writes are on. Both are in the Claude Desktop extension’s settings and the MCP Registry entry.
  • A reports toolset of read-only reports, included in all. crunch_get_aged_debtors totals 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_creditors does the same for unpaid expenses by supplier, aged from the expense date because Crunch’s expenses have no due date. Both take as_of_date and details.
  • crunch_list_credit_notes (in reports) 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 (in reports) 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_expense refuses 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 new allow_duplicate: true to create it anyway.
  • Breaking: CRUNCH_TOOLSETS=all, the default, no longer includes the raw toolset. 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 example CRUNCH_TOOLSETS=all,raw.
  • Breaking: crunch_api_request only sends POST, PUT and DELETE requests to the write endpoints of Crunch’s documented public API, and refuses any other write. A POST that creates a record must not have an id in 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/0x1 or /invoices/1.json are refused.
  • Breaking: amounts (Money arguments) 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 an id in extra, 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_cards and crunch_get_overview.
  • Building from source needs Go 1.26 or later.
  • With email off, send flags such as sendEmail: true are refused in every tool’s extra and changes, not only in raw requests. crunch_create_invoice used to pass them on.
  • crunch_set_credit_card_opening_balance returns 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_expense and crunch_create_recurring_expense with create_supplier=true check 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-DD dates.
  • The audit log records crunch_auth_start and crunch_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.
  • Each release now has plain binaries for macOS, Linux and Windows on amd64 and arm64, with a SHA256SUMS file and build provenance attestations, so you can run crunch-mcp without Docker. See Running without Docker.
  • Built with Go 1.27.4, which fixes an HTTP/1 server crash in the standard library’s net/http (GO-2026-6859).
  • 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 the io.modelcontextprotocol.server.name label the registry checks. See The MCP Registry.
  • 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 with make mcpb VERSION=…. See Claude Desktop.
  • dry_run on every tool that changes something, and on crunch_api_request when 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 mode 0600) or stderr. 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, fields and limit on every list tool except crunch_list_vat_types. search matches any value in an item, fields keeps only the named fields (dot paths reach nested ones), and on paged lists they apply to the items fetched, with searched saying how many were looked at.
  • A Keeping the tool list small section with the tool count and tools/list size for common toolset combinations.
  • Breaking: crunch_list_payment_methods, crunch_list_persons and (when Crunch returns a list) crunch_list_accounting_periods return {total, returned, items} instead of a bare list, like the other list tools.
  • search on crunch_list_clients, crunch_list_suppliers, crunch_list_bank_accounts, crunch_list_credit_cards, crunch_list_expense_types and crunch_list_countries matches 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 _FILE form.
  • Built with Go 1.27.3, which fixes a crypto/x509 vulnerability in the standard library (GO-2026-6809).

This release contains security fixes from a review, and some breaking changes to configuration and tools; see below before upgrading.

  • 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 on 429.
  • Updates always send the id of the record in their path: an id in changes or extra is overridden (as is a recurring expense’s recurringEvent id), and a raw PUT whose 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_URL and CRUNCH_AUTH_URL must use https:// (plain http:// only for loopback hosts), and no configured URL may contain user: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=true now also requires MCP_ALLOWED_HOSTS, because without a token the Host check is the only protection against DNS rebinding.
  • Breaking: MCP_AUTH_TOKEN must be at least 16 characters.
  • Breaking: with MCP_ALLOWED_HOSTS set, an Origin entry without a port only matches the scheme’s default port (443 or 80); list host:port to allow a page on another port, such as localhost:5173. An Origin header that is present but empty is now checked (and refused) like any other. Host entries without a port still match any port.
  • /mcp only accepts POST (405 otherwise) with a JSON body. The HTTP server has read and idle timeouts.
  • Breaking: crunch_auth_complete needs the login’s state: paste the whole redirected URL, or pass the code with the new state argument. 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 like email or remind) and to flags such as sendEmail: true in bodies, and a POST to a record path must keep its payments and attachments, like a PUT.
  • With CRUNCH_FILES_DIR set, the download tools are no longer annotated read-only, because save_to writes files.
  • Breaking: crunch_remove_expense_payment needs payment_id, or all: true to remove every payment. Leaving payment_id out 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_items is 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 runs govulncheck.
  • crunch-mcp healthcheck reads the same settings as serve (including _FILE variants) and connects to MCP_HTTP_HOST, or to loopback when the server listens on every interface.

This release contains security fixes and several breaking changes to defaults; see below before upgrading.

  • Breaking: the http transport refuses to start without MCP_AUTH_TOKEN. Set MCP_ALLOW_UNAUTHENTICATED=true only when something in front of the server authenticates every request. login and status don’t need the token.
  • Breaking: the binary’s MCP_HTTP_HOST defaults to 127.0.0.1 instead of 0.0.0.0. The Docker image still sets 0.0.0.0.
  • With MCP_ALLOWED_HOSTS set, browser requests whose Origin isn’t on the list are refused.
  • Breaking: turning on payment reminders (send_reminders: true, or a truthy sendReminders in extra, changes or a raw request body, in any letter case) needs CRUNCH_ALLOW_EMAIL=true, because Crunch emails them to the customer. The raw API tool also refuses any path containing email or remind without 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 to changes on crunch_update_invoice, crunch_update_expense and crunch_update_recurring_expense, and to raw PUT requests, 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_path and download save_to are disabled unless CRUNCH_FILES_DIR is set, and then only work inside that directory, after resolving .. and symlinks. The token file, its lock and temporary files, and anything under /run/secrets are 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 login only accepts a redirect carrying the state of the login it started, and ignores other requests, including error= responses without a valid state. A pasted URL whose state doesn’t match is refused too.
  • The docs and compose.yaml publish the login port on loopback only (-p 127.0.0.1:8976:8976).
  • Builds use Go 1.26.9 (toolchain go1.26.9 in go.mod), which fixes standard library vulnerabilities reported by govulncheck. Release images are built with the latest golang:1.26.
  • New settings: MCP_ALLOW_UNAUTHENTICATED and CRUNCH_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 login no longer panics when CRUNCH_REDIRECT_URI has no path (such as http://127.0.0.1:8976); the redirect is caught at /.

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_invoice and period_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_start and crunch_auth_complete). CRUNCH_REFRESH_TOKEN and CRUNCH_ACCESS_TOKEN as 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 (mode 0600) 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_DELETES and CRUNCH_ALLOW_EMAIL. CRUNCH_TOOLSETS limits 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 optional save_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 Host header allow-list for HTTP.
  • serve, login, status, healthcheck and version commands.
  • _FILE variants 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.