Repository navigation
MDDB 2.19.14
A client could not tell a collection that does not exist from one where nothing matched, and /v1/stats could miss a collection for hours after it was created. This release answers both, names the commit a local mddb-cli was built from, and documents the permission every HTTP route needs. One answer changes its status: a search of a collection that does not exist is now 404 (see Changed); the rest is additive.
Added
collectionExists: falseon MCP search answers (#465).full_text_search,semantic_search,hybrid_search,search_documentsandcode_symboladd the field, in the text and instructuredContent, when the collection they were asked about does not exist; their output schemas list it, and answers about existing collections are unchanged.code_searchandcode_symbolline answers saycollection "x" does not existin one line.countsPending, and the age of the counts over MCP (#466). InGET /v1/statsa collection the snapshot has not counted yet carriescountsPending: true. The MCPget_statstool carries it too, withstatsComputedAtandstatsAgeSeconds.mddb-cliDockerfile build argumentsMDDB_VERSIONandMDDB_COMMIT, passed to the binary's--version.
Fixed
GET /v1/statslists a new collection as soon as it holds a document (#466). The list of collections came from the cached snapshot of the counts, which on a large, busy database isMDDB_STATS_TTLplus one full count old, so a collection filled bymddb-cli autoindexcould be missing for hours. The list is now read on every call (one lookup per collection, no document read); the counts stay cached, so a request still never waits for a count. A deleted collection leaves the list at once, and a difference between the list and the snapshot starts a count without waiting for the TTL. gRPCStats, GraphQLstatsand the MCPget_statstool list collections the same way. WithstatsPendingset, collections are now listed (each withcountsPending) where the list was empty.mddb-cli --versionnames the commit a build came from (#467).make buildgivesmddb-cli version 2.19.14 (commit c87c340b9f0d), a plaingo buildin a checkout givesdev (commit c87c340b9f0d-dirty), anddevalone means the build recorded nothing. The version is still the first word afterversion.make buildandmake build-windowspass the commit;make versionprints it.mddbd --versionis unchanged.- A binlog test raced the periodic flusher (
TestAWriteOrFlushFailureStopsTheLog) and failed on two pull requests: the flusher could write the buffered entry out before the test closed the file. The test now buffers under the lock.
Documentation
docs/AUTHENTICATION.md: the permission every HTTP route needs (#468), and whether a user limited to some collections can call it, with the code endpoints (/v1/symbol,/v1/fts,/v1/code-graphand the searches) one by one, the exact401and403bodies, and a least-privilege example for code search. A test fails when a route has no row or its row disagrees with the access rules; another pins the answers on/v1/symboland/v1/fts. The Permission Types table said statistics needadmin;/v1/statsneedsreadon*.docs/API.mdsays when/v1/ftsanswers withpassagesinstead ofresults(the request'sformat, or the collection's retrieval profile, whichmddb-cli autoindexsets for a collection that is mostly source code), and how the/v1/statscounts are cached.openapi.yaml: the404for a missing collection,countsPending, and the401/403answers of/v1/symbol,/v1/code-graphand/v1/code-languages.docs/INSTALLATION.mdand themddb-cliREADME no longer name the Makefile targetsbuild-cliandinstall-all, which do not exist.
Dependencies
- Go:
quic-go0.66.0,golang.org/x/net0.63.0,klauspost/compress1.20.5,bits-and-blooms/bloom3.7.2,go-sql-driver/mysql1.10.2 (test module). - Rust (
mddb-chat):sha20.11.2,toml1.2.3. - npm (panel, chat widget, GitHub Action, Chrome extension, Grafana datasource):
vite8.4.0,vitest5.1.2,webpack5.113.0,undici8.13.1,@grafana/*13.3.2,lucide-react1.81.0,autoprefixer10.7.0,@typescript-eslint/*8.74.0 and type packages. The GitHub Action'sdist/is rebuilt. - Docker:
grafana/grafana13.3.2 (Grafana datasource development image). - GitHub Actions:
actions/setup-go7.1.0,github/codeql-action4.39.5,astral-sh/setup-uv10.4.0,sigstore/cosign-installer4.1.4,SonarSource/sonarqube-scan-action8.5.1,spagu/ssg1.9.15.
Changed
- Breaking: a search of a collection that does not exist answers
404(#465)./v1/fts,/v1/vector-search,/v1/hybrid-searchand/v1/symbolanswered200with an empty result, the same as a query that matched nothing, so a typo in a collection name looked like no match. They now answer404 {"error":"collection not found","collectionExists":false}. A collection exists when it has a configuration or at least one document; the check reads the store (not the/v1/statssnapshot) and only when the answer is empty, so a search with hits costs nothing more. A query that matches nothing in an existing collection is200as before. A client that searches a collection before its first write must create it first or treat this404as an empty result./v1/search,/v1/cross-search, gRPC and GraphQL are unchanged.docs/API.mdalso says when/v1/ftsanswers withpassagesinstead ofresults. - Documentation no longer says in which release an option appeared, for releases before 2.19.0. Markers such as
(v2.18.9+)andSince v2.18.8, and sentences that described how older releases behaved, are removed fromdocs/andREADME.md. Headings that carried a version lost it, so their anchors changed (SEARCH.md#grouping-results-v2188is now#grouping-results); links inside the repository follow. The on-disk format notes for upgrades from 2.18 stay. This changelog keeps the history. - Documentation site: a Model Training group in the sidebar and in the Documentation section of the home page, with the guide and the reference.
- Documentation site: the sidebar and the home page list the same pages. The sidebar gains Use Cases, Docker Hub Image, AI Agents, Corpus Packs, Work Tracking, MCP Revisions, Elasticsearch Subset, Qdrant Point Query, Open WebUI Engines, Auth Quick Start, Multi-Tenancy, Security Controls, Cluster, Storage Layout, Storage Tuning and License Audit. The home page gains Installation, Configuration, Features, Embedding Providers, Zero-Shot Classification, Bulk Import, Work Tracking, MCP Revisions, TLS, Security Controls, Admin Panel, Cluster, Deployment, Qdrant Point Query, Open WebUI Engines, REST API Guide, GraphQL, Server-Sent Events, Benchmark, Comparison and Guides.
Removed
docs/INDEX_AUDIT.md(/docs/index-audit/): a 2025 audit of the home page, out of date.- Four maintainer notes leave the site (
status: draft):AUTH_IMPLEMENTATION_SUMMARY.md,DOCKER_HUB_UPDATE.md,DOCKER_SETUP.mdandLISTING.md. The files stay in the repository; links to them point at the repository.
Installation
Debian / Ubuntu
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.14/mddb_2.19.14_amd64.deb
sudo dpkg -i mddb_2.19.14_amd64.debFedora / RHEL
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.14/mddb-2.19.14.x86_64.rpm
sudo rpm -i mddb-2.19.14.x86_64.rpmHomebrew
brew install tradik/tap/mddbSnap
sudo snap install mddbDocker
docker pull tradik/mddb:2.19.14Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.