Fournit aux agents IA une base de connaissances basée sur Git où les écritures sont proposées, citées et nécessitent une approbation humaine avant de devenir durables.
Aussi connu sous vouchdev/vouch, vouch-kb
- Étoiles
- 67
- Outils
- —
- Téléchargements, 30 jours
- —
- Dernière version
- 1.2.2
- Dernier commit
- 23 août 2026
- Licence
- MIT
Qu'est-ce que Vouch MCP ?
Vouch est un serveur MCP. Fournit aux agents IA une base de connaissances basée sur Git où les écritures sont proposées, citées et nécessitent une approbation humaine avant de devenir durables.
Résumé généré à partir du README du projet
À propos du MCP server Vouch
Travailler avec un groupe d'agents IA qui partagent une base de connaissances signifie généralement devoir faire confiance à tout ce qui est écrit, sans aucun moyen de l'auditer plus tard. Vouch ajoute une étape de révision : les agents proposent des affirmations, chaque affirmation doit citer une source avec un hash de contenu, et rien ne devient permanent tant qu'un humain ne l'a pas approuvé. Le contenu approuvé vit sous forme d'affirmations YAML simples et de pages markdown sous .vouch/ dans votre dépôt, ce qui permet de les comparer comme du code et de les transporter avec un git clone.
Le serveur se compose de trois parties : un MCP server, un serveur d'outils JSONL et un CLI. L'installation via pipx place la commande vouch sur votre machine ; vouch install-mcp claude-code écrit les outils kb.*, les slash commands /vouch-* et les hooks dans .mcp.json, puis enregistre un serveur à portée locale pour Claude Code. Un flag --global configure vouch pour chaque dossier tout en gardant les données de chaque projet dans son propre .vouch/. Une image Docker permet de lancer le MCP server en mode stdio. La capture de session regroupe les appels d'outils dans une seule page de résumé en attente à la fin de la session, et les réponses de rappel commencent par "From vouch memory:" uniquement lorsqu'un élément pertinent existe.
La commande vouch compile utilise un LLM pour rédiger des pages de sujets à partir des affirmations approuvées, et chaque citation [claim: …] est vérifiée avant que le brouillon n'atteigne la même étape de révision. Les commandes Supersede, contradict et archive conservent les versions précédentes dans l'historique, et un journal en mode append-only enregistre qui a proposé, qui a approuvé et ce qui a été cité.
Ce que vous pouvez faire avec
- 1Proposer une affirmation avec citationDemandez à l'agent d'enregistrer qu'un service utilise PostgreSQL 16 et de joindre le fichier et la ligne exacts qu'il a lus pour obtenir cette information.
- 2Rappeler des connaissances de projet antérieuresAu début d'une session, demandez à l'agent de répondre à une question sur les conventions du dépôt à partir des affirmations approuvées avant de chercher dans le code.
- 3Compiler une page wiki citéeLancez vouch compile pour qu'un LLM rédige une page de sujet à partir des affirmations approuvées, puis vérifiez chaque citation avant d'approuver le brouillon.
- 4Réviser un résumé de sessionOuvrez la page de session-summary en attente générée à partir des appels d'outils de la dernière session et décidez quelles affirmations approuver ou rejeter.
- 5Déplacer des captures dans une KB de projetAprès l'initialisation d'un vrai projet, lancez vouch adopt pour copier les captures de fallback personnels sans sauter l'étape de révision.
Extrait du README du projet. Chaque cas d'utilisation est vérifié par rapport à une citation du document.
Comment installer Vouch MCP
Formats vérifiés le 10 nov. 2026Ajouter à CursorInstaller Vouch MCP dans Claude Code
$ claude mcp add vouch -- uvx vouch-kbInstaller Vouch MCP dans Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"vouch": {
"command": "uvx",
"args": [
"vouch-kb"
]
}
}
}Installer Vouch MCP dans VS Code
.vscode/mcp.json
{
"servers": {
"vouch": {
"type": "stdio",
"command": "uvx",
"args": [
"vouch-kb"
]
}
}
}Installer Vouch MCP dans VS Code CLI
$ code --add-mcp '{"name":"vouch","type":"stdio","command":"uvx","args":["vouch-kb"]}'Installer Vouch MCP dans Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"vouch": {
"command": "uvx",
"args": [
"vouch-kb"
]
}
}
}Installer Vouch MCP dans Codex
~/.codex/config.toml
[mcp_servers.vouch] command = "uvx" args = ["vouch-kb"]
Installer Vouch MCP dans Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"vouch": {
"command": "uvx",
"args": [
"vouch-kb"
]
}
}
}Configuration
VOUCH_KB_PATHAbsolute path to the .vouch directory; if unset, vouch walks up from the cwd to find it.
| Nom | Description | Type |
|---|---|---|
| VOUCH_KB_PATH | Absolute path to the .vouch directory; if unset, vouch walks up from the cwd to find it. |
Vérifications automatisées
Exécuté le 13 nov. 2026Rapport complet →A passé nos vérifications automatisées. Il ne s'agit pas d'un audit de sécurité : lisez le code et donnez au serveur l'accès le plus restreint dont il a besoin. Fonctionnement des vérifications
- Dépôt source lié et accessibleRéussi
- Licence open source (OSI)Réussi
- Commit ou version publiée au cours de l'année écouléeRéussi
- Nom du package non proche d'un package populaireRéussi
- L'endpoint distant utilise HTTPSNon vérifié
- Les outils destructifs sont étiquetésNon vérifié
- Aucune instruction cachée destinée au modèleRéussi
- Aucun avis critique dans le paquet ni ses dépendancesRéussi
README
Voir sur GitHubvouch
Git-native, review-gated knowledge base for LLM agents. MCP server + JSONL tool server + CLI.
Agents should not start every session with amnesia — but they shouldn't get to write whatever they want either.
vouch gives LLM agents durable memory with an explicit review gate: sessions capture themselves, agents propose writes, and nothing becomes durable knowledge until you approve it. Approved artifacts are plain files under .vouch/ — YAML claims, markdown pages — so the KB lives in your repo, is reviewed like code, diffs cleanly, and travels with git clone.
The destination is the one Andrej Karpathy's llm-wiki idea file sketches: stop using LLMs as search engines that rediscover your documents on every question — use them as tireless knowledge engineers that compile, cross-reference, and maintain a living wiki, while humans curate and think. vouch is that idea with the write path made trustworthy. vouch compile has an LLM draft the topic pages, but every page cites approved claims, every [claim: …] citation is machine-verified before the draft is filed, and the drafts pass through the same review gate as every other write. The LLM compiles; the human approves; the wiki compounds.
"I can do this with one prompt"
Often true — and worth being honest about. If you want your agent to remember things, a paragraph in CLAUDE.md, a memory file, or your host's built-in auto-memory gets you most of the way, costs nothing, and needs no install. Reach for that first. Recall is not a hard problem.
What is hard is trust in the write path, and that's a different problem than memory. Single-writer memory needs no trust model: you're the only author, and a bad line costs you a shrug. The moment writes come from more than one author — several agents, a teammate, a future you who forgot the context — the question stops being "what did we say?" and becomes "who decided this was true, on what evidence, and can I audit it later?" A prompt cannot answer that, no matter how good the prompt is.
That's the whole of vouch:
| one prompt / memory file | vouch | |
|---|---|---|
| Who can write | whatever the agent decides to save | agents propose; a human approves — nothing else lands |
| Why believe a line | vibes | every claim cites a content-hashed source; uncited is a validation error |
| When it's wrong | edit and hope | supersede / contradict / archive, with the old version still in history |
| Who changed it | file mtime | append-only audit log: who proposed, who approved, citing what, when |
| At n ≥ 2 writers | last write wins, silently | one gate, one reviewed history, shared by git clone |
| What you read | a growing pile of notes | compiled topic pages with verified citations — a wiki, not a log |
The same argument as a picture — at one writer the two are the same thing; the gap opens at the second writer and only widens:
So the honest pitch: vouch is not a better place to put memory — it's a review gate in front of one, and a wiki on the other side of it. If you're solo and happy, one prompt is genuinely fine; vouch's session capture runs passively alongside whatever your host already remembers, rather than replacing it. But once a fleet of agents writes to shared knowledge — or a team does — that pile of notes needs an editor, and an editor is not something you can prompt your way to. The case in full: docs/review-gate.md.
Install
For the full UI experience (recommended first time):
docker run --rm -p 127.0.0.1:5173:5173 -v vouch-demo-data:/data ghcr.io/plind-junior/vouch-demo
# then open http://localhost:5173
Pre-seeded KB + full webapp console, zero setup. Pass -e ANTHROPIC_API_KEY=sk-ant-... to enable LLM features.
For the full UI without Docker — Python only, no clone, no node:
pipx install 'vouch-kb[web]' # the browser console ships inside the wheel
vouch serve --transport http --port 8731 & # a backend for the current .vouch/
vouch console # console at http://localhost:5173 — connect it to :8731
vouch console serves the same React console as the Docker demo, straight from the installed package.
For CLI + Claude Code integration (most common ongoing workflow):
# one-liner (Linux + macOS) — picks a Python, ensures pipx, installs vouch-kb
curl -fsSL https://raw.githubusercontent.com/vouchdev/vouch/main/install.sh | sh
# …or directly via pipx (vouch-kb on PyPI; the command stays `vouch`)
pipx install vouch-kb
The one-liner is POSIX sh and never needs sudo — inspect install.sh first if you'd like.
For MCP server or CLI-only use:
docker run -i --rm -v "$PWD:/data" ghcr.io/vouchdev/vouch:latest # stdio MCP server
docker run --rm -v "$PWD:/data" ghcr.io/vouchdev/vouch:latest status # any CLI command
For local development — CLI and webapp, both running from source:
git clone https://github.com/vouchdev/vouch
cd vouch
python3 -m venv .venv && source .venv/bin/activate
pip install -e '.[dev,web]' # dev,web is what CI installs — make check needs both
vouch --version # the CLI now runs straight from src/ — edits apply without reinstalling
make console # webapp in dev mode: vouch backend on :8731 + live-reload
# console at http://localhost:5173 — Ctrl-C stops both
make check # the CI gate: lint + type + test
make console needs node — it starts vouch serve --transport http and the Vite dev server as a pair, installing the console's node deps automatically on first run. To instead serve the console the way a release wheel does (no dev server), run make webapp-build once, then vouch console. See CONTRIBUTING.md for the full dev workflow.
Reproduce the loop on your project
After exploring the demo above, set up vouch in your own project:
1. Set up the KB and wire Claude Code (one command, one-time, per repo):
cd /path/to/your/project
vouch install-mcp claude-code # creates .vouch/ (if missing) + wires Claude Code
install-mcp initialises the KB when no .vouch/ is discoverable (pass --no-init to skip; vouch init still exists for KB-only setup), then writes .mcp.json (the kb.* MCP tools), the /vouch-* slash commands, and the weight-bearing hooks — SessionStart recall, UserPromptSubmit per-prompt recall, SessionEnd rollup. Per-tool PostToolUse observe / Stop answer are opt-in (capture.realtime; default off). It also registers vouch as a local-scope MCP server in ~/.claude.json (the ⚑ line in the output). Reload your editor window (VS Code: Developer: Reload Window) so it loads.
Why the extra registration? A committed
.mcp.jsonis a project-scope server, and Claude Code only loads one after a per-user approval — which the VS Code extension never prompts for, so.mcp.jsonalone leaves thekb_*tools invisible in the extension (they sit at "pending approval", while the hooks quietly work — easy to misread as "connected"). The local-scope entryinstall-mcpwrites is trusted on sight, so a fresh install just connects. Verify withclaude mcp list(vouch … ✔ Connected). Pass--no-approveto skip it and approve.mcp.jsonyourself.
What you'll see. Every prompt is checked against the KB first. When vouch knows something relevant, the answer opens with "From vouch memory:", grounded in the cited items; when it doesn't, it opens with "Nothing in vouch on this." — recall is visible on every turn, never silent. (A fresh KB knows almost nothing yet: work a session or two so capture fills it, then ask about the project again.)
Prefer one install for every project?
vouch install-mcp claude-code --globalwires vouch once, machine-wide: user-level hooks and commands in~/.claude/plus a user-scope MCP server in~/.claude.json. Every Claude session in every folder then captures + recalls into that folder's own.vouch/— data stays per project. Runvouch initonce in each project you want vouch in; by default a folder without a KB never captures anywhere — its session opens with a one-line "runvouch initto enable durable memory here" note and thekb_*tools say the same. Safe next to existing per-project installs: duplicate hooks collapse and capture dedups by event id.
Optionally, a personal catch-all KB. The global install asks one question (or pass
--personal-fallback; later:vouch hub init-personal --fallback): opt in, and folders without a project KB capture into a personal KB at~/.local/share/vouch/personalinstead of nowhere — each captured source stamped with the folder it came from, and the session banner saying exactly where the knowledge is going. It is one store shared by every KB-less folder: recall in any of them reads the whole personal KB, so knowledge captured while working in one such folder can surface in another (the injected block says so). Projects with their own.vouch/are never affected. When such a folder later becomes a real project,vouch init+vouch adoptmoves its captures into the new project KB through that KB's own review gate: sources copy byte-identically, every claim is re-proposed and its byte-offset receipt re-verified, and the project's review config decides durability — adoption never bypasses review. Strictly opt-in; without it, nothing changes.
2. Point compile at an LLM — the only step that needs a model. In .vouch/config.yaml:
compile:
llm_cmd: "claude -p --model sonnet"
3. Work a session — it captures itself. Use Claude Code normally. Each tool call is harvested into a gitignored scratch buffer, and at session end the buffer rolls up — mechanically, no LLM — into one pending session-summary page. Never auto-approved: the next session greets you with
🔔 1 auto-captured session summary(ies) awaiting review — run `vouch review`.
4. Approve at the gate.
vouch review # walk pending proposals one at a time
Receipt-verified claims skip the queue by default (review.auto_approve_on_receipt: true in the starter config): each session's captured answers become recallable memory with no review pass. What lands in vouch review is everything the mechanical check can't vouch for — session-summary pages, entities, relations, and claims that can't quote their source. Set the flag to false in .vouch/config.yaml to put every write behind the gate.
Want a browser UI for reviewing and proposing? The video shows the vouch webapp — chat, review queue, claims, and stats. Your options:
- No setup: the Docker demo above
- pip, no clone:
pipx install 'vouch-kb[web]'thenvouch console(Python only, no Docker, no node) — open http://localhost:5173 - Local development: clone the repo, run
make console - Lighter built-in queue:
vouch review-ui(also in the[web]extra) - CLI-only:
vouch pending,vouch show <id>,vouch approve <id>,vouch reject <id> --reason "…"
To point any of them at an existing KB, start a backend in your project — vouch serve --transport http --port 8731 — then connect the console to :8731 (for the Docker demo, pass -e VOUCH_TARGET=http://host.docker.internal:8731).
5. Compile the wiki.
vouch compile # LLM drafts cited topic pages from approved claims
vouch review # drafts land in the same gate — approve the keepers
Every [claim: …] marker and [[wikilink]] in a draft is verified mechanically against the store; drafts whose citations don't hold are dropped before they reach you. See docs/compile.md.
6. Start the next session — it already knows. The SessionStart hook runs vouch recall, injecting every approved claim and page title into the first turn, so the session starts from your reviewed knowledge instead of re-discovering it.
Detection is Claude Code's hook contract: whatever a SessionStart hook prints becomes context in the session's opening turn. vouch recall prints the digest the video closes on — claims with their full text, pages by id and title:
<vouch-approved-knowledge>
# approved KB knowledge for this repo — 2 claim(s), 1 page(s). reviewed,
# cited, durable. use kb_read_page / kb_search for detail; kb_propose_*
# (human-approved) to add more.
## claims
- [auth-uses-jwt] Auth uses JWT tokens — decision from the design note.
- [vouch-starter-reviewed-knowledge] Vouch stores reviewed, cited knowledge
in the repository so future agent sessions can retrieve agreed project
context.
## pages
- [edit-in-obsidian] Edit in Obsidian
</vouch-approved-knowledge>
Only approved artifacts are ever emitted — archived, superseded, and still-pending items are excluded — and the digest is size-guarded (recall.max_chars) with an explicit truncation notice.
How the approved pages actually get used from there: recall carries the titles, and the session pulls full content on demand through the kb.* MCP tools — kb_search matches page bodies, kb_read_page returns a page's markdown plus the claims it cites, and kb_context bundles the most relevant claims and pages for a stated task. To pull a topic in explicitly, use the /vouch-recall <topic> slash command, or just ask Claude to check the KB. One thing to know: pages still sitting in vouch review are invisible to all of this — the gate applies to retrieval too, so a compiled page only starts informing sessions once you approve it.
7. Commit the knowledge with the code.
git add .vouch/ && git commit -m "kb: approve session summary"
Pending drafts (proposed/) and the derived search index (state.db) are gitignored — what lands in history is exactly what passed review.
The rules underneath
- Writes require approval. Agents file proposals via the
kb.*MCP tools (orvouch serve --transport jsonl); approval is the only path to a durable artifact, and the approver must differ from the proposer unless you opt out. - Claims must cite sources. A claim without evidence is a validation error, not a warning. Sources are content-hashed; the same evidence registered twice de-duplicates.
- History is append-only. Every mutation lands in a committed audit log — who proposed, who approved, citing what, when.
Going further
- docs/example-session.md — the full capture→approve→recall walkthrough with real output
- docs/getting-started.md — the agent-side flow
- SPEC.md — the protocol contract (object model, JSONL envelopes, trust metadata)
vouch --help/vouch capabilities— the full CLI and machine-readable method surfacevouch install-mcp <host>also wires cursor, codex, zed, windsurf, openclaw and friends (adapters/)- vouch webapp — the chat-first browser console from the video; vouch-desktop wraps the same loop as a desktop app
- CONTRIBUTING.md — development setup and the test gate
- docs/mining-on-vouch.md — get paid to improve the retrieval engine: submit ranking code, scored by a reproducible benchmark; the best verified strategy ships as the default
Incubated by Gittensor
Vouch was incubated and supported by Gittensor, a protocol that rewards open-source contributions. The knowledge-base-as-code pattern and review-gated persistence model emerged directly from conversations about trusted AI agents and long-term memory in collaborative development workflows.
License
MIT.
Questions sur Vouch MCP
Comment ajouter Vouch MCP à Claude Code ?
Exécutez claude mcp add vouch -- uvx vouch-kb dans votre terminal. Ajoutez --scope user pour le rendre disponible dans tous les projets.
Comment ajouter Vouch MCP à Cursor ?
Ouvrez ~/.cursor/mcp.json et ajoutez le serveur sous mcpServers, avec la configuration Cursor indiquée dans la section d'installation ci-dessus.
Comment Vouch garantit-il la fiabilité des connaissances écrites par les agents ?
Les agents ne font que proposer des écritures ; rien ne devient une connaissance durable tant qu'un humain ne l'a pas approuvé. Chaque affirmation doit citer une source avec un hash de contenu, et les modifications sont enregistrées dans un journal d'audit en mode append-only.
Où Vouch stocke-t-il sa base de connaissances ?
Les artefacts approuvés sont des affirmations YAML simples et des pages markdown sous un répertoire .vouch/ dans votre dépôt, afin qu'ils puissent être examinés et versionnés comme du code.
Comment connecter Vouch à Claude Code ?
Exécutez vouch install-mcp claude-code dans votre projet. Cela crée la KB si nécessaire et configure les outils MCP, les slash commands et les hooks de session, puis rechargez la fenêtre de votre éditeur.
Vouch a-t-il besoin d'un LLM pour fonctionner ?
Seule l'étape de compilation nécessite un modèle ; vous le configurez avec compile.llm_cmd dans le fichier de configuration. La capture de session et le rollup s'exécutent mécaniquement sans LLM.
Puis-je installer Vouch globalement pour tous les projets ?
Oui, vouch install-mcp claude-code --global configure les hooks au niveau utilisateur et un serveur à portée utilisateur, tandis que chaque dossier conserve ses propres données .vouch/.