Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
S3_BUCKETNoBucket holding the vault.
S3_PREFIXNoKey prefix inside the bucket. Optional.
S3_REGIONNoRegion, default us-east-1.us-east-1
VAULT_PATHNoDirectory holding the vault. Selects the local backend.
S3_ENDPOINTNoEndpoint URL, e.g. https://minio.example.com.
VAULT_TOKENNoBearer token. Required by --transport http.
VAULT_SCHEMANoLocal path to a schema file, overriding the one in the vault.
S3_ACCESS_KEYNoAccess key.
S3_SECRET_KEYNoSecret key.
VAULT_CACHE_DIRNoWhere the index lives, default ~/.cache/notes-vault-mcp.
VAULT_STOP_HOOKNoSet 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. template gives 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 settles

  • system: ## What it does*, ## The objects that hold the truth, ## Flows, ## Limits, ## Exceptions, ## Traps, ## Left, ## History

Workflow:

  1. 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. Its triage section lists open notes older than the stale window: settle each before new work, close when done, append_file a dated line when still moving, set_status(path, "backlog", priority) to park it.

  2. Before the first edit to a repo, an open note for the work must exist. Write it with write_file.

  3. Search with search before 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.

  4. At the end of a session, log_append one line per repo with the commits it produced.

  5. When work is finished, close the note — it moves to the archive and sets the status. A note left open is what makes the vault drift.

  6. The moment something is deferred, in so many words or in passing, backlog_add it in the same turn: a task note with status backlog, its area, one line and a priority. backlog lists 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 etag: first line; pass that etag back to write_file to refuse a write over someone else's change. Search first. .vault/schema.yml reads the vault's schema; .vault/styles/<kind>.md a kind's style, and .vault/styles/<kind>.override.md the user's override of it.

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 template), that differs from the template is written, and the answer carries a warning naming what it lacks. Stamps updated with today and fills date when missing. Pass expected_etag from read_file to make the write conditional, or "*" to create a note that must not exist yet. .vault/styles/<kind>.md writes a kind's style as it is, without those checks; one whose first line <!-- style-version: N --> is older than the stored one is refused, and the user's .vault/styles/<kind>.override.md is never written.

append_fileA

WRITE — appends to an existing note and bumps updated; the note must still satisfy the schema. A missing note is refused: create it with write_file.

move_fileB

WRITE — moves or renames a note; the note must satisfy the schema at the destination. Use close to archive finished work.

delete_fileA

WRITE — deletes a note for good. Prefer close, which keeps it.

list_filesA

CHEAP — paths only, no metadata and no bodies. search answers context questions better.

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 template), a required one left empty answered with a warning, with line then as the summary. Call it the moment something is deferred, in so many words or in passing; picking the idea up later is setting its status to active.

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 path, the open tasks for it, the reference notes and the tail of the repo log, in one answer. Use it before searching blind. format "json" adds the system notes' paths and dates and the triage keys, for hooks that read it. remote is the repo's origin URL; the bundle adds the pages that name the repo or its area from the organisation vaults the connection reaches.

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 vault; for the main vault they are the server's instructions.

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 .vault/schema.yml and the Obsidian Bases views into the vault root. Run once per vault, right after installing. preset picks the layout of a vault without a schema: default, para, simple, journal, custom; without it, the vault gets default. On a vault that has a schema, it only writes the views that are missing and keeps the rest; a layout is switched with the CLI (init --preset <name> --force) or on the account page, never through this tool.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 19 tools

Disambiguation4/5

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.

Naming Consistency3/5

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.

Tool Count4/5

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.

Completeness4/5

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.

Maintenance

ActivityActive
ResponsivenessLimited data