Skip to content

Changelog

[0.0.37] - 2026-11-28

Added

  • CI: the passmcp conformance (100/100) job (MCP Protocol Conformance workflow) installs passmcp 0.0.10 from its GitHub release after checking its checksum, runs it over stdio and over streamable HTTP against this branch's wheel, uploads the reports, and fails unless both score 100/100. This release scores 100/100 on both.

Changed

  • CI: four pinned actions move to their latest releases: codeql-action 4.39.5, markdownlint-cli2-action 25.1.0, cosign-installer 4.1.4 and sbom-action 0.24.4.
  • Require bankstatementparser >= 0.0.36, the newest core release. poetry.lock and requirements/{ci,docs,fuzz,runtime}.txt move to bankstatementparser 0.0.36.
  • Version 0.0.37, in lockstep with the suite's 0.0.37 release.
  • docs/transports.md names the CI job that runs passmcp, the transports it covers and the 100/100 it requires.
  • make security and the Security workflow run bandit's full scan (-c pyproject.toml) with no fallback; a failing scan was hidden by a medium-severity-only rerun, and CI ran only that rerun.
  • CI: the Security workflow audits every locked requirements set (runtime, dev, docs, fuzz, build and sbom), not only some of them, so an advisory in the release tooling fails CI too.

Fixed

  • Over streamable HTTP, resources/read for a URI that does not exist answered HTTP 400, so a client saw a transport failure; the JSON-RPC error (-32602 with data.uri) now comes with HTTP 200.
  • Over streamable HTTP, server/discover lists 2025-11-25 beside 2026-07-28 in supportedVersions, since the endpoint still answers the initialize handshake.
  • parse_statement's catalogue entry is about 490 tokens instead of 627, under passmcp's 500-token budget per tool; its name and arguments are unchanged.
  • The suite consistency check authenticates its GitHub API request with the workflow token, so the shared anonymous rate limit no longer fails it.

[0.0.36] - 2026-11-27

Added

  • Bash and zsh completions in completions/, generated by shtab from the server's own parser (make completions, through the new bankstatementparser_mcp.completion.parser and _cli.build_parser); CI fails when they are stale.
  • A MkDocs Material user manual (mkdocs.yml, docs/) with an mkdocstrings API reference, built with --strict on every pull request and deployed to GitHub Pages from main (.github/workflows/docs.yml, make docs). It replaces a Sphinx configuration that nothing built. requirements/docs.txt is its hashed export of the lock.
  • docs/POLICIES.md (supported Python), docs/BENCHMARKS.md (a run of benches/bench_detect_and_parse.py with its environment), docs/COMPARISON.md and docs/suite.md.
  • SLSA provenance on every GitHub release (bankstatementparser-mcp-vX.Y.Z.intoto.jsonl, slsa-github-generator 2.1.0) beside the cosign signatures.
  • The suite's Docs Lint workflow (scripts/readme-check.sh and markdownlint), .markdownlint-cli2.jsonc and the portfolio pull request template.

Fixed

  • A refused payload's ToolError named a fragment of the private temp path instead of only the caller's filename whenever the temp directory resolves differently from the path mkstemp returns: on macOS it read Unable to detect statement format: /privatemystery.xml, and on Windows it carried the whole C:\Users\...\Temp\tmp*.xml path. The resolved form is now replaced too.
  • The container image's org.opencontainers.image.licenses label, set in both the Dockerfile and the Docker workflow, said Apache-2.0; it now says Apache-2.0 OR MIT, as pyproject.toml declares.

Changed

  • Require bankstatementparser >= 0.0.35, the newest core release, and align the version with the suite's 0.0.36 release. poetry.lock and requirements/{ci,runtime,fuzz}.txt move to bankstatementparser 0.0.35.
  • CI: github/codeql-action 4.39.4 (Dependabot #150).
  • CI tests CPython 3.10 to 3.14 on Ubuntu, macOS and Windows, not Ubuntu alone.
  • publish-mcp.yml installs mcp-publisher 1.8.16 checked against its published SHA-256 instead of whatever "latest" served, and grants id-token: write only to its job. The conformance workflow runs MCP Inspector 2.16.0 rather than npm's latest. The smoke job no longer upgrades pip unpinned.
  • README.md follows the portfolio template; the suite tables move to docs/suite.md, the licence section states the Apache-2.0 OR MIT grant, and the demo GIF is re-rendered. CODE-OF-CONDUCT.md is now CODE_OF_CONDUCT.md.
  • scripts/export_locked_requirements.py: _project_node and _selected split under the cyclomatic ceiling with byte-identical output; the complexity baseline drops from 8 offenders to 6.
  • ROADMAP.md lists what ships now; it still called v0.0.19 current.

0.0.35 - 2026-11-26

Added

  • scripts/check_complexity.py, the suite's standard-library complexity gate, copied byte for byte from bankstatementparser: cyclomatic 10, cognitive 15, Halstead difficulty 30 and 60 lines per function, 500 lines per file. The 8 functions and files already over a ceiling are recorded in scripts/complexity_baseline.json; CI and make check fail when one gets worse, a new one appears, or an improvement is left unrecorded, so the baseline can only shrink.

Changed

  • Require bankstatementparser >= 0.0.34, the newest core release, and align the version with the suite's 0.0.35 release, which brings all fourteen packages and bankstatementparser.com onto one version.
  • Dependencies: pydantic 2.14.4 with pydantic-core 2.50.5, httpx2 and httpcore2 2.14.0 (2.16.2 on Python 3.11+), sse-starlette 3.5.1 (3.7.1 on Python 3.11+), lxml 6.1.3, pytz 2026.6, typing-inspection 0.4.5, mypy-extensions 1.2.0, pluggy 1.7.0, iniconfig 2.3.1 and ruff 0.17.6. requirements/{ci,runtime,fuzz}.txt are re-exported from the lock.
  • Release SBOM tooling: cyclonedx-bom 9.0.0 in requirements/sbom.txt. The cyclonedx-py environment step is unchanged.
  • CI: ossf/scorecard-action 2.6.0.
  • scripts/check_suite_consistency.py now checks the eight packages joining the suite (BACS, CAMT.054, CFONB and SEPA loaders, EBICS transport, OFX, QIF and SWIFT writers) and the website's latest GitHub release.

0.0.34 - 2026-11-18

Changed

  • Require bankstatementparser >= 0.0.33, the newest core release, and align the version with the suite's 0.0.34 release. No other changes.

0.0.33 - 2026-11-18

Changed

  • Require bankstatementparser >= 0.0.32, the newest core release, and align the version with the suite's 0.0.33 release. No other changes.

0.0.32 - 2026-11-18

Changed

  • Require bankstatementparser >= 0.0.31, the newest core release, and align the version with the suite's 0.0.32 release.
  • Release notes are written by the release workflow. A final release-notes job runs after every asset is attached and rewrites the GitHub release in the suite's format: Highlights, What's Changed, New Contributors (when any), Checksums of every asset, and the Full Changelog link. Until now the body was GitHub's generated list alone, so 0.0.30 and 0.0.31 had to be corrected by hand.
  • The Highlights are the one hand-written part, kept in .github/releases/<tag>.md. The build refuses to publish when that file is missing, has fewer than 2 or more than 4 * **Headline**: text bullets, or contains an em dash.
  • scripts/release_notes.py, shared with every suite repository, composes the body from the GitHub API and the downloaded assets.

0.0.31 - 2026-11-18

Added

  • fuzz/fuzz_tools.py, an Atheris (libFuzzer) target for every tool that takes a statement payload, and a CI job that runs it for two minutes. Atheris lives in an optional fuzz Poetry group, installed from the hashed requirements/fuzz.txt export. Run it with make fuzz (Linux x86_64, Python 3.12+).

Changed

  • Require bankstatementparser >= 0.0.30, the newest core release, and align the version with the suite's 0.0.31 release.
  • Release titles read bankstatementparser-mcp <version> instead of the bare tag.

Fixed

  • parse_statement and summarize_statement refuse malformed input with a ToolError when an explicit format skips detection. Core passes lxml's XMLSyntaxError (format="camt") and csv.Error (format="csv") through unchanged, so the client got a bare "Error executing tool" instead of the reason. Found by the new fuzz target.
  • The server.json description is 99 characters; the MCP Registry caps it at 100, so every publish from v0.0.20 to v0.0.30 failed with HTTP 422. A test now checks the limit.

0.0.30 - 2026-11-18

Security

  • The release tooling (requirements/build.txt) floors filelock >= 4.2.1 (GHSA-9vhv-jxww-xfm5, GHSA-567q-5qvw-pf92, GHSA-v4x8-3wr5-3wq8; it pinned 4.0.10) and certifi >= 2026.10.19 (PYSEC-2026-4320; it pinned 2026.7.22), and keeps virtualenv >= 21.14.13 (GHSA-cx6f-vjhg-g3cc). filelock 4.2.1 needs Python 3.11 and only 3.12 jobs install the tree, so it is compiled for 3.12, universally: that restores the pins (cachecontrol among them) a non-universal Dependabot recompile dropped, without which pip install --require-hashes -r requirements/build.txt failed.
  • The release SBOM job points cyclonedx-py environment and pip-licenses at the Poetry venv (poetry env info --executable). Run through poetry run, they described their own interpreter, so the SBOM listed the SBOM tooling instead of the runtime set.
  • opentelemetry-api >= 1.45.1 (GHSA-xcq7-p3pf-p88h; the lock held 1.44.0), the langchain extra floors certifi >= 2026.10.19 (PYSEC-2026-4320), and the dev group floors black at 26.10.1 (CVE-2026-114134).
  • opentelemetry-api >= 1.45.2 (GHSA-mf5v-w3w3-f6cg); the lock already held 1.45.2.
  • Every CI job and the Docker image install from hash-locked exports of poetry.lock (requirements/ci.txt, requirements/runtime.txt, written by scripts/export_locked_requirements.py and checked against the lock in CI) with --require-hashes, and the package itself with --no-deps. Both Docker stages pin python:3.14-slim by digest, and docker.yml grants its write permissions to the build job only. This clears the OpenSSF Scorecard Pinned-Dependencies and top-level Token-Permissions alerts.
  • pip-audit checks the locked runtime and dev sets instead of the runner's environment.
  • pip-audit is a dev dependency on Python 3.11+ only, with filelock >= 4.2.1: it pulls filelock, every filelock up to 4.2.0 has advisories, and 4.2.1 needs Python 3.11, so on 3.10 the lock held the affected 4.1.0.

Changed

  • requirements/build.in floors dulwich >= 1.2.19 (it pinned 1.2.17), in place of Dependabot #105.
  • Requires core bankstatementparser >= 0.0.29, the newest released core.
  • Aligned version across the bankstatementparser suite to 0.0.30. 0.0.29 was prepared but never published; its changes ship in 0.0.30.
  • CI, Docker, and release workflows: github/codeql-action 4.39.3, docker/login-action 4.8.0, and sigstore/cosign-installer 4.1.3 (#125).
  • Dependencies and SBOM tooling: langchain-core 1.7.7 (#126) and ruff 0.17.5 (#128) in poetry.lock (pruning orphaned cyclonedx-bom entries), and cyclonedx-bom 8.0.1 in requirements/sbom.txt (#127).

Fixed

  • Reworded cross-tool imperatives in list_supported_formats and detect_format into declarative scope descriptions so every MCP tool governs only itself and clears passmcp catalog.text.shadowing checks.

0.0.28 - 2026-10-11

Changed

  • Aligned version across the bankstatementparser suite to 0.0.28.
  • Raised core bankstatementparser dependency requirement to >= 0.0.28.

0.0.21 - 2026-10-04

Documentation

  • Standardized documentation formatting and license references.
  • Synchronized release version metadata across packaging descriptors.

0.0.20 - 2026-10-03

Added

  • Animated terminal demo.gif rendered via VHS from .github/demo.tape.
  • AGENTS.md defining AI collaboration invariants and verification gates.
  • SPDX Apache-2.0 OR MIT dual license compliance with LICENSES/ tree.
  • --transport streamable-http and --transport sse, with --host and --port. Streamable HTTP serves both current protocol revisions (2026-07-28 stateless with server/discover, and 2025-11-25 with the initialize handshake) on one endpoint and streams responses as server-sent events; sse serves the older HTTP+SSE transport. stdio stays the default and is unchanged. --version prints the version. ADR 0001 records the decision.

Fixed

  • detect_format, parse_statement and summarize_statement now refuse an unparseable or undetectable payload with a ToolError that names the caller's filename and the parser's reason. They used to let the parser's exception escape, which the SDK reports as a bare "Error executing tool" with the cause kept on the server, so an agent could not tell a wrong filename hint from a corrupt statement.

0.0.19 - 2026-08-31

Added

  • Multi-framework agent adapters (as_langchain_tools, as_crewai_tools, as_llamaindex_tools) in adapters.py.
  • Bumped dependency to bankstatementparser >= 0.0.19.

0.0.18 - 2026-08-29

Aligns the bankstatementparser suite on one version number, and adds the scheduled drift check this repository was missing.

Added

  • scripts/check_suite_consistency.py and a scheduled Suite Consistency workflow compare this tree, and every published member of the suite, against PyPI. A member left a release behind still installs and still passes its own tests; only the index disagrees, and only if somebody looks.

Changed

  • Version aligned to 0.0.18 across all six bankstatementparser packages, which had drifted to 0.0.14, 0.0.15, 0.0.17, 0.0.16, 0.0.16 and 0.0.15.
  • Refreshed the vendored tests/test_suite_conformance.py to the current canonical copy. Its drift-check probe now matches the bare word pypi rather than the hostname, which CodeQL read as an incomplete URL sanitisation.

[0.0.17] - 2026-08-29

Brings this repository onto the suite conformance gate.

Added

  • benches/bench_detect_and_parse.py — an agent walking a folder calls detect_format on every file, often only to decide whether to parse it, so detection is on a hot path that parsing is not.

Detection does not read the file. Cost stays near 1 ms whether the input is 0.7 KiB or 346 KiB, so us/KiB falls to 0.05x as files grow — a fixed-size peek amortising. Had it stayed flat, every skipped file would have been read in full to be skipped. Detection on unrecognised content is measured too, since that is what a folder of stray files produces, and it is the cheapest case of all.

For parsing, the format gap is large and now visible: at 2,000 entries camt.053 takes 245 ms against MT940's 5.3 ms and CSV's 0.7 ms. XML is simply dearer, but a caller choosing an interchange format can now see by how much.

Nothing asserts a timing threshold — wall-clock is not comparable between machines, and a flaky performance gate teaches people to ignore red. CI runs --quick, so a benchmark that stops compiling fails the build rather than rotting into a file that reads as verified.

  • tests/test_suite_conformance.py — invariants shared by every repository in the suite, vendored from one canonical copy and checksummed by its own test.

Changed

  • CI lints, formats and runs benches/ alongside everything else.
  • tomli (on 3.10) and packaging are named as dev dependencies; the conformance gate parses pyproject.toml and needs both.
  • tests/test_suite_conformance.py is excluded from black: it is generated, and the suite uses three different line lengths.

[0.0.16] - 2026-08-05

Changed

  • chore(deps): fold the open Dependabot updates. cryptography 49.0.0 -> 50.0.0 across the pinned requirement sets.
  • chore(mcp): adopt the shared mcp 1.x/2.x compatibility layer. mcp widened to >=1.2,<3. mcp 2.0 removes mcp.server.fastmcp and renames FastMCP to MCPServer, so the previous <2 pin was the only thing keeping this server importable.

Fixed

  • test_version_pinned_at_expected_release no longer hardcodes a version. It asserted 0.0.14 and had gone stale against 0.0.15, failing on main; it now checks __version__ against pyproject.

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.0.14 - 2026-07-18

Changed

  • chore(deps): require bankstatementparser>=0.0.11 (was >=0.0.9), keeping the ISO 20022 MCP Suite in lockstep with the 0.0.11 core release. No functional or API changes.

0.0.13 - 2026-07-02

The discoverability cut. Registers bankstatementparser-mcp with the official Model Context Protocol Registry, adds MCP-spec conformance CI, and positions the server as part of the ISO 20022 MCP Suite. No functional or API changes.

Added

  • Official MCP Registry integration. bankstatementparser-mcp is now registered with the official Model Context Protocol Registry (registry.modelcontextprotocol.io) as io.github.sebastienrousseau/bankstatementparser-mcp. A new server.json at the repo root provides the registry metadata (PyPI package identifier, stdio transport), and the README carries an mcp-name: io.github.sebastienrousseau/bankstatementparser-mcp marker that the registry uses to verify PyPI package ownership.
  • Auto-publish workflow (.github/workflows/publish-mcp.yml). Authenticates to the MCP Registry via GitHub OIDC (no secrets required) on every v*.*.* tag push, syncs the tag version into server.json, and runs mcp-publisher publish. Registry metadata now stays in lockstep with each PyPI release automatically.
  • Protocol conformance CI (.github/workflows/mcp-inspect.yml). Runs @modelcontextprotocol/inspector --cli against tools/list on every push and PR. Green run is the spec-compliance evidence bank buyers routinely ask for.
  • Suite discoverability. The README now cross-links the sibling banking MCP servers under a "Related MCP Servers" section, positioning bankstatementparser-mcp as part of the ISO 20022 MCP Suite alongside pain001-mcp, camt053-mcp, acmt001-mcp, and noyalib-mcp.

Changed

  • GitHub repository description and topics refreshed: description now positions the server as part of the ISO 20022 MCP Suite; topics extended with mcp, mcp-server, model-context-protocol, iso20022, camt053, mt940, ofx, bank-statement, banking, fintech, financial-services, claude, ai-agents, python, bankstatementparser (topics were empty before).
  • Glama manifest version bumped to 0.0.13.

No functional / API changes

  • Same 5 MCP tools as v0.0.12. This release is metadata, CI, and discoverability only.

0.0.12 - 2026-06-25

Changed

  • Audit pass. Covered main() (removed a # pragma: no cover that masked testable code) and hardened the example-regression discovery to a set-equality check.

0.0.11 - 2026-06-24

Added

  • End-to-end install smoke test - a new smoke job in ci.yml ("Smoke test (installed wheel)") builds the wheel, installs it into a clean virtual environment (pulling bankstatementparser and mcp from PyPI), then imports the installed package and runs an example from a neutral working directory so the source tree is not on sys.path. This catches packaging and CI-vs-local divergence.
  • Expanded edge-case tests keeping the 100% line + branch coverage honest: garbage/malformed payloads across the detect/parse/validate paths, the limit parameter at its boundaries (0 and larger than the row count), an explicit-but-wrong format, and confirmation that validate_statement returns a structured {"is_valid": false, ...} error rather than raising.

Changed

  • Pruned over-scaffolding CI - removed the nightly.yml and docs.yml workflows (redundant for a small thin-adapter package); the kept workflows (ci.yml, pr.yml, codeql.yml, security.yml, release.yml, docker.yml) already cover the full quality posture.

0.0.10 - 2026-06-24

Added

  • Initial release of bankstatementparser-mcp, a Model Context Protocol (MCP) server that exposes the bankstatementparser bank statement parsing library as tools for AI agents and assistants.
  • bankstatementparser-mcp console script that runs the FastMCP server over stdio.
  • Five MCP tools, all delegating to the bankstatementparser parser core so they behave identically to the library:
  • list_supported_formats - list every bank statement format the parser can read (camt, pain001, csv, ofx, qfx, mt940).
  • detect_format - detect which statement format an inline payload is.
  • parse_statement - parse a statement into structured transactions plus a summary, with an optional row limit.
  • validate_statement - dry-run check whether a statement parses cleanly, returning a structured result rather than raising.
  • summarize_statement - return only the statement summary (opening/closing balances and currency).
  • One resource (bankstatementparser://formats) describing each supported format and its file extensions, and one prompt (analyze_statement) guiding an agent through reading and reconciling a statement.
  • Tools take inline statement content plus a filename hint and materialise it in a private temporary file for the duration of a single call, so no shared filesystem is required between client and server.
  • Multi-stage Dockerfile - a python:3.12-slim-based image runs the server over stdio as a non-root mcp user (docker run -i --rm bankstatementparser-mcp).
  • Quality workflows - ci.yml enforces ruff, mypy, the 100% pytest coverage gate, and the 100% docstring gate on Python 3.10/3.11/3.12; security.yml runs bandit + pip-audit; codeql.yml runs GitHub's CodeQL Python analysis.
  • Security policy (SECURITY.md) describing the threat model and hardening (private temp files, no network listener, no secrets).
  • scripts/verify_versions.py - pre-release script asserting __version__, pyproject.toml, and CHANGELOG.md agree.
  • Python 3.10+ support; depends on bankstatementparser (>=0.0.9) and mcp (>=1.2).
  • Quality gates pinned at 100% from the initial release:
  • pytest --cov=bankstatementparser_mcp --cov-branch --cov-fail-under=100 exercising every line and branch in bankstatementparser_mcp/server.py.
  • interrogate --fail-under=100 for module and function docstring coverage.
  • Runnable examples under examples/ covering every tool, the bankstatementparser://formats resource (formats_resource), and the analyze_statement prompt — each self-contained (inline fixtures, no network) and exercised by the test suite.
  • Documentation regression suite keeping the docs honest:
  • tests/test_docs_accuracy.py asserts the README, CHANGELOG, and examples/README.md match the live tool/resource/prompt registry, the package version, and the supported-format set.
  • tests/test_regression_examples.py runs every examples/*.py as a subprocess and asserts a clean exit.
  • tests/test_regression_docs.py executes every fenced python block in the README (and docs/*.md) so no documented example can silently rot.