Skip to content

Releases

MDDB v2.19.14

Choose a tag to compare

@github-actions github-actions released this 30 Nov 21:42

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: false on MCP search answers (#465). full_text_search, semantic_search, hybrid_search, search_documents and code_symbol add the field, in the text and in structuredContent, when the collection they were asked about does not exist; their output schemas list it, and answers about existing collections are unchanged. code_search and code_symbol line answers say collection "x" does not exist in one line.
  • countsPending, and the age of the counts over MCP (#466). In GET /v1/stats a collection the snapshot has not counted yet carries countsPending: true. The MCP get_stats tool carries it too, with statsComputedAt and statsAgeSeconds.
  • mddb-cli Dockerfile build arguments MDDB_VERSION and MDDB_COMMIT, passed to the binary's --version.

Fixed

  • GET /v1/stats lists 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 is MDDB_STATS_TTL plus one full count old, so a collection filled by mddb-cli autoindex could 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. gRPC Stats, GraphQL stats and the MCP get_stats tool list collections the same way. With statsPending set, collections are now listed (each with countsPending) where the list was empty.
  • mddb-cli --version names the commit a build came from (#467). make build gives mddb-cli version 2.19.14 (commit c87c340b9f0d), a plain go build in a checkout gives dev (commit c87c340b9f0d-dirty), and dev alone means the build recorded nothing. The version is still the first word after version. make build and make build-windows pass the commit; make version prints it. mddbd --version is 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-graph and the searches) one by one, the exact 401 and 403 bodies, 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/symbol and /v1/fts. The Permission Types table said statistics need admin; /v1/stats needs read on *.
  • docs/API.md says when /v1/fts answers with passages instead of results (the request's format, or the collection's retrieval profile, which mddb-cli autoindex sets for a collection that is mostly source code), and how the /v1/stats counts are cached.
  • openapi.yaml: the 404 for a missing collection, countsPending, and the 401/403 answers of /v1/symbol, /v1/code-graph and /v1/code-languages.
  • docs/INSTALLATION.md and the mddb-cli README no longer name the Makefile targets build-cli and install-all, which do not exist.

Dependencies

  • Go: quic-go 0.66.0, golang.org/x/net 0.63.0, klauspost/compress 1.20.5, bits-and-blooms/bloom 3.7.2, go-sql-driver/mysql 1.10.2 (test module).
  • Rust (mddb-chat): sha2 0.11.2, toml 1.2.3.
  • npm (panel, chat widget, GitHub Action, Chrome extension, Grafana datasource): vite 8.4.0, vitest 5.1.2, webpack 5.113.0, undici 8.13.1, @grafana/* 13.3.2, lucide-react 1.81.0, autoprefixer 10.7.0, @typescript-eslint/* 8.74.0 and type packages. The GitHub Action's dist/ is rebuilt.
  • Docker: grafana/grafana 13.3.2 (Grafana datasource development image).
  • GitHub Actions: actions/setup-go 7.1.0, github/codeql-action 4.39.5, astral-sh/setup-uv 10.4.0, sigstore/cosign-installer 4.1.4, SonarSource/sonarqube-scan-action 8.5.1, spagu/ssg 1.9.15.

Changed

  • Breaking: a search of a collection that does not exist answers 404 (#465). /v1/fts, /v1/vector-search, /v1/hybrid-search and /v1/symbol answered 200 with an empty result, the same as a query that matched nothing, so a typo in a collection name looked like no match. They now answer 404 {"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/stats snapshot) and only when the answer is empty, so a search with hits costs nothing more. A query that matches nothing in an existing collection is 200 as before. A client that searches a collection before its first write must create it first or treat this 404 as an empty result. /v1/search, /v1/cross-search, gRPC and GraphQL are unchanged. docs/API.md also says when /v1/fts answers with passages instead of results.
  • Documentation no longer says in which release an option appeared, for releases before 2.19.0. Markers such as (v2.18.9+) and Since v2.18.8, and sentences that described how older releases behaved, are removed from docs/ and README.md. Headings that carried a version lost it, so their anchors changed (SEARCH.md#grouping-results-v2188 is 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.md and LISTING.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.deb

Fedora / 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.rpm

Homebrew

brew install tradik/tap/mddb

Snap

sudo snap install mddb

Docker

docker pull tradik/mddb:2.19.14

Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.

MDDB v2.19.13

Choose a tag to compare

@github-actions github-actions released this 22 Nov 22:14

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, toolset code): 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, or 5 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 the path prefix (up to 5 000, then the count says where it stopped), so it lists what grep -i lists. mode: "words" (default) is the full-text search and mode: "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 embeddings meaning answers by words and says so. 116 MCP tools.
  • code_symbol: format: "lines" (MCP). The same lookup as lines: path:start-end kind Qualified.Name for definitions, callers, callees, implementations and siblings, path:line in Enclosing.Func: text for 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 (excludeTests on POST /v1/symbol): leaves out every passage in a test file before the limit is applied.
  • code_symbol: path may 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, totals holds how many passages it had, per relation, so a caller knows what a second call would bring.
  • passage_tokens (passageTokens on REST) on searches with format: "passages": the most tokens one passage may hold, 1 to 8 000.
  • Default MCP instructions for servers that hold code. When MDDB_MCP_INSTRUCTIONS is unset, the request's key is bound to no chat scenario, the code toolset is available to it and some collection holds code, initialize carries 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=none turns the default off.
  • A size budget test (mcp_budget_test.go): byte ceilings for the schemas of code_search and code_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 carries truncated: true; its lines are the lines returned. Raise the bound with passage_tokens. Chunks (retrieval_mode: chunk or window, and vector hits) are bounded by the collection's chunk size as before and are cut only when passage_tokens is 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_symbol answer. 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

  • fields was ignored with format: "passages" on search_documents, full_text_search, semantic_search, hybrid_search and cross_search: a call that asked for keys alone received every passage in full (29 248 bytes where 2 216 were asked for). With fields set, passages now come without their text, unless include_content: true is passed, as fields drops 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 return structuredContent, so the line answers are on tools without one.
  • excludeTests, totals, passageTokens and truncated are on every surface: REST, MCP, gRPC (CodeSymbolRequest.exclude_tests = 7, CodeSymbolResponse.totals = 17, Passage.truncated = 16, passage_tokens on 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.deb

Fedora / 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.rpm

Homebrew

brew install tradik/tap/mddb

Snap

sudo snap install mddb

Docker

docker pull tradik/mddb:2.19.13

Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.

MDDB v2.19.12

Choose a tag to compare

@github-actions github-actions released this 22 Nov 19:19

MDDB 2.19.12

Fixed

  • MCP tools with an output schema returned no structuredContent (#461). Nine tools declare an outputSchema in tools/list (search_documents, get_stats, aggregate, semantic_search, vector_stats, full_text_search, classify_document, hybrid_search, get_checksum) and answered tools/call with content only. The MCP specification requires structuredContent that 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_symbol and code_graph declare no schema and were not affected). Every successful call of a tool with an output schema now returns structuredContent, the same JSON object as the text content, on every protocol revision and on plain POST /tools/call. The declared schemas now describe what the tools return in each output form (full, fields projection, format: "passages", group_by, capped limit), with the types on the wire: aggregate declared a total it never sent (it is totalDocs), and get_stats collections is null on 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 return structuredContent only for a capped limit or a quota refusal. A field is added and nothing removed, so existing clients keep working.
  • hybrid_search over MCP ignored facet_by and facet_max_values. Both are in the tool's input schema; the answer now carries facets (the results counted per value of each key), as POST /v1/hybrid-search returns them. An answer in format: "passages" carries none.
  • Output schemas accept null where the tools can send it: matchedTerms of a full_text_search result and a document's meta.

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.deb

Fedora / 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.rpm

Homebrew

brew install tradik/tap/mddb

Snap

sudo snap install mddb

Docker

docker pull tradik/mddb:2.19.12

Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.

MDDB v2.19.11

Choose a tag to compare

@github-actions github-actions released this 22 Nov 17:14

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, and state, labels, assignees, milestone, dates, linked items and the file paths the 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}/hook refreshes 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_automation stays administration. 115 MCP tools.

  • The repository of a collection. Collection config takes repository: {url, forge, tokenSecretRef}. A git or issues rule may leave out url and tokenSecretRef and take them from its own collection or from the one named in repositoryFrom, 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: true keeps 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 the memoryNamespace it 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>-work collection: plan add, next (takes the first open row with a conditional write, so two callers get different rows), done, list, import and export (a Markdown table). No new server surface.

  • Agent instructions: a Work tracking section (next row, recall, issues through the mirror, hand-over) in AGENTS.md and 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 --watch and hook install on 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, or pairs from 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/build takes collections and name; 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/inspect shows 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/backups lists the backup files in MDDB_BACKUP_DIR (name, size, date, whether a checksum file lies beside it) and GET /v1/backups/{name}/download serves one; both admin only, confined to backup files in that directory, every download in the audit log.

  • Feature modules have a plain title and summary (GET /v1/features, gRPC FeatureProto), beside the technical description.

  • 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_sessions and memory_session_history, inside their own namespace.

Fixed

  • mddb-chat: url 2.5.9 (RUSTSEC-2026-0592, a stack overflow in Url::origin() on nested blob: URLs); form_urlencoded 1.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; the meta. 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 run wrote the CLI usage text into .git/mddb-autoindex.log after 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.deb

Fedora / 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.rpm

Homebrew

brew install tradik/tap/mddb

Snap

sudo snap install mddb

Docker

docker pull tradik/mddb:2.19.11

Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.

MDDB v2.19.10

Choose a tag to compare

@github-actions github-actions released this 22 Nov 08:32

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). full means the user can read all of them, so the scenario is offered to them. via names the rule that matched: admin, user, user:*, group:<name> or group:<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, users is empty. A caller without admin gets 403 whether the scenario exists or not; an unknown scenario gives 404. 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_username account. With authentication off, or for a user who is not admin on "*", the card says so instead of showing the table. The store gained openView(mode, target), so a link can open a view on a given tab.
  • Open WebUI, External Knowledge, OpenAI-compatible provider (#446). GET /v1/vector_stores lists the collections the caller may read (read permission, tenant namespace and MCP API key scope per collection; limit/after paging) and POST /v1/vector_stores/{id}/search searches one collection or alias (acme%2Fdocs included): hybrid search when the collection has embeddings, full text otherwise; passages scored 0–1 with the document's metadata, collection, lang and url. Errors use the OpenAI error object with MDDB's status codes. Module vectorStores, off by default. In Open WebUI: provider OpenAI-compatible, endpoint <mddb>/v1, an mddb_live_… key.
  • Open WebUI, External Knowledge, Qdrant provider (#447). Module qdrantCompat (off by default; MDDB_QDRANT_COMPAT=true turns it on by default) serves GET /qdrant and POST /qdrant/collections/{name}/points/query, the requests qdrant-client's query_points makes. The vector runs through /v1/vector-search (auto, chunk mode); each point is one passage with a stable UUID and MDDB's similarity as score. A vector of another dimension is a 400 naming both; using, filter, prefetch and other query kinds are refused by name. The api-key header is accepted as an MDDB API key on /qdrant. Reported as qdrantCompat in /v1/config. test/qdrant-compat runs the unmodified qdrant-client against a built server (make test-qdrant-compat, CI es-compat job). 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=hybrid on the URL, MDDB_WEBSEARCH_COLLECTIONS server-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 (or MDDB_CHAT_OPENAI_API_ENABLED=true; off by default) adds GET /v1/models and POST /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: maxTurns over the messages sent, the token budget against the request size, messagesPerMinute and rate_limit_per_minute per key. Client max_tokens only 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.json for 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), and code --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, --watch and autoindex hook (AGT-006). --changed-since REF sends only the files git reports changed since a commit, plus untracked ones, and with --prune deletes the deleted ones. --watch indexes, 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 to post-commit, post-merge, post-checkout and post-rewrite (honouring core.hooksPath, keeping existing hooks); the hook runs autoindex hook run in the background from the commit it last indexed, under a lock, so a commit never waits or fails. uninstall and status too. Each leaves the documents a full --prune run would. Docs: docs/BULK-IMPORT.md.
  • MDDB_API_KEY is the default for mddb-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: false in /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; /es is always mounted and answers 404 while the module is off. MDDB_ES_COMPAT=true still turns it on by default, so a server that used it keeps /es after the upgrade; a switch set on the Features page wins. esCompat.enabled in /v1/config follows 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 names MDDB_MCP_API_KEY_ENABLED instead of "invalid token" / "invalid api key" (#445). POST /v1/mcp/keys still creates the key and adds a warning while 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). With MDDB_MCP_API_KEY_ENABLED off, 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 collection empty, so search_docs failed 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 an http:// 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.deb

Fedora / 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.rpm

Homebrew

brew install tradik/tap/mddb

Snap

sudo snap install mddb

Docker

docker pull tradik/mddb:2.19.10

Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.

MDDB v2.19.9

Choose a tag to compare

@github-actions github-actions released this 21 Nov 23:56

MDDB 2.19.9

Added

  • MCP API keys scoped to collections (#439). A key made with POST /v1/mcp/keys takes collections (names, aliases or role: targets, resolved on every call) and readOnly. 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 of reference_*) 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 to resources/read, custom tools, completion/complete, the rag-pipeline prompt, chat_scenario_list and /events on the MCP listener, and tools/list leaves out what the key can never call. The scope applies whether or not the main authentication is on. Static keys: MDDB_MCP_API_KEYS entries are key[: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 scenario reaches the scenario's allowedCollections, read-only, intersected with the key's own collections when both are set; the scenario is read on every call, so editing it changes what the key reaches. initialize and server/discover return the scenario's composed prompt (the text of /v1/chat/scenarios/{name}/prompt) as instructions. When the scenario is deleted or disabled, or the chat feature is off, every call of the key is refused and the prompt is not returned. A scenario with no allowedCollections gives 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.mcp reports publicUrl, apiKeyEnabled and oauthEnabled (whether the OAuth server runs, not the raw setting). New MDDB_MCP_PUBLIC_URL: the base URL clients dial behind a proxy or tunnel, an absolute http/https URL; a trailing slash or /mcp is removed. Unset, publicUrl is 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 http command (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's publicUrl is 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= and DELETE /v1/auth/group-permissions?group=&collection= (admin; 404 when the grant does not exist), GraphQL deletePermission and deleteGroupPermission, 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 * gets 409.
  • 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 its og:image and its cover on the index. The categories live in docs/metadata.json, now committed; the docs-metadata Make 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 are og:type article with article:published_time, article:tag and a BlogPosting JSON-LD block (headline, dates, card image, publisher); every og:image states its 1200×630 size.

Changed

  • Static MCP key entries with four fields (#439). An entry of MDDB_MCP_API_KEYS with 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 toolsets search, collections foo. 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 to src/lib/llm-connection-templates.js and src/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/endpoints described POST /v1/auth/permissions as "Get user permissions"; it sets one.
  • docs/API.md: the group-permission example sent group; the field is groupName.
  • 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 showed llmApiKey=sk-..., which the secret scanner reads as a key since the templates moved to src/lib/llm-connection-templates.js; it now reads llmApiKey=<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, 403 and 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 answers 403 to a caller without the permission whether or not the collection exists. docs/API.md and openapi.yaml state what /v1/fts answers for a collection that does...
Read more

MDDB v2.19.8

Choose a tag to compare

@github-actions github-actions released this 16 Nov 23:33

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 after kill -9 of 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 to rejected-writes-<node>-term<T>-<time>.jsonl and the node resynchronises. A node that does not lead answers a write with REST 421 + X-MDDB-Leader, gRPC ErrorInfo NOT_LEADER, or an MCP error naming the leader; during an election 503 / UNAVAILABLE. New: POST /v1/replication/promote and /v1/replication/demote, mddb-cli replication status|promote [--force]|demote, MDDB_REPLICATION_ACK=quorum (default async, 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 answering 421 with X-MDDB-Leader and X-MDDB-Group (MDDB_PLACEMENT_ROUTE=forward|redirect). POST /v1/placement/move moves 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/stats covers 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.ann next 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=false keeps the previous behaviour. /v1/vector-stats reports indexPersistence and hnswTombstones, /health reports vectorIndexCheckpoints, metrics mddb_vector_index_checkpoint_{load_seconds,write_seconds,bytes}. POST /v1/vector-compact rebuilds 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 of kind: "rerank" in /v1/embedding-configs, whose key is never returned). Request option rerank: {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 GraphQL vectorSearch / fullTextSearch; collection default in retrieval.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 with rerankSkipped; reranking never fails a search. Calls and tokens count against the collection's daily embedding budget. /v1/eval compares configurations with and without reranking and reports p95Ms; 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_EXHAUSTED with "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 shows queued while 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 (default interval), 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_version and log_id in 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 -9 recovery with every acknowledged write verified, and follower lag and catch-up. Results go to docs/benchmarks/<version>-<profile>.json; docs/BENCHMARK.md renders 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.
  • explain reports the filter strategy (SRCH-024): plan.strategy is prefilter, graph+filter, ivf or scan+filter, on REST, MCP, gRPC (SearchPlan.strategy) and GraphQL.
  • CI: the bench-profile workflow 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. The cluster-process workflow runs a three-process kill -9 failover 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 in mddb_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. auto now 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_SIZE now bounds each tenant). A full embedding queue parks the job (still pending, retried within a second) instead of dropping it after MDDB_EMBEDDING_QUEUE_WAIT.
  • make sonar-local runs the SonarScanner CLI from PATH when Docker is not installed, and its --dry-run no 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. AcknowledgeLSN requires the same authorisation as the streams. /v1/replication/status reports 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...
Read more

MDDB v2.19.7

Choose a tag to compare

@github-actions github-actions released this 15 Nov 22:14

MDDB 2.19.7

Added

  • Export selected documents (FE-014). POST /v1/export takes an optional keys list ([{"key","lang"}]) and exports only those documents, in the order listed, each once. A key that names no document is skipped, and an entry without key or lang is refused with 400. With filterMeta as well, only listed documents that also match are exported. Without keys the export is unchanged. The MCP tool export_documents takes the same keys. 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 _templates collection (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 _templates decide who sees and saves templates; without read permission only the built-in templates are offered. The Elasticsearch-compatible /es surface rejects index names starting with _, so templates are not reachable there.
  • Panel: editor keyboard shortcuts (FE-016). In the Markdown editor Ctrl/Cmd+B, I and K apply bold, italic and link — the same actions as the toolbar buttons, whose tooltips now name the key. Ctrl/Cmd+S saves the document (or creates it in New Document once a key is set) instead of opening the browser's Save page. Tab / Shift+Tab indent and outdent the selected list items; outside a list Tab still moves the focus, so the editor is no keyboard trap. Esc leaves 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's 409 is 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-suggest after 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-suggest and /v1/spell-cleanup split 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.deb

Fedora / 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.rpm

Homebrew

brew install tradik/tap/mddb

Snap

sudo snap install mddb

Docker

docker pull tradik/mddb:2.19.7

Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.

MDDB v2.19.6

Choose a tag to compare

@github-actions github-actions released this 15 Nov 17:48

MDDB 2.19.6

Added

  • Conditional create (#423). POST /v1/add takes ifAbsent: true and writes the document only when it does not exist yet. If it exists, the answer is 409 {"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. Combining ifAbsent with expectedRevision is a 400. The same option exists as gRPC AddRequest.if_absent (field 8, ABORTED), MCP add_document if_absent and GraphQL addDocument(ifAbsent:). The Elasticsearch-compatible _create now uses this check instead of reading the document before writing it.
  • Conditional delete (#424). POST /v1/delete takes expectedRevision and deletes only while the document is at that revision. Otherwise it returns the same 409 as PATCH /v1/update; a missing document is a conflict with an empty currentRevision. The same option exists as gRPC DeleteDocumentRequest.expected_revision (field 4, ABORTED), MCP delete_document expected_revision and GraphQL deleteDocument(expectedRevision:). Requests without it behave as before.
  • Revision in search results (#425). Every POST /v1/search result carries revision, the same value POST /v1/get returns; gRPC Search, MCP search_documents and GraphQL search carry it too. A client can edit documents from a list with conditional writes without reading each one first.
  • Go client: Document.Revision, AddRequest.IfAbsent and ExpectedRevision, DeleteRequest.ExpectedRevision, Client.Delete, and (*APIError).RevisionConflict().
  • MCP API keys by fingerprint. DELETE /v1/mcp/keys and POST /v1/mcp/keys/disable also accept {"fingerprint"}, which is what the key list shows; if two keys share a fingerprint, the answer is 409 and 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/config and the panel's LLM Connections page put addresses on the server domain. They use MDDB_MCP_DOMAIN or the Server Domain field. A server listening on an explicit address used to produce localhost127.0.0.1:…, and restBaseUrl ignored 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.deb

Fedora / 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.rpm

Homebrew

brew install tradik/tap/mddb

Snap

sudo snap install mddb

Docker

docker pull tradik/mddb:2.19.6

Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.

MDDB v2.19.5

Choose a tag to compare

@github-actions github-actions released this 14 Nov 18:41

MDDB 2.19.5

Added

  • A git repository as a synced source (#421). A cron rule's sync takes source: "git", which keeps a collection in step with a repository:

    • url must be https.
    • ref is a branch, a tag, or latest-release: the forge's latest release, else the highest stable semver tag. An empty ref follows the default branch.
    • include and exclude take the same globs as mddb-cli autoindex.
    • forge names 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 autoindex writes plus syncRef and syncCommit. A collection seeded by autoindex can be taken over with adopt: true, without duplicates.

    When the commit is the one the last run read, the run downloads nothing and lastResult.upToDate says so. Otherwise only files whose content changed are written, and prune removes deleted ones. lastResult reports the ref, the commit and a link to it.

    Private repositories use a stored, sealed secret (tokenSecretRef). POST /v1/automation/{id}/hook runs the sync from a signed GitHub, Gitea or Forgejo webhook, or a GitLab token (hookSecretRef).

    gRPC adds fields only: SyncActionProto 12–18 and AutomationRunResultProto 10–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-commands reaches a versioned clangd (#420). With MDDB_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 .exe now 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 to MDDB_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.deb

Fedora / 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.rpm

Homebrew

brew install tradik/tap/mddb

Snap

sudo snap install mddb

Docker

docker pull tradik/mddb:2.19.5

Every artifact is published with a sha256 checksum and an SLSA provenance
attestation; see the assets below.