v0.2.2
LLM callout opt-in, scope confirmation, and cost transparency.
Added
--enable-embeddingsand--enable-enrichmentCLI flags; both tools are off by default and must be explicitly opted in viamcp.jsonargs.docgraph_enrichment action=pendingreturns a pre-written ASCII scope tree with per-folder file counts, token estimates, per-model cost table, and sensitive path flags before any writes occur.docgraph_embeddings action=pendingnow generates a one-time confirmation token;action=storerequires the token before processing.engine=parameter fordocgraph_similar:auto(default),tfidf, orneural. Neural mode returns a clear error when embeddings are not enabled.docgraph_statusnow includes a LLM Callout Tools section showing enabled/disabled state and pending counts for both tools.
Security
- Vector payload cap (2 MB) enforced before deserialisation in
docgraph_embeddings action=store. - Enrichment metadata payload cap (1 MB) enforced before deserialisation in
docgraph_enrichment action=process. - Confirmation tokens use
crypto/rand(16 bytes, 32-char hex); embeddings and enrichment tokens are kept in separate stores to prevent cross-tool reuse; 30-minute TTL with lazy sweep. - When 100% of pending documents are in sensitive-flagged paths, no token is generated and
action=store/action=processare rejected.
Breaking Changes
docgraph_embeddingsanddocgraph_enrichmentare no longer registered by default. Add--enable-embeddings/--enable-enrichmenttomcp.jsonargs to restore access.docgraph_enrichmentAPI changed:operation=pending/store→action=pending/process;action=processrequires aconfirmation_tokenfrom the precedingaction=pendingcall.