github doobidoo/mcp-memory-service v10.26.7
v10.26.7 - Cloudflare D1 fresh-database schema initialization fix

8 hours ago

🙏 Special Thanks

@Lyt060814 (Yitong Li) — This release is entirely the work of Yitong, who identified and fixed a subtle Cloudflare D1 behavior that broke schema initialization on brand-new databases. Thank you for the careful diagnosis, clean fix, and regression test!

Changes

Fixed

  • [#601] Cloudflare D1 schema initialization fails on fresh database (issue #600): On a brand-new Cloudflare D1 database, PRAGMA table_list returns a success response (success: true) with an empty results array rather than an error. The schema migration logic incorrectly treated this as a failure and aborted initialization, leaving the database in an unusable state. The fix explicitly checks for an empty-results success response and proceeds with full schema creation.

Impact

Users who attempted to use the Cloudflare or Hybrid storage backend with a freshly created D1 database would see initialization fail silently. This patch makes the first-time setup path reliable.

Files Changed

  • src/mcp_memory_service/storage/cloudflare.py — detection of empty-results success response in schema migration (+10 lines)
  • tests/unit/test_cloudflare_migration.py — regression test covering the D1 empty-results behavior (+29 lines)

Upgrade

pip install --upgrade mcp-memory-service
# or
uv add mcp-memory-service>=10.26.7

No configuration changes required. No breaking changes.

Full changelog: https://github.com/doobidoo/mcp-memory-service/blob/main/CHANGELOG.md

Don't miss a new mcp-memory-service release

NewReleases is sending notifications on new releases.