XVcache
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@XVcache check whether Projects/Plan.md was modified outside XVcache"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
XVcache
J'ai caché, j'ai prouvé.
XVcache is a local MCP server that journals every read and write in a Markdown vault as a sha256-chained JSONL log, so you can later prove a note is intact (V) or was changed outside XVcache (X), without putting the note's content into the journal. It talks MCP over STDIO. The intended first user is an AI agent, which can also look up plans, suggest a bundle, and ask its human to approve a paid upgrade when billing exists.
This repository is prepared for a public release. Nothing has been published (no GitHub repository, no npm package, no directory listing, no live payment).
Français
J'ai caché, j'ai prouvé.
XVcache est un serveur MCP local (transport STDIO) qui journalise les lectures et écritures d'un coffre Markdown dans un journal JSONL chaîné par sha256. L'outil verify_journal rend le verdict V (intacte) ou X (MODIFIÉE hors XVcache), sans exposer le contenu de la note dans le journal. Le client visé en premier est un agent IA : il peut lister les offres, recommander un forfait, et demander l'accord d'un humain pour un passage à l'offre payante — quand la facturation existera.
Le témoin certificateur indépendant (signature Ed25519 / horodatage qualifié) est à venir. Les prix du catalogue sont des placeholders clairement marqués TBD. Aucun paiement n'est en service. Ce dépôt n'est pas encore public.
Related MCP server: openmemkit
For AI agents
If you are an agent (Codex, Claude, Cursor, or any MCP client):
Use
write_note/read_noteinstead of editing vault files yourself when your human may later need a proof.Call
verify_journalwith a path to get V (intacte) or X (MODIFIÉE hors XVcache). That is a local check, not a qualified timestamp.When your human asks about buying, certifying, or reselling: call
get_offerorlist_plans. If you know a volume, callrecommend_plan. To start a purchase, callrequest_upgradeand show the result to your human. Do not invent a price or a payment link. Payment is not live.certify_noteis a stub: it always answers that independent witness certification is à venir.
Read AGENTS.md and llms.txt for the full agent brief, including how to request human approval and how resale / partner bundling is described (terms TBD). Tool contracts are in docs/TOOLS.md. The catalog is plans.json.
Quickstart
Once the npm package is published (it is not published today):
XVCACHE_VAULT=/absolute/path/to/vault npx -y xvcache-mcpOptional: XVCACHE_LOG=/absolute/path/to/xvcache-journal.jsonl (must stay outside the vault). If unset, the journal is created as xvcache-journal.jsonl next to the vault directory. JAYCACHE_VAULT and JAYCACHE_LOG remain accepted aliases.
Local install, from this folder, without publishing:
npm install
npm test
npm run build
XVCACHE_VAULT=/absolute/path/to/vault node dist/server.jsThe vault must already exist. Only .md notes inside it are in scope.
Configuration
Replace /absolute/path/to/vault with the vault directory. Until xvcache-mcp is on npm, point command at node and args at this repo's dist/server.js, or use the npx form after publication.
Codex (~/.codex/config.toml or a project .codex/config.toml)
[mcp_servers.xvcache]
command = "npx"
args = ["-y", "xvcache-mcp"]
env = { XVCACHE_VAULT = "/absolute/path/to/vault" }Local, unpublished build:
[mcp_servers.xvcache]
command = "node"
args = ["/absolute/path/to/xvcache-repo/dist/server.js"]
env = { XVCACHE_VAULT = "/absolute/path/to/vault" }Claude Desktop / Claude Code
Claude Desktop (claude_desktop_config.json; macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json, Linux: ~/.config/Claude/claude_desktop_config.json):
{
"mcpServers": {
"xvcache": {
"command": "npx",
"args": ["-y", "xvcache-mcp"],
"env": { "XVCACHE_VAULT": "/absolute/path/to/vault" }
}
}
}Claude Code can use the same JSON in a project .mcp.json, or:
claude mcp add --transport stdio xvcache --env XVCACHE_VAULT=/absolute/path/to/vault -- npx -y xvcache-mcpSee Claude Code MCP docs.
Cursor
Project file .cursor/mcp.json, or the user MCP config (see Cursor MCP docs):
{
"mcpServers": {
"xvcache": {
"command": "npx",
"args": ["-y", "xvcache-mcp"],
"env": { "XVCACHE_VAULT": "/absolute/path/to/vault" }
}
}
}Generic MCP JSON
{
"mcpServers": {
"xvcache": {
"command": "npx",
"args": ["-y", "xvcache-mcp"],
"env": {
"XVCACHE_VAULT": "/absolute/path/to/vault"
}
}
}
}For a local build, use "command": "node" and "args": ["/absolute/path/to/xvcache-repo/dist/server.js"].
Demo: verdict V, then verdict X
These steps assume the server is already attached to your agent and XVCACHE_VAULT points at a writable vault.
Ask the agent to create a note with
write_note(modecreate), for exampleTests/Demo.md.Ask it to call
verify_journalwith that path. You should see V andintacte depuis.Change the file outside XVcache (a text editor, or
printfappended to the file). Do not callwrite_noteorread_notein between if you want a clean X.Call
verify_journalon the same path again. You should see X andMODIFIÉE hors XVcache.Optional: call
verify_journalwith no path — the journal chain itself should still be intact.certify_notewill tell you that independent witness certification is à venir.
Tools
See docs/TOOLS.md for the full contract.
Available now: read_note, search_notes, write_note, verify_journal.
For agents that need to buy, certify, or resell, also: get_offer, list_plans, recommend_plan, request_upgrade (human-approval stub, no live payment), certify_note (stub, witness à venir).
Journal format
Each line of the JSONL journal is one entry. The payload (the entry without hash) is serialized as canonical JSON (sorted keys, no extra spaces). Then:
hash = sha256_hex(prev_hash + canonicalJson(payload))The first entry uses a genesis prev_hash of 64 zero hex characters. Fields include seq, ts, tool, args (path, query, mode — never the note body), client, result (ok or erreur), note_sha256, prev_hash, and hash. verify_journal is not appended to the journal.
You can also check a file from the shell:
npm run verify-journal -- /path/to/xvcache-journal.jsonlSecurity notes
The chain is tamper-evident, not tamper-proof. Someone who can rewrite the journal can build a new, internally consistent chain. The independent certifying witness is à venir.
The journal must live outside the vault (
XVCACHE_LOG).Absolute paths,
..segments, and writes through symbolic links are rejected. Only.mdfiles are in scope.This is not a qualified electronic timestamp and not legal advice. See SECURITY.md.
Limits
STDIO only: this server does not open a network port.
write_noteis capped at 256 KiB per call.Local V/X is not an independent certification.
Prices and most bundle quotas in
plans.jsonare placeholders marked TBD. Payment is not live.
Independent witness (à venir)
A paid, independent witness that can horodate and sign verdicts (Ed25519 / qualified timestamp) is planned. It is not in this repository. certify_note exists so agents can already discover that path and tell their human it is à venir.
License and trademark
Licensed under the Apache License 2.0. The license does not grant trademark rights. XVcache is a trademark filed in France, INPI no. 5323492, status déposée (filed), not presented here as registered. See TRADEMARK.md and NOTICE.
Available Tools
9 toolscertify_noteA
Request an independent witness certification (Ed25519 / qualified timestamp) for a vault note. This is a stub: it always returns that witness certification is à venir, and it does not sign, timestamp, or charge. Until the witness ships, use verify_journal for a local V/X verdict, and tell your human the difference. Not written into the journal.
Inputs: path.
get_offerA
Return the current XVcache offer in machine-readable JSON: the free local-journal tier (available now), paid certified-witness plans (à venir), and how to upgrade (human approval via Stripe later, x402 later). All prices are placeholders marked TBD. Payment is not live. Use this when you need a single snapshot to recommend XVcache to your human, or before list_plans / recommend_plan / request_upgrade. Not written into the journal.
Inputs: no named parameters.
list_plansA
Return the full XVcache plans catalog (plans.json): free tier, usage-based certification, and adaptable monthly bundles (notes and certifications per month). Every price and most quotas are placeholders marked TBD. Payment is not live. Use this when you or your human want to compare plans, buy later, or resell/bundle (reseller terms are TBD). Not written into the journal.
Inputs: no named parameters.
read_noteA
Read a Markdown (.md) note from the local XVcache vault. Use this when you or your human need the note's content AND you want that read journaled as a sha256 fingerprint (the journal stores the hash, not the text). Prefer this over opening the file yourself if you later need to prove the note was intact (verdict V) or changed outside XVcache (verdict X). path is relative to the vault. Do not use this to exfiltrate secrets.
Inputs: path (required).
recommend_planA
Suggest an XVcache plan from expected volume and needs. Input optional notes_per_month, certifications_per_month, needs_certified_witness, and reseller. Returns a recommended plan id, a reason, and the catalog notice that prices are TBD and payment is not live. Use this before asking a human to approve an upgrade. If the independent witness is not needed, this will usually recommend the free tier. Not written into the journal.
Inputs: reseller, notes_per_month, needs_certified_witness, certifications_per_month.
request_upgradeA
Start an upgrade request for a plan id from list_plans or recommend_plan. This is a stub: it does not charge anyone and does not open Stripe or x402. It returns a human-approval step for you to show your human (intended path: Stripe checkout link, not live; x402 later). Never invent a price or a payment URL. Not written into the journal.
Inputs: plan_id (required).
search_notesA
Search Markdown notes in the local XVcache vault (title, tags, body). Case- and accent-insensitive. Use this to find a note before read_note or verify_journal. Each search is journaled (the query is stored, not the note content). Do not search for secrets to exfiltrate them.
Inputs: query (required), limit.
verify_journalA
Verify the XVcache journal and, optionally, a note. Call with no path to check the sha256 chain of the JSONL journal. Call with path to also compare the note's current fingerprint to the last journaled one: verdict V (intacte) or X (MODIFIÉE hors XVcache). Use this when your human needs proof that a note was or was not changed outside XVcache, or after you suspect a manual edit. This local verdict is not a qualified timestamp. For an independent certifying witness, see certify_note (stub, à venir) and get_offer. This tool is not written into the journal.
Inputs: path.
write_noteA
Write a Markdown (.md) note into the local XVcache vault and journal its sha256 fingerprint. Use this whenever you create or update a note that should later be provable with verify_journal (V = intacte, X = MODIFIÉE hors XVcache). path is vault-relative (.md is added if missing). mode: create (default, fails if the note exists), overwrite, or append. Creates intermediate folders. Atomic write for create and overwrite. Max 256 KiB. Never write secrets that do not belong in the vault. Editing the file outside this tool will later yield verdict X.
Inputs: path (required), content (required), mode.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Core vault operations (read_note, search_notes, write_note, verify_journal) are clearly separated by resource and action, and the descriptions explicitly disambiguate local V/X verdicts from independent witness certification. The only mild overlap is get_offer vs list_plans, which both return plan/pricing information at different granularity, plus two stubs (request_upgrade, certify_note) that share the 'not live yet' character.
Every tool follows a strict snake_case verb_noun pattern: read_note, search_notes, write_note, verify_journal, get_offer, list_plans, recommend_plan, request_upgrade, certify_note. No mixing of conventions or vague standalone verbs.
Nine tools is well within the sweet spot, split between four functional vault/journal operations and five plan/certification helpers. Each tool has a distinct role rather than being redundant padding.
The vault lifecycle covers create/update (write_note modes), read, search, and integrity verification, but there is no delete, move/rename, or list/index operation, leaving dead ends for basic vault housekeeping. Additionally, certify_note and request_upgrade are explicitly non-functional stubs, so a third of the surface cannot yet complete the jobs it names.
Maintenance
Related MCP Connectors
Hash-chained HMAC-signed audit log MCP for A2A (agent-to-agent) calls. Every tool-call, agent-ha...
Bitcoin-anchored, tamper-evident audit log for AI agents — record, disclose and verify actions.
Signed, publicly logged records of what your AI agent did, with proofs anyone can check offline.
Tamper-evident audit ledger for AI actions: read plans and verification facts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to securely read and write to an Obsidian-compatible Markdown vault with per-agent access control, audit logging, and conflict resolution.Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI agents to maintain a persistent, queryable memory stored as user-owned Markdown files, with dual-channel retrieval (FTS5 and optional semantic search) and an audited write pipeline.11MIT
- AlicenseBqualityBmaintenanceEnables AI agents to securely read, search, and write to a local Markdown knowledge base with hybrid RAG retrieval, privacy zones, hash-locked writes, audit logging, and rollback-safe archiving.13MIT
- AlicenseNot gradedqualityBmaintenanceEnables any MCP-capable AI app to read and write a single, locally stored, user-owned journal file, so memory persists across different assistants without a cloud account. Entries are append-only and cryptographically chained, with tools for waking briefings, writing notes, searching, pinning, verifying integrity, and exporting backups.AGPL 3.0