mindin
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| S3_BUCKET | No | Bucket holding the vault. | |
| S3_PREFIX | No | Key prefix inside the bucket. Optional. | |
| S3_REGION | No | Region, default us-east-1. | us-east-1 |
| VAULT_PATH | No | Directory holding the vault. Selects the local backend. | |
| S3_ENDPOINT | No | Endpoint URL, e.g. https://minio.example.com. | |
| VAULT_TOKEN | No | Bearer token. Required by --transport http. | |
| VAULT_SCHEMA | No | Local path to a schema file, overriding the one in the vault. | |
| S3_ACCESS_KEY | No | Access key. | |
| S3_SECRET_KEY | No | Secret key. | |
| VAULT_CACHE_DIR | No | Where the index lives, default ~/.cache/notes-vault-mcp. | |
| VAULT_STOP_HOOK | No | Set to 'off' to disable the stop hook. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
The vault is the single source of truth for plans, decisions, progress and reference material. This server indexes it, so search is cheap: run it before reading anything, and before writing code.
Folders and what each is for:
Areas/ — One living note per system or subsystem. Current state only. Hub of the graph.
Resources/ — Gotchas, how-tos and decisions with rationale. Written once, valid until superseded_by.
Projects/ — Open work that spans sessions, and the backlog (status backlog). Closed with close.
Log/ — Append-only log per repo and compiled monthly pages.
Archive/ — History. Searched only on request. (not searched by default)
Frontmatter contract for every note:
required: title, date, updated, tags, status
optional: kind, area, summary, path, superseded_by, priority, source, kebbie
status is one of: draft, active, backlog, complete, superseded
kind is one of:
system: one living note per system or subsystem; current state only, never history
task: open work that spans sessions; something is left to do
trap: a gotcha that bit once and will bite again; nothing to do, nothing was chosen
howto: steps that are known to work; nothing chosen, nothing open
decision: a choice and its reasons; something was chosen, alternatives were dropped
reference: a pointer to something outside the vault: a URL, a dashboard, a ticket
log: append-only lines per repo, one per session, with commit shas
priority, on a backlog note, is one of: urgent, high, medium, low
area is a wikilink to the system note, shaped [[stem]], and is required in: Projects, Resources, Log
kebbie, on a task note, says which machine and task work on it: the claiming tool writes and clears it, write_file keeps it as stored, so never edit it; a note held by another machine is not yours to start Tags are free-form. It is a guide, not a gate. Note templates, by kind (* is required). A template is guidance, never a gate: the vault is free-form memory, and write_file writes a note that lacks one of its kind's headings or leaves a required one empty, answering with a warning that names what it lacks. A backlog or draft note gets no warning, and lint lists open notes that differ from their template, as information.
templategives the headings and a skeleton:task: ## Background*, ## Goal*, ## What we know, ## Open questions, ## Out of scope, ## Source*. Under ## Open questions,
- [ ]marks a question that blocks the start and-one the work settlessystem: ## What it does*, ## The objects that hold the truth, ## Flows, ## Limits, ## Exceptions, ## Traps, ## Left, ## History
Workflow:
Start a session with
context(path, repo) — it returns the system notes for the code you are about to touch, the open tasks, the reference notes and the tail of the repo log. Cheaper and more complete than searching blind. Itstriagesection lists open notes older than the stale window: settle each before new work,closewhen done,append_filea dated line when still moving,set_status(path, "backlog", priority)to park it.Before the first edit to a repo, an open note for the work must exist. Write it with
write_file.Search with
searchbefore claiming anything about the current state. A note is a lead, the code is the truth: when the code disproves a note, correct the note in the same pass.At the end of a session,
log_appendone line per repo with the commits it produced.When work is finished,
closethe note — it moves to the archive and sets the status. A note left open is what makes the vault drift.The moment something is deferred, in so many words or in passing,
backlog_addit in the same turn: a task note with status backlog, its area, one line and a priority.backloglists them by priority; picking one up is setting its status to active and writing it out to the task template.
search excludes the archive and superseded notes unless you ask for them, and says how many it hid.
A wikilink [[stem]] is a search on the stem: that note comes first, even from the archive.
Search in the vault's language, en; inflected forms match through stemming.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| searchA | CHEAP — start here. Full-text search over the local SQLite index of the vault; it never downloads the whole vault. Matches file stem, title, summary, tags and body, folds diacritics, expands synonyms and accepts "quoted phrases". A bare commit sha looks up the notes that mention it. A query that is exactly a note's stem, or its [[stem]] wikilink, puts that note first wherever it lives. Every term is required; when no note has them all, it returns the notes matching the most terms and says so in the header. Inflected forms match through stemming in the vault's languages. Search in the vault's language first; when nothing matches, translate the terms into the vault's other languages and search again, and the reply names them. Excludes the archive and superseded notes unless you ask for them, and reports how many it hid. limit defaults to the vault schema's search.default_limit. |
| read_fileA | MODERATE — one round trip to storage. Returns the note with an |
| write_fileA | WRITE — validates the frontmatter against the vault schema and refuses the write if it does not hold. The body is free: a new note, or one that already follows its kind's template (see |
| append_fileA | WRITE — appends to an existing note and bumps |
| move_fileB | WRITE — moves or renames a note; the note must satisfy the schema at the destination. Use |
| delete_fileA | WRITE — deletes a note for good. Prefer |
| list_filesA | CHEAP — paths only, no metadata and no bodies. |
| set_statusB | WRITE — changes a note's status without rewriting it: backlog (with a priority: urgent, high, medium, low) parks it, active picks it up again, draft. The triage list at session start is settled with this, append_file or close. |
| closeA | WRITE — finishes a note: sets status complete (or superseded with superseded_by when merged_into is given) and moves it into the archive. Run it in the same pass as the last commit of the work; a note left open is what makes the vault drift. |
| backlog_addA | WRITE — files an idea as a backlog note in the task folder: title, area (stem or [[stem]]), optional priority (urgent, high, medium, low) and source (who said it and when, or a sha), and either line, one line saying what and why, which files a draft of the task template to write out later, or sections, the task template's sections by key (see |
| backlogB | CHEAP — the backlog sorted by priority then age. Filter by area (a stem, or the prefix a family of stems shares) and by priority. |
| log_appendA | WRITE — appends one dated line to the repo log, with the commits it produced. Run once at the end of a session per repo. Creates the log note when it is missing. repo is the main checkout's name, also from a worktree; branch is the branch the commits were made on. area is the stem of the system note (or [[stem]]); it defaults to the repo name. |
| contextA | CHEAP — the session-start call. Returns the system notes covering the code at |
| changesB | CHEAP — for tools that follow a vault, such as a board: the notes written, deleted or moved since cursor, each once in its latest state, with its frontmatter and, with include "body", its body. Answers JSON {"cursor", "reset", "more", "changes": [{"key", "action": write|delete|schema, "version", "note"}]}. Without cursor, or when the cursor is too old to follow, reset is true: read the whole vault, then follow from the cursor. more means call again at once. wait holds the answer up to 50 seconds until something changes. |
| templateB | CHEAP — the headings a note of a kind is written to, from the vault's schema: each section's key, heading in the vault's language and whether it is required, the section that holds open questions, and a skeleton to fill. Without kind, every kind that has a template. A template is guidance: write_file warns, never refuses, when an open note differs from it. With kind, also the vault's style for that kind, if it has one: style is markdown guidance for how such a note reads, never a check; style_source says whether it is the user's override or the default. A kind with a style needs no template, such as backlog. Answers JSON. |
| rulesA | CHEAP — a vault's own rules for agents: its folders, the frontmatter contract, when and how to write there, and what session start shows from it. Read them before the first write to a vault reached through |
| whoamiA | CHEAP — who this connection signs in as and whether it may write. Answers JSON. |
| lintA | MODERATE — reads every note to report drift: broken frontmatter, missing required fields, missing area, unresolved wikilinks, orphans, stale open tasks, archived notes still marked active, duplicate stems and superseded targets that do not exist. |
| initA | WRITE — sets a vault up: writes |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 19 tools
Most tools target a distinct resource+action, and the descriptions actively route the agent (search is 'start here', context is 'the session-start call', list_files says search answers context questions better). The remaining overlaps are mild: write_file vs backlog_add both create notes, and close vs set_status vs delete_file all touch note lifecycle, but the routing hints keep them separable.
File operations follow a clean verb_noun snake_case pattern (read_file, write_file, append_file, move_file, delete_file, list_files), but the rest of the surface mixes conventions: noun_verb (backlog_add, log_append), verb_noun (set_status), and bare nouns (search, template, backlog, context, changes, rules, lint, init). Consistent casing and no camelCase, but the verb/order pattern is not predictable.
19 tools is on the heavy side of the suggested 3-15 band, but this is a full vault system spanning file CRUD, lifecycle, sync, search and admin, and nearly every tool maps to a real operation. A few admin/session tools (whoami, rules, init, lint) inflate the count without being redundant.
Coverage is strong: full read/write/append/move/delete, search and listing, task lifecycle (backlog_add, backlog, set_status, close), session sync (context, changes, log_append), plus rules/lint/init/template for schema stewardship. Minor gaps remain — no multi-note batch read, no explicit link/graph inspection beyond lint, and rename is only implied by move_file.