Repository navigation
Releases
MDDB v2.19.14
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.
MDDB v2.19.13
MDDB 2.19.13
An agent that answers a code question through the MCP tools used more tokens than one using grep, on every question measured (15 pairs, +9% to +13% in total). The cost was in the answers and the schemas: 21-line passages, JSON envelopes with repeated fields, indentation, prose passages of thousands of tokens. This release adds answers shaped like grep's and bounds the JSON ones.
Added
code_search(MCP tool, toolsetcode): one small search tool for agents working on code. Five parameters (collection,query,mode,path,limit), a schema under 800 bytes, no output schema. It answers in lines, a path once for consecutive hits in one file, and ends with a count that says whether the list is complete (22 of 22 lines in 14 files, or5 hits, more with limit).mode: "exact"lists every line that holds the query as written, ignoring case, each with the definition it sits in:internal/config/provider.go:39: [Docker] ShmBytes uint64. It reads the documents under thepathprefix (up to 5 000, then the count says where it stopped), so it lists whatgrep -ilists.mode: "words"(default) is the full-text search andmode: "meaning"the hybrid one, five hits by default, each the matching line with two lines of context and the name of the enclosing definition, a line longer than 160 bytes cut around the term that matched; on a server without embeddingsmeaninganswers by words and says so. 116 MCP tools.code_symbol:format: "lines"(MCP). The same lookup as lines:path:start-end kind Qualified.Namefor definitions, callers, callees, implementations and siblings,path:line in Enclosing.Func: textfor references and tests, a count line per relation (references: 20 of 32, more with limit), and the target definition on each line when the name has several. The answer for the four implementations of an interface is 299 bytes; the JSON for the same question was 13 354. JSON stays the default.code_symbol:exclude_tests(excludeTestsonPOST /v1/symbol): leaves out every passage in a test file before the limit is applied.code_symbol:pathmay name a directory.path: "internal/session"keeps the definitions under it; it returned nothing before. A file path works as it did.code_symbol:totals. When the limit cuts a relation,totalsholds how many passages it had, per relation, so a caller knows what a second call would bring.passage_tokens(passageTokenson REST) on searches withformat: "passages": the most tokens one passage may hold, 1 to 8 000.- Default MCP instructions for servers that hold code. When
MDDB_MCP_INSTRUCTIONSis unset, the request's key is bound to no chat scenario, thecodetoolset is available to it and some collection holds code,initializecarries about 120 tokens that say which tool answers which question. A server without code, and a key bound to a scenario, get what they got before.MDDB_MCP_INSTRUCTIONS=noneturns the default off. - A size budget test (
mcp_budget_test.go): byte ceilings for the schemas ofcode_searchandcode_symbol, the default instructions, and nine fixed answers over a fixed repository.
Changed
- A passage cut around a hit holds at most 500 tokens by default.
format: "passages"returned 21 lines around a hit; in prose those are paragraphs, and one hit ran to 2 883 tokens. A passage over the bound loses context lines first, then the end of its hit line (marked[…]), and carriestruncated: true; itslinesare the lines returned. Raise the bound withpassage_tokens. Chunks (retrieval_mode: chunkorwindow, and vector hits) are bounded by the collection's chunk size as before and are cut only whenpassage_tokensis set. A single line over the bound is cut around the first term that matched, with[…]at each cut end, so a hit in a long paragraph shows the sentence that matched. - A hit on a Markdown heading returns the text under it. The passage starts at the heading and runs down, instead of being centred on it: a question about a document got the heading and the end of the section before it.
- MCP tool answers are compact JSON. The text content of every tool was indented; indentation was 29% of a
code_symbolanswer. The JSON is the same, without the white space. A client that reads the text as JSON is not affected; one that matches it as a string with": "is.
Fixed
fieldswas ignored withformat: "passages"onsearch_documents,full_text_search,semantic_search,hybrid_searchandcross_search: a call that asked for keys alone received every passage in full (29 248 bytes where 2 216 were asked for). Withfieldsset, passages now come without their text, unlessinclude_content: trueis passed, asfieldsdrops the body in the results format.
Notes
- What a client forwards to the model was checked for one client: when a tool answers with
structuredContent, that client gives the model the structured JSON and not the text. A tool with an output schema must returnstructuredContent, so the line answers are on tools without one. excludeTests,totals,passageTokensandtruncatedare on every surface: REST, MCP, gRPC (CodeSymbolRequest.exclude_tests = 7,CodeSymbolResponse.totals = 17,Passage.truncated = 16,passage_tokenson the four search requests) and GraphQL (excludeTests,totals { relation total },passageTokens,truncated). The proto change adds fields only.
Installation
Debian / Ubuntu
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.13/mddb_2.19.13_amd64.deb
sudo dpkg -i mddb_2.19.13_amd64.debFedora / RHEL
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.13/mddb-2.19.13.x86_64.rpm
sudo rpm -i mddb-2.19.13.x86_64.rpmHomebrew
brew install tradik/tap/mddbSnap
sudo snap install mddbDocker
docker pull tradik/mddb:2.19.13Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.
MDDB v2.19.12
MDDB 2.19.12
Fixed
- MCP tools with an output schema returned no
structuredContent(#461). Nine tools declare anoutputSchemaintools/list(search_documents,get_stats,aggregate,semantic_search,vector_stats,full_text_search,classify_document,hybrid_search,get_checksum) and answeredtools/callwithcontentonly. The MCP specification requiresstructuredContentthat conforms to the declared schema, so a client that checks refused every answer with "Tool X has an output schema but did not return structured content": on 2.19.10 and 2.19.11 no search tool worked in such a client (code_symbolandcode_graphdeclare no schema and were not affected). Every successful call of a tool with an output schema now returnsstructuredContent, the same JSON object as the text content, on every protocol revision and on plainPOST /tools/call. The declared schemas now describe what the tools return in each output form (full,fieldsprojection,format: "passages",group_by, capped limit), with the types on the wire:aggregatedeclared atotalit never sent (it istotalDocs), andget_statscollectionsisnullon a server with no collection. A conformance test checks each tool with a schema against real answers. The text content is unchanged; tools without a schema still returnstructuredContentonly for a capped limit or a quota refusal. A field is added and nothing removed, so existing clients keep working. hybrid_searchover MCP ignoredfacet_byandfacet_max_values. Both are in the tool's input schema; the answer now carriesfacets(the results counted per value of each key), asPOST /v1/hybrid-searchreturns them. An answer informat: "passages"carries none.- Output schemas accept
nullwhere the tools can send it:matchedTermsof afull_text_searchresult and a document'smeta.
Installation
Debian / Ubuntu
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.12/mddb_2.19.12_amd64.deb
sudo dpkg -i mddb_2.19.12_amd64.debFedora / RHEL
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.12/mddb-2.19.12.x86_64.rpm
sudo rpm -i mddb-2.19.12.x86_64.rpmHomebrew
brew install tradik/tap/mddbSnap
sudo snap install mddbDocker
docker pull tradik/mddb:2.19.12Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.
MDDB v2.19.11
MDDB 2.19.11
Added
-
Issues and pull requests as a synced source (INT-023). A cron rule with
sync.source: "issues"mirrors a repository's issues and pull requests into a collection, read-only: one document per item (issue-<n>,pull-<n>), comments as sections, andstate,labels,assignees,milestone, dates, linked items and the filepathsthe text mentions as metadata. Runs are incremental (a cursor and conditional requests), a rate limit ends the run with the reset time and prunes nothing, and the forge's webhook on/v1/automation/{id}/hookrefreshes one document per event. GitHub (and Enterprise Server), GitLab, Gitea and Forgejo. MDDB never writes to the forge. -
sync_refresh(MCP tool,POST /v1/sync/refresh,{collection, number?}): bring a synced collection up to date now: one item, or an incremental run of the rules writing to it. At most once every 30 s per rule. A key whose scope holds the collection may call it, a read-only key included;run_automationstays administration. 115 MCP tools. -
The repository of a collection. Collection config takes
repository: {url, forge, tokenSecretRef}. Agitorissuesrule may leave outurlandtokenSecretRefand take them from its own collection or from the one named inrepositoryFrom, so the code collection holds the link once. -
Default forge tokens (
GET/PUT /v1/forge-tokens, admin): a stored secret per host, used when neither the rule nor the collection names one. A token goes only to the host it is registered for and is dropped on a redirect to another host; a secret a collection or a default refers to cannot be deleted (409,usedBy). -
Panel: an Issues source in the sync form, a Repository section in collection settings with a button that creates the issues sync, a Forge tokens tab, and a control that picks a stored secret or stores a pasted token as one.
-
MCP keys:
readOnlyCollections(AGT-007). A key limited to collections can hold some of them read-only: writes go only to the others.readOnly: truekeeps its meaning. -
MCP keys: memory namespaces (AGT-008). A key limited to collections or a scenario can use the
memory_*tools inside its own namespace (derived from the key, or thememoryNamespaceit names, which two keys can share); a read-only key recalls, lists and reads history. Keys without a limit and the main authentication are unchanged. Sessions from before 2.19.11 are in no key's namespace. -
mddb-cli plan(AGT-007): backlog rows as documents in a<repo>-workcollection:plan add,next(takes the first open row with a conditional write, so two callers get different rows),done,list,importandexport(a Markdown table). No new server surface. -
Agent instructions: a Work tracking section (next row, recall, issues through the mirror, hand-over) in
AGENTS.mdand the generated skill and rules. -
Blog: "MDDB as Your Knowledge Base" — loading folders, sites and repositories, who reads what, and the four ways to connect (MCP, External Knowledge, the web search engine, a scenario as a model), with a measured question: 380 tokens for three passages against about 71,800 for the three documents.
-
Blog: "Keep Your Agent's Code Index Live" —
autoindex --watchandhook installon a local checkout, a project skill that makes the agent search first, measured delays (1.5–2.1 s from save to searchable, 0.16–0.22 s per commit) and token estimates per lookup. -
Model training (TRN-001): module
modelTraining, off by default, admin only. MDDB builds a training dataset from one or several collections (JSON Lines:text, orpairsfrom a template over content and metadata; filter, split, shuffle with a seed, duplicate removal, a licence summary and an acknowledgement for collections with no licence on record) and starts an external trainer command. Commands come only from the operator's file (MDDB_TRAINERS_CONFIG): the API and the panel pick a profile by name and set the parameters it declares, never a command or a path; no shell, a job directory nothing leaves, an environment allowlist, timeouts, cancel, an audit entry per start, cancel and download. A trial run on a small sample, and an evaluation before and after through an operator-configured evaluate command, shown side by side. Routes under/v1/training/; the panel's Model Training page; docs/MODEL-TRAINING.md and a step-by-step guide with a recipes example. MDDB trains nothing itself and gains no dependency. 27 modules. -
Corpus packs of several collections (FE-022).
POST /v1/corpus/buildtakescollectionsandname; pack format 2 holds one file per collection, each with its own licence and checksum, and installs each back under its own name, read-only. A pack of one collection still writes format 1, which servers since 2.18.10 read; a server before 2.19.11 refuses a format-2 pack.POST /v1/corpus/inspectshows a pack's manifest and name clashes before an install.mddb-cli corpus build -c a -c b=LICENSE --name NAME. -
Panel: Corpus Packs page next to the collections: installed packs, upload with a preview before installing, create from one or several collections, download, remove; shortcuts on the collection list.
-
Panel: Backup & Restore and Collection Maintenance pages (FE-023, FE-024), moved out of System Info.
GET /v1/backupslists the backup files inMDDB_BACKUP_DIR(name, size, date, whether a checksum file lies beside it) andGET /v1/backups/{name}/downloadserves one; both admin only, confined to backup files in that directory, every download in the audit log. -
Feature modules have a plain
titleandsummary(GET /v1/features, gRPCFeatureProto), beside the technicaldescription. -
Blog: "From Collections to a Model File" and "Issues, Plans and Sessions in MDDB", both with figures from a running server.
-
A filter condition may be a bare value or a list:
"filter": {"state": "open"}reads as{"state": {"in": ["open"]}}. It used to be refused.
Changed
- Compatibility floor (VERSIONING.md): MDDB keeps compatibility with every release from 2.19.0 onward. Behaviour kept only for releases before 2.19.0 may change in a minor release, is kept where that is cheap and safe, and each such change is listed here. Databases from older releases still open, and a security fix may change behaviour of any age.
- A key limited to collections no longer reaches the memory collections with the document tools, even when they were listed in its
collections: its memory is its namespace. - Scenario-bound keys now list and may call
memory_recall,memory_list_sessionsandmemory_session_history, inside their own namespace.
Fixed
- mddb-chat:
url2.5.9 (RUSTSEC-2026-0592, a stack overflow inUrl::origin()on nestedblob:URLs);form_urlencoded1.2.3 with it. - Panel: one scroll. The page no longer shows a second scrollbar or a blank band under the content, and no longer scrolls sideways below 731 px; Client Settings can be scrolled.
- No issue or ticket numbers in texts a user reads (feature descriptions, the endpoint catalogue, MCP tool descriptions, panel labels); the technical detail sits behind a help control. Two tests keep them out.
fields: ["meta.title"]on the MCP search tools returned no title; themeta.prefix the agent instructions use is now read as the metadata key.- Cluster tests on Windows runners: the end-to-end cluster tests ran a 20 ms heartbeat and 150 ms election timeout there too and re-elected over a hundred times in five seconds; on Windows they now run five times longer, and
internal/cluster's ten times (it was five), with the waits for a leader scaled to match. Test-only. mddb-cli autoindex hook runwrote the CLI usage text into.git/mddb-autoindex.logafter an error; the log now holds only the error.
Installation
Debian / Ubuntu
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.11/mddb_2.19.11_amd64.deb
sudo dpkg -i mddb_2.19.11_amd64.debFedora / RHEL
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.11/mddb-2.19.11.x86_64.rpm
sudo rpm -i mddb-2.19.11.x86_64.rpmHomebrew
brew install tradik/tap/mddbSnap
sudo snap install mddbDocker
docker pull tradik/mddb:2.19.11Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.
MDDB v2.19.10
MDDB 2.19.10
Added
- Who can read a chat scenario (#441).
GET /v1/chat/scenarios/{name}/access(admin on"*") lists every user, by name, with what they can read of the scenario's allowed collections (aliases resolved).fullmeans the user can read all of them, so the scenario is offered to them.vianames the rule that matched:admin,user,user:*,group:<name>orgroup:<name>:*; when several groups match, the first by name. A tenant user reads only inside the tenant's namespace, and a disabled user is marked. With authentication off,usersis empty. A caller without admin gets403whether the scenario exists or not; an unknown scenario gives404. No password or key hashes are returned. Docs: docs/API.md, docs/AUTHENTICATION.md, openapi.yaml. - Panel, Chat → scenario: an Access card (#441). It links to the screens that decide who can use the scenario: Connect an MCP client, MCP API keys (opens LLM Connections on the API Keys tab), Users and permissions, Groups and My API keys. Each link is shown only when the sidebar shows that page. Below, a table of who can read the saved scenario and through which rule, with a reminder that mddb-chat sees a scenario only through its
[mddb] auth_usernameaccount. With authentication off, or for a user who is not admin on"*", the card says so instead of showing the table. The store gainedopenView(mode, target), so a link can open a view on a given tab. - Open WebUI, External Knowledge, OpenAI-compatible provider (#446).
GET /v1/vector_storeslists the collections the caller may read (read permission, tenant namespace and MCP API key scope per collection;limit/afterpaging) andPOST /v1/vector_stores/{id}/searchsearches one collection or alias (acme%2Fdocsincluded): hybrid search when the collection has embeddings, full text otherwise; passages scored 0–1 with the document's metadata,collection,langandurl. Errors use the OpenAI error object with MDDB's status codes. ModulevectorStores, off by default. In Open WebUI: provider OpenAI-compatible, endpoint<mddb>/v1, anmddb_live_…key. - Open WebUI, External Knowledge, Qdrant provider (#447). Module
qdrantCompat(off by default;MDDB_QDRANT_COMPAT=trueturns it on by default) servesGET /qdrantandPOST /qdrant/collections/{name}/points/query, the requestsqdrant-client'squery_pointsmakes. The vector runs through/v1/vector-search(auto, chunk mode); each point is one passage with a stable UUID and MDDB's similarity asscore. A vector of another dimension is a 400 naming both;using,filter,prefetchand other query kinds are refused by name. Theapi-keyheader is accepted as an MDDB API key on/qdrant. Reported asqdrantCompatin/v1/config.test/qdrant-compatruns the unmodifiedqdrant-clientagainst a built server (make test-qdrant-compat, CIes-compatjob). Endpoint in Open WebUI:http://<mddb>:11023/qdrant, with the port. See docs/QDRANT_COMPAT.md. - Open WebUI engines (#449, #450, #451). Each a module, off by default:
POST /v1/web-search(webSearch): Open WebUI's external web search,{"query","count"}→[{"link","title","snippet"}], over the collections the caller may read;?collections=and?searchType=hybridon the URL,MDDB_WEBSEARCH_COLLECTIONSserver-wide.POST /v1/rerank(rerankApi): Open WebUI's external reranker, scored by the configured reranking model (RAG-011), one result per document; 503 without a model.PUT /v1/extract/process(extractApi): Open WebUI's external document loader; the file is converted to Markdown with the upload converters and nothing is stored; 415 for an unsupported format, 413 past the size limit.- Settings and limits: docs/OPENWEBUI.md.
- mddb-chat: chat scenarios as models for OpenAI-compatible clients (#448).
[openai_api] enabled = true(orMDDB_CHAT_OPENAI_API_ENABLED=true; off by default) addsGET /v1/modelsandPOST /v1/chat/completions(whole or streamed). Each enabled scenario the caller's key may read is one model; the key (an mddbd API key or JWT,Authorization: Bearer) is checked against mddbd on every request, and the API answers 503 while mddbd authentication is off. Answers run the widget's turn: composed prompt, guardrails, collections, tools, LLM overrides, loop guard, webhooks, turn log. Stateless limits:maxTurnsover the messages sent, the token budget against the request size,messagesPerMinuteandrate_limit_per_minuteper key. Clientmax_tokensonly lowers the scenario's; client tools, temperature and system messages are ignored; image parts are 400. In Open WebUI: Connections → OpenAI API,http://<mddb-chat>:11030/v1. - Panel, LLM Connections → VS Code. A
.vscode/mcp.jsonfor the chat built into VS Code, with the key asked through a password input VS Code keeps in its secret storage (the file holds no key), andcode --add-mcp '…'for the user profile. - Panel, LLM Connections → Open WebUI lists every way in, with this server's URLs and the module to switch on: both External Knowledge providers, the function, and the web search, reranker and document loader settings.
mddb-cli autoindex --changed-since,--watchandautoindex hook(AGT-006).--changed-since REFsends only the files git reports changed since a commit, plus untracked ones, and with--prunedeletes the deleted ones.--watchindexes, then every--interval(2 s) sends the files whose size or modification time changed, by polling (no file-event dependency; works on WSL2/mnt/c, NFS, bind mounts), retrying a pass the server did not get.autoindex hook install [-- flags]adds a marked block topost-commit,post-merge,post-checkoutandpost-rewrite(honouringcore.hooksPath, keeping existing hooks); the hook runsautoindex hook runin the background from the commit it last indexed, under a lock, so a commit never waits or fails.uninstallandstatustoo. Each leaves the documents a full--prunerun would. Docs: docs/BULK-IMPORT.md.MDDB_API_KEYis the default formddb-cli --api-key, so a git hook needs no key in its file.- Blog: "One Server, a Collection per Project" — a local MDDB, a collection per repository, a scoped MCP key per project, keeping the index fresh, and when it beats grep.
Changed
- Panel sidebar: LLM Connections is hidden when the MCP listener is off (
protocols.mcp.enabled: falsein/v1/config). An older server that does not report it hides nothing. The sidebar and the Access card read the conditions from one function,navConditions. AuthManager.CheckPermission: the grant lookup after the tenant gate and the admin check (own grant, own grant on"*", group, group on"*") is one function, which the new route reuses. Same answers as before; when several groups match, the first by name is now the one checked first.- Elasticsearch-compatible subset is a module (
esCompat). It is switched on under System → Features without a restart;/esis always mounted and answers 404 while the module is off.MDDB_ES_COMPAT=truestill turns it on by default, so a server that used it keeps/esafter the upgrade; a switch set on the Features page wins.esCompat.enabledin/v1/configfollows the module. - New modules that open a way in start off:
vectorStores,esCompat,qdrantCompat,webSearch,rerankApi,extractApi. 26 modules in all. - MCP: an
mcp_key sent to an MCP listener guarded by the main authentication gets a 401 that namesMDDB_MCP_API_KEY_ENABLEDinstead of "invalid token" / "invalid api key" (#445).POST /v1/mcp/keysstill creates the key and adds awarningwhile the listener does not check MCP keys. - Docs deploy: the ssg action and binary both move to v1.9.12.
- Docs: the "What's next" sections (README.md, docs/README.md, docs/ARCHITECTURE.md) and GraphQL's "Future Enhancements" list are gone; shipped work is in this file and requests in the issues.
Fixed
- docs/AUTHENTICATION.md listed the permission lookup order without the group step.
- Panel handed out
mcp_keys the server never checks (#445). WithMDDB_MCP_API_KEY_ENABLEDoff, the scenario's MCP keys card and the API Keys tab now say so, name the setting and disable Create. - mddb-chat searches named no collection (#448). The hybrid, full-text and vector search requests to mddbd left
collectionempty, sosearch_docsfailed against a real mddbd with "missing required fields: collection, query". The test double now checks the field. - Flaky cluster tests on slow runners (#444). The cluster end-to-end tests wait for a stable leader and term before their setup writes, and follow a leader change during them; failover, partition and quorum assertions are unchanged.
- SonarCloud security findings on 2.19.9 (
main). The mddb-chat Dockerfiles install their packages with--no-install-recommends, and the panel's Open WebUI template matches the script's default MCP address with a pattern instead of anhttp://literal.
Installation
Debian / Ubuntu
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.10/mddb_2.19.10_amd64.deb
sudo dpkg -i mddb_2.19.10_amd64.debFedora / RHEL
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.10/mddb-2.19.10.x86_64.rpm
sudo rpm -i mddb-2.19.10.x86_64.rpmHomebrew
brew install tradik/tap/mddbSnap
sudo snap install mddbDocker
docker pull tradik/mddb:2.19.10Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.
MDDB v2.19.9
MDDB 2.19.9
Added
- MCP API keys scoped to collections (#439). A key made with
POST /v1/mcp/keystakescollections(names, aliases orrole:targets, resolved on every call) andreadOnly. Such a key calls a collection tool only when every collection the call names is in its scope; a call that names no collection is refused unless the tool's own default (the reference collections ofreference_*) lies inside the scope; tools that cover every collection, administration tools, the memory store and tools authorized inside their handler are refused. A read-only key is refused every tool read-only mode refuses. The same check applies toresources/read, custom tools,completion/complete, therag-pipelineprompt,chat_scenario_listand/eventson the MCP listener, andtools/listleaves out what the key can never call. The scope applies whether or not the main authentication is on. Static keys:MDDB_MCP_API_KEYSentries arekey[:name[:toolsets[:collections[:ro]]]], toolsets and collections separated by|(k:bot::docs:ro). A key without these fields behaves as before. Panel: collection checklist and read-only switch when creating a key, and each key's scope in the list. Docs: docs/MCP.md "Scoped keys", docs/AUTHENTICATION.md. - MCP API keys bound to a chat scenario (#439). A key with
scenarioreaches the scenario'sallowedCollections, read-only, intersected with the key's owncollectionswhen both are set; the scenario is read on every call, so editing it changes what the key reaches.initializeandserver/discoverreturn the scenario's composed prompt (the text of/v1/chat/scenarios/{name}/prompt) asinstructions. When the scenario is deleted or disabled, or thechatfeature is off, every call of the key is refused and the prompt is not returned. A scenario with noallowedCollectionsgives the key no collection. Panel: an "MCP keys" section in Chat → scenario to create, disable and delete keys bound to it. Not included: the scenario's external MCP servers' tools are not offered to the key. - OAuth tokens carry their key's scope (#439). A token of the MCP OAuth flow stands for an MCP API key and is checked as that key on every request, so a connector authorized with a scoped key is held to the same collections.
- How MCP is reached, in
/v1/config(#440).protocols.mcpreportspublicUrl,apiKeyEnabledandoauthEnabled(whether the OAuth server runs, not the raw setting). NewMDDB_MCP_PUBLIC_URL: the base URL clients dial behind a proxy or tunnel, an absolutehttp/httpsURL; a trailing slash or/mcpis removed. Unset,publicUrlis the OAuth issuer while OAuth runs, else empty. No key or secret is reported. - Panel LLM Connections: the Claude tab connects to the server the panel shows (#440). The tab (renamed from "Claude Desktop") offers five variants: the
claude mcp add --transport httpcommand (default), a project.mcp.json, the steps for a custom connector (or the settings still missing when OAuth is off), and the two local stdio configurations, which now say that they start a separate local database. An "API key" field, shown when keys are on, puts the typed key into every variant; a key created in API Keys during the visit fills it. The key is held in component state only. The command is shell-quoted. Server Domain also takes a full URL (https://host), the resolved MCP URL is shown under it, and the server'spublicUrlis used when set. The DeepSeek tab carries the same stdio note; the other tabs produce the same text as in 2.19.8. - Removing a permission (#438).
DELETE /v1/auth/permissions?username=&collection=andDELETE /v1/auth/group-permissions?group=&collection=(admin;404when the grant does not exist), GraphQLdeletePermissionanddeleteGroupPermission, and a remove button with a confirmation on every row of the panel's Manage Permissions and Group Permissions lists. An administrator removing their own admin grant on*gets409. - Website: the homepage hero shows the product video "From Code to Intelligence" under the calls to action, up to 1100 px wide. Until the visitor clicks, it is a poster with a play button linking to YouTube; the click loads the player from youtube-nocookie.com, so the page loads no YouTube script or cookie beforehand. The "Powers" strip names a second production deployment, versions.tradik.com (an MCP server tracking 220+ packages); its entries take turns with a cross-fade every 7 s, hold while hovered or focused, and are all listed without JavaScript or with reduced motion. Homepage copy reworded plainly (hero, badges, features, web panel, replication with failover; emoji decoration removed); "What's New" now lists 2.19.8 instead of 2.18.10, and the API reference is no longer described as Swagger UI. The "Community & Support" section, four links to GitHub, is gone; Issues and Discussions moved to the footer next to GitHub and Contributing. Download sizes read ~13MB (2.19.8 archives are 11.8–13.5 MiB; the page still said ~12MB from 2.18.10), and the Docker image ~47MB (2.19.8 amd64: 46.7 MB) in the site, README.md, docs/COMPARISON.md and docs/FEATURES.md; the binary ~36MB (2.19.8 linux/amd64, release flags: 35.5 MiB) in the site, README.md and docs.
- Blog:
/blog/is a blog index rather than a list of links. The newest post is shown large, the rest as a grid of cards with a cover, category, date, reading time and tags, and a topic list with post counts sits at the foot. Every post is filed under one of three categories (Releases, Engineering, Guides), each with an indexable archive at/category/<slug>/reached from a category bar on every blog listing; tag archives use the same cards. Each post gets its own 1200×630 social card, drawn at build time (og_cards), which is both itsog:imageand its cover on the index. The categories live indocs/metadata.json, now committed; thedocs-metadataMake target and the deploy workflow step that wrote an empty file are gone. - Website hero: the headline reads "Knowledge database and code intelligence", and the word before "intelligence" cycles through code, content, spatial, visual and temporal every 2.5 s (held on hover or focus, still with reduced motion). The HTML holds only "code", so crawlers and readers without JavaScript get one plain heading. The hero and the "Powers" strip share one rotation function (
index-section-rotate.html). - Docs deploy: the workflow's two ssg pins (the action and the binary it downloads) both move to v1.9.11; the binary had stayed at v1.8.82 behind a v1.9.6 action, so the first deploy of the new blog failed on
og_cards. A test (services/ssg-template/ssg-pin.test.mjs) fails when the two differ. - Website SEO: the homepage title and social title match the new headline ("Knowledge Database and Code Intelligence for AI Agents"); the ignored
<meta name="keywords">is gone; the hero background is preloaded. Blog posts areog:typearticle witharticle:published_time,article:tagand aBlogPostingJSON-LD block (headline, dates, card image, publisher); everyog:imagestates its 1200×630 size.
Changed
- Static MCP key entries with four fields (#439). An entry of
MDDB_MCP_API_KEYSwith a colon inside its toolsets field (k:n:search:foo) was an invalid toolset list and gave the key no tools; it now reads as toolsetssearch, collectionsfoo. Entries of one to three fields read as before. - Auth handler responses are written by one helper; JSON bodies of
/v1/auth/*no longer end with a newline. - Panel: the collection checklist of the scenario form and the permission list of the two permission modals are shared components (
CollectionChecklist,PermissionList); the LLM Connections templates moved tosrc/lib/llm-connection-templates.jsandsrc/lib/claude-connection.js.
Fixed
- A permission could not be removed (#438). The only way was to overwrite it with read, write and admin all false, which left an empty row. See "Removing a permission" above.
GET /v1/endpointsdescribedPOST /v1/auth/permissionsas "Get user permissions"; it sets one.- docs/API.md: the group-permission example sent
group; the field isgroupName. - docs/MCP.md, docs/LLM_CONNECTIONS.md: the HTTP client configuration example uses
"type": "http". - Panel layout scrolled past the viewport. The main row had a hard-coded height of
100vh - 64px, so the compliance banner pushed it below the fold: the page got a second scrollbar and the sidebar scrolled on its own. The shell is now a full-viewport flex column; the banner and header keep their natural height and the sidebar and views take the rest. - Secret scan on
main: the Open WebUI step of LLM Connections showedllmApiKey=sk-..., which the secret scanner reads as a key since the templates moved tosrc/lib/llm-connection-templates.js; it now readsllmApiKey=<your API key>.
Security
- A login token keeps global admin only while its user holds it (#438). A login JWT records the admin flag at login, and that flag was honoured until the token expired even after the user's admin grant on
*was removed or switched off. HTTP and gRPC now compare the flag with the user's current grants on every request. The check only takes the flag away; a grant given after login still needs a new login. Collection grants and API keys were already read on every request.
Documentation
- API keys,
403and limits spelled out. docs/AUTHENTICATION.md and openapi.yaml now state that an API key acts with the permissions of the user who created it and cannot be narrowed to read-only or to chosen collections (a narrower key is a key of a narrower user), and that every collection endpoint answers403to a caller without the permission whether or not the collection exists. docs/API.md and openapi.yaml state what/v1/ftsanswers for a collection that does...
MDDB v2.19.8
MDDB 2.19.8
Added
- Leader election and failover (GO-051). With
MDDB_CLUSTER_PEERS, nodes elect their leader by term, majority vote and leader lease, and replace a failed one: a new leader takes writes 2.6–3.7 s afterkill -9of the old one with the default timings. The minority side of a network partition takes no writes. A returning old leader follows the new term; writes no other node received are saved torejected-writes-<node>-term<T>-<time>.jsonland the node resynchronises. A node that does not lead answers a write with REST421+X-MDDB-Leader, gRPC ErrorInfoNOT_LEADER, or an MCP error naming the leader; during an election503/UNAVAILABLE. New:POST /v1/replication/promoteand/v1/replication/demote,mddb-cli replication status|promote [--force]|demote,MDDB_REPLICATION_ACK=quorum(defaultasync, as before), opt-in follow-leader in the Go (WithFollowLeader), Python (follow_leader) and Node (followLeader) clients, and term, leader, nodes and actions in the panel's Cluster tab. Settings:MDDB_CLUSTER_PEERS,MDDB_CLUSTER_ADVERTISE_HTTP,MDDB_CLUSTER_AUTO_FAILOVER,MDDB_CLUSTER_BOOTSTRAP,MDDB_CLUSTER_HEARTBEAT,MDDB_CLUSTER_ELECTION_TIMEOUT,MDDB_CLUSTER_REJECTED_DIR,MDDB_REPLICATION_ACK,MDDB_REPLICATION_ACK_TIMEOUT. With fewer than three nodes automatic failover stays off. Docs: docs/CLUSTER.md. - Collection placement across node groups (GO-052, stage 1). With
MDDB_PLACEMENT_GROUPS, nodes form groups, each a replicated cluster, and every collection lives whole in one group. A meta group holds the versioned placement map and the global settings, which every other group copies. New collections go to a group by consistent hash and are pinned there. Every node routes REST and gRPC requests to the owning group, forwarding them or answering421withX-MDDB-LeaderandX-MDDB-Group(MDDB_PLACEMENT_ROUTE=forward|redirect).POST /v1/placement/movemoves a collection while it is read and written without losing an acknowledged write (20,000 documents with vectors in about 8.5 s under load);GET /v1/placement,mddb-cli placement, and a placement view in the panel's Cluster tab. Cross-search over several groups returns what one node would;/v1/statscovers every group. A collection is never split across groups and nothing rebalances automatically. - Vector indexes start from disk (SRCH-023). Each collection's HNSW graph (with tombstones), IVF centroids and assignments, PQ/OPQ codebooks and codes, and SQ/SQ4 parameters are kept in a versioned, CRC-32C-checksummed checkpoint (
<db>.ann/<collection>.ann, or<collection>.db.annnext to the collection file in the per-collection layout), written in the background (MDDB_VECTOR_INDEX_CHECKPOINT_INTERVAL_SEC, default 300;MDDB_VECTOR_INDEX_CHECKPOINT_CHANGES, default 50000) and at a clean shutdown, atomically. At start it is matched vector by vector against the store and vectors written since are caught up; a damaged file, another format version, model or dimension, or a stale structure is rebuilt as before and never fails the start. 200,000 vectors × 128 dimensions: HNSW ready in 4–10 s instead of 117 s; IVF/PQ/OPQ/SQ/SQ4 in 4–10 s instead of 56 minutes of training.MDDB_VECTOR_INDEX_PERSIST=falsekeeps the previous behaviour./v1/vector-statsreportsindexPersistenceandhnswTombstones,/healthreportsvectorIndexCheckpoints, metricsmddb_vector_index_checkpoint_{load_seconds,write_seconds,bytes}.POST /v1/vector-compactrebuilds an HNSW graph without its tombstones while searches and writes continue. - Model reranking after retrieval (RAG-011). An optional stage orders a search's best candidates with a reranking model (
MDDB_RERANK_PROVIDER=http,MDDB_RERANK_API_URL,_API_KEY,_MODEL,_TIMEOUT_MS,_MAX_CANDIDATES,_CACHE_SIZE, or a stored configuration ofkind: "rerank"in/v1/embedding-configs, whose key is never returned). Request optionrerank: {enabled, candidates, topN, explain}on/v1/vector-search,/v1/hybrid-search,/v1/fts,/v1/cross-search, the matching gRPC calls, the MCP search tools and GraphQLvectorSearch/fullTextSearch; collection default inretrieval.rerank. The model reads passages of at most 2048 characters. A timeout, provider error, unusable answer or spent budget returns the search's own order withrerankSkipped; reranking never fails a search. Calls and tokens count against the collection's daily embedding budget./v1/evalcompares configurations with and without reranking and reportsp95Ms; the Search Advisor recommends reranking only when the evaluation set measures a higher nDCG. Off by default: with nothing configured or requested, answers are unchanged. - Tenant isolation (GO-054). Tenant-wide quota (
maxDocuments,maxBytes,maxVectors,maxCollections,embeddingCallsPerDay,embeddingTokensPerDay,vectorRamShare) summed over the tenant's collections and enforced by the collection quota's write gate (507 /RESOURCE_EXHAUSTEDwith"tenant"). Per-tenant and per-API-key read/write rate and concurrency limits on REST, gRPC, MCP and GraphQL (429 TENANT_LIMIT+Retry-After); per-tenant search slots inside the search concurrency limit. Background index and embedding queues serve tenants in turn (internal/fairq). Reindex concurrency limits per tenant and per server; an async job showsqueuedwhile it waits.GET /v1/tenants,GET/PUT/DELETE /v1/tenants/{id},GET /v1/tenants/{id}/usage,mddb_tenant_*metrics and a panel Tenants page. New settings, all defaulting to no limit:MDDB_TENANT_READ_RPS,MDDB_TENANT_WRITE_RPS,MDDB_KEY_READ_RPS,MDDB_KEY_WRITE_RPS,MDDB_TENANT_MAX_CONCURRENT_SEARCHES,MDDB_TENANT_MAX_CONCURRENT_WRITES,MDDB_TENANT_MAX_CONCURRENT_REINDEXES,MDDB_TENANT_QUEUE_TIMEOUT_MS,MDDB_REINDEX_MAX_CONCURRENT,MDDB_TENANT_VECTOR_RAM_SHARE,MDDB_EMBEDDING_PARK_MAX. - Replication settings (GO-050).
MDDB_BINLOG_SYNC=interval|commit(defaultinterval),MDDB_BINLOG_MAX_SIZE,MDDB_BINLOG_MAX_AGE,MDDB_BINLOG_HARD_MAX_SIZE,MDDB_REPLICATION_TLS,_CA,_CERT,_KEY,_SERVER_NAME; a binlog sidecar<binlog>.meta; a follower keeps its own copy of the leader's binlog;protocol_versionandlog_idin the replication handshake. - Reproducible benchmark profile (TEST-005).
make bench-profile PROFILE=small|full(tools/bench/profile) starts its own servers on a seeded corpus and measures full-text, per-algorithm vector, hybrid and filtered search (p50/p95/p99, QPS, recall@10 against exact search), single and batched ingest, mixed load, restart time to each index answering, peak memory,kill -9recovery with every acknowledged write verified, and follower lag and catch-up. Results go todocs/benchmarks/<version>-<profile>.json;docs/BENCHMARK.mdrenders its tables from them and a test fails when the two disagree. Recall@10 gates for IVF, PQ, OPQ and BQ join the HNSW and SQ4 ones. explainreports the filter strategy (SRCH-024):plan.strategyisprefilter,graph+filter,ivforscan+filter, on REST, MCP, gRPC (SearchPlan.strategy) and GraphQL.- CI: the
bench-profileworkflow runs the small profile on pull requests that touch the vector indexes, search, binlog, replication or the harness, and fails on a recall@10 drop over 0.02, a confirmed p95 growth over 15% relative to the run's own mean, a lost write, or a follower that no longer catches up. Thecluster-processworkflow runs a three-processkill -9failover test on pull requests that touch replication, cluster or binlog code.
Changed
- Filtered vector search walks the HNSW graph with the filter (SRCH-024). The filter is applied during the walk; excluded nodes are used for navigation but never returned, and the beam (
efSearch × √share) counts admitted nodes only. A filter admitting too little for the walk to pay is scored exactly over the admitted documents. The whole-collection fallback is gone; a short walk is counted inmddb_operations_total{operation="vector_filter_fallback"}. At 200,000 vectors p95 dropped from 29.7 to 1.3 ms at a 10% filter and from 43.6 to 0.64 ms at 25%, with recall@10 of 0.98–1.000.autonow compares the measured costs of the exact scan, the HNSW walk and a trained IVF instead of a fixed 5% threshold. - The embedding queue and the metadata index queue are per tenant (
MDDB_EMBEDDING_QUEUE_SIZEnow bounds each tenant). A full embedding queue parks the job (still pending, retried within a second) instead of dropping it afterMDDB_EMBEDDING_QUEUE_WAIT. make sonar-localruns the SonarScanner CLI fromPATHwhen Docker is not installed, and its--dry-runno longer needs either.- A follower applies replicated entries in batches of up to 1,024, one transaction per database file, and reloads each in-memory configuration once per batch instead of once per entry.
Fixed
- Replication recovers instead of drifting (GO-050). A follower records the last LSN it applied in the same transaction as the change and resumes from it after a restart. An entry it cannot apply now stops it (
healthy=false,last_error) and it takes a snapshot; it used to log and skip the entry. A leader not stopped cleanly starts a new binlog under a new ID and its followers resynchronise. Binlog retention is enforced and never drops entries a follower has not acknowledged, up to the hard size. Snapshots work in the per-collection layout. The follower dials TLS/mTLS when configured.AcknowledgeLSNrequires the same authorisation as the streams./v1/replication/statusreports measured values (healthy,last_error,leader_addr,connected, lag in ms from entry timestamps,lag_entries,log_id, binlog limits), and the Cluster panel shows them. - A follower keeps up on a real disk. It applied each binlog entry in its own transaction, so a document (dozens of entries) cost dozens of syncs an...
MDDB v2.19.7
MDDB 2.19.7
Added
- Export selected documents (FE-014).
POST /v1/exporttakes an optionalkeyslist ([{"key","lang"}]) and exports only those documents, in the order listed, each once. A key that names no document is skipped, and an entry withoutkeyorlangis refused with 400. WithfilterMetaas well, only listed documents that also match are exported. Withoutkeysthe export is unchanged. The MCP toolexport_documentstakes the samekeys. In the panel, the document list's selection bar (formerly the batch-delete bar) has Export ZIP / Export NDJSON for the ticked documents, with the file named by the server. Selection and export now also work on read-only collections, where Delete selected stays hidden. - Panel: what a revision changed (FE-013). The revision history opens a revision on a Changes view — the metadata keys and the content lines that differ from the current version — next to Restore this version, so a restore is no longer blind; Preview still shows the revision rendered. Very large documents fall back to showing the old part removed and the new part added instead of a line-by-line match.
- Panel: Compare with… (FE-013). The document viewer's new More menu compares the open document with any other one you can read — another language of the same key, another key or collection — as a metadata and line diff.
- Panel: Download HTML and Print / PDF (FE-017). More → Download HTML saves the document as a standalone
<key>.<lang>.html, rendered through the viewer's sanitizer and carrying a Content-Security-Policy that allows no scripts; More → Print / PDF opens the browser's print dialog with only the document on the page. No PDF library added. - Panel: custom document templates (FE-018). Templates are ordinary documents in the reserved
_templatescollection (key = name, content = starting Markdown, metadata = default metadata), so they are shared by every panel and get revisions, backups and replication without a new API. New Document offers the built-in and custom templates; More → Save as template saves the open document there. Read and write permission on_templatesdecide who sees and saves templates; without read permission only the built-in templates are offered. The Elasticsearch-compatible/essurface rejects index names starting with_, so templates are not reachable there. - Panel: editor keyboard shortcuts (FE-016). In the Markdown editor
Ctrl/Cmd+B,IandKapply bold, italic and link — the same actions as the toolbar buttons, whose tooltips now name the key.Ctrl/Cmd+Ssaves the document (or creates it in New Document once a key is set) instead of opening the browser's Save page.Tab/Shift+Tabindent and outdent the selected list items; outside a listTabstill moves the focus, so the editor is no keyboard trap.Escleaves fullscreen. Anywhere in the panel, outside form fields,/focuses Search the menu and?opens the list of shortcuts. - Panel: drafts of edited documents (FE-019). The editor keeps unsaved changes as a draft in the browser's
localStorage(draft:<panel host>:<collection>:<key>:<lang>: the Markdown, the metadata, the starting revision and the time — never a token), one second after typing pauses and at once when the editor closes or the page is left. Leaving the page with unsaved changes asks first. A document with a draft says so in the viewer (Open in editor / Discard draft). The editor offers the draft for restore or discard, with a line diff and a note when the document has a newer revision. A browser that blocks storage simply keeps no drafts. - Panel: saves no longer overwrite a newer revision (FE-019). The editor saves with
expectedRevision(the revision the edit or restored draft started from). If someone saved the document in the meantime, the server's409is shown with both revisions, the text stays in the editor and its draft, and Save my version anyway saves conditionally on the revision just reported. - Panel: spelling against the collection dictionary in the editor (FE-020). An opt-in check below the editor (off by default; the browser's spellcheck is unchanged) sends the text's words to
/v1/spell-suggestafter a 1.5 s pause — only words not checked before, at most 200 per request, without code, link targets, tags or URLs. It lists word → correction with Replace, which replaces every whole-word occurrence and keeps capitals.
Fixed
- Documentation site on phones. Below 768px the docs sidebar no longer appears as a list of about 50 links above every page. It folds into a "Documentation / " bar under the navbar that stays in view while scrolling. A tap opens the full list as a scrollable overlay; Escape, a tap outside, or picking a page closes it. Without JavaScript the list stays open as before. The wide-screen layout is unchanged.
- Spelling suggestions and clean-up ignore punctuation around a word.
/v1/spell-suggestand/v1/spell-cleanupsplit text on whitespace only, so in prose "document," was reported as a misspelling of "document", and "documnt." was not checked at all. Leading and trailing punctuation and symbols are now set aside before the lookup and put back around the correction ("(documnt),"→"(document),"); punctuation inside a word (don't,e-mail) stays part of it.
Removed
- Panel roadmap in docs/PANEL.md. Its "Completed" and "Planned" lists had drifted from the code: half of the planned items (document deletion, bulk delete, full-text search, revision history, login, roles, drag-and-drop import, collection management, settings) had shipped long ago. Planned panel work is now tracked as tasks in the project's issue backlog, not in a hand-kept list.
Installation
Debian / Ubuntu
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.7/mddb_2.19.7_amd64.deb
sudo dpkg -i mddb_2.19.7_amd64.debFedora / RHEL
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.7/mddb-2.19.7.x86_64.rpm
sudo rpm -i mddb-2.19.7.x86_64.rpmHomebrew
brew install tradik/tap/mddbSnap
sudo snap install mddbDocker
docker pull tradik/mddb:2.19.7Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.
MDDB v2.19.6
MDDB 2.19.6
Added
- Conditional create (#423).
POST /v1/addtakesifAbsent: trueand writes the document only when it does not exist yet. If it exists, the answer is409 {"error":"revision conflict","expectedRevision":"","currentRevision":"…"}and nothing is written. The check runs inside the write's transaction, so two clients creating the same key at once cannot both succeed. A document past its TTL counts as absent. CombiningifAbsentwithexpectedRevisionis a400. The same option exists as gRPCAddRequest.if_absent(field 8,ABORTED), MCPadd_documentif_absentand GraphQLaddDocument(ifAbsent:). The Elasticsearch-compatible_createnow uses this check instead of reading the document before writing it. - Conditional delete (#424).
POST /v1/deletetakesexpectedRevisionand deletes only while the document is at that revision. Otherwise it returns the same409asPATCH /v1/update; a missing document is a conflict with an emptycurrentRevision. The same option exists as gRPCDeleteDocumentRequest.expected_revision(field 4,ABORTED), MCPdelete_documentexpected_revisionand GraphQLdeleteDocument(expectedRevision:). Requests without it behave as before. - Revision in search results (#425). Every
POST /v1/searchresult carriesrevision, the same valuePOST /v1/getreturns; gRPCSearch, MCPsearch_documentsand GraphQLsearchcarry it too. A client can edit documents from a list with conditional writes without reading each one first. - Go client:
Document.Revision,AddRequest.IfAbsentandExpectedRevision,DeleteRequest.ExpectedRevision,Client.Delete, and(*APIError).RevisionConflict(). - MCP API keys by fingerprint.
DELETE /v1/mcp/keysandPOST /v1/mcp/keys/disablealso accept{"fingerprint"}, which is what the key list shows; if two keys share a fingerprint, the answer is409and neither key changes.{"key"}works as before.
Fixed
- Panel: the sidebar footer shows the panel's real version. It always read v2.11.4.
- Panel: the documented "Advanced Filtering" can be reached. A collection's document list has a "Sort & filter" control: metadata filters, sort by added date, updated date or key, order, and documents per page. The component existed but nothing showed it.
- Panel: modal backgrounds are translucent again. Tailwind 4 dropped
bg-opacity-*, so 17 overlays were solid black. - Panel: the document viewer stays inside the window next to the sidebar. Long keys and metadata wrap, and Markdown is rendered the same way as in the editor preview: headings, links and inline code.
- Panel: long collection names in the menu end with an ellipsis instead of running into the document count.
- Panel: the collection icon placeholder shows 📚, not the escape code
\u{1F4DA}. - Panel: the cron hint lists the accepted forms. These are 5 fields, 6 with seconds first, or
@daily/@every 1h; the hint said 6 fields only. - Panel: "Run now" explains the 503 it gets when the scheduler is off. Start the server with
MDDB_CRONS=true. The docs say so too. - Panel: Disable and Delete work for MCP API keys. They sent the
mcp_marker instead of the key and always got a 404; keys are now listed and acted on by fingerprint. GET /v1/mcp/configand the panel's LLM Connections page put addresses on the server domain. They useMDDB_MCP_DOMAINor the Server Domain field. A server listening on an explicit address used to producelocalhost127.0.0.1:…, andrestBaseUrlignored the domain.
Installation
Debian / Ubuntu
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.6/mddb_2.19.6_amd64.deb
sudo dpkg -i mddb_2.19.6_amd64.debFedora / RHEL
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.6/mddb-2.19.6.x86_64.rpm
sudo rpm -i mddb-2.19.6.x86_64.rpmHomebrew
brew install tradik/tap/mddbSnap
sudo snap install mddbDocker
docker pull tradik/mddb:2.19.6Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.
MDDB v2.19.5
MDDB 2.19.5
Added
-
A git repository as a synced source (#421). A cron rule's
synctakessource: "git", which keeps a collection in step with a repository:urlmust be https.refis a branch, a tag, orlatest-release: the forge's latest release, else the highest stable semver tag. An emptyreffollows the default branch.includeandexcludetake the same globs asmddb-cli autoindex.forgenames a self-hosted GitHub, GitLab, Gitea or Forgejo; github.com, gitlab.com and codeberg.org are recognised.
mddbd needs no git binary. It reads the repository's refs over HTTP, the forge's release API and the commit's tar.gz archive. The archive is streamed with size limits; links are skipped and paths that leave the repository refuse the run.
Keys are repository-relative paths, with the same metadata
autoindexwrites plussyncRefandsyncCommit. A collection seeded byautoindexcan be taken over withadopt: true, without duplicates.When the commit is the one the last run read, the run downloads nothing and
lastResult.upToDatesays so. Otherwise only files whose content changed are written, andpruneremoves deleted ones.lastResultreports theref, thecommitand a link to it.Private repositories use a stored, sealed secret (
tokenSecretRef).POST /v1/automation/{id}/hookruns the sync from a signed GitHub, Gitea or Forgejo webhook, or a GitLab token (hookSecretRef).gRPC adds fields only:
SyncActionProto12–18 andAutomationRunResultProto10–13.In the panel, the synced-sources form has a new source type, "Git repository": URL, ref, include/exclude, the forge for self-hosted servers, the token and webhook secrets, and adopt. A rule's last run shows the ref and the short commit, linked to the forge, or "up to date". Collection settings list the git source with its URL and ref. Tested by syncing this repository's documentation at its latest release: 65 documents; the next run downloaded nothing.
Fixed
--compile-commandsreaches a versioned clangd (#420). WithMDDB_LSP_C=/usr/bin/clangd-22, which is how Debian and Ubuntu install clangd, autoindex did not recognise the program as clangd. It therefore never passed--compile-commands-dir, so an out-of-tree database (make O=…,cmake -B …) never reached clangd, and the run stopped with advice to generate a database that already existed. Program names with a version suffix (clangd-22,clangd-22.1) or.exenow count as the server in the table and get its arguments. When the command really is another program, the error now names the argument to add toMDDB_LSP_C.
Installation
Debian / Ubuntu
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.5/mddb_2.19.5_amd64.deb
sudo dpkg -i mddb_2.19.5_amd64.debFedora / RHEL
curl -LO https://github.com/tradik/mddb/releases/download/v2.19.5/mddb-2.19.5.x86_64.rpm
sudo rpm -i mddb-2.19.5.x86_64.rpmHomebrew
brew install tradik/tap/mddbSnap
sudo snap install mddbDocker
docker pull tradik/mddb:2.19.5Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.