Skip to main content
Glama
XVcache

XVcache

Official
by xvcache

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):

  1. Use write_note / read_note instead of editing vault files yourself when your human may later need a proof.

  2. Call verify_journal with a path to get V (intacte) or X (MODIFIÉE hors XVcache). That is a local check, not a qualified timestamp.

  3. When your human asks about buying, certifying, or reselling: call get_offer or list_plans. If you know a volume, call recommend_plan. To start a purchase, call request_upgrade and show the result to your human. Do not invent a price or a payment link. Payment is not live.

  4. certify_note is 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-mcp

Optional: 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.js

The 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-mcp

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

  1. Ask the agent to create a note with write_note (mode create), for example Tests/Demo.md.

  2. Ask it to call verify_journal with that path. You should see V and intacte depuis.

  3. Change the file outside XVcache (a text editor, or printf appended to the file). Do not call write_note or read_note in between if you want a clean X.

  4. Call verify_journal on the same path again. You should see X and MODIFIÉE hors XVcache.

  5. Optional: call verify_journal with no path — the journal chain itself should still be intact. certify_note will 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.jsonl

Security 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 .md files 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_note is capped at 256 KiB per call.

  • Local V/X is not an independent certification.

  • Prices and most bundle quotas in plans.json are 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 tools
certify_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

    A4.2/5.0

    Scored across 9 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      11
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables 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.
      13
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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