docmancer
OfficialDocmancer's MCP server provides a unified local memory system for AI agents, enabling them to search, read, write, edit, and manage shared Markdown-based knowledge, plus search a separate docs library and inspect system state.
Memory Search & Recall:
docmancer_memory_search: Full-text semantic/lexical search over indexed agent memory.ask_memory: Recall a curated bundle of policy, memory, and evidence for a task; optionally generates grounded cited answers via an LLM.search_memory: Lexical search over one tree's active memory files.common_memory: Show memories recurring independently across multiple agent harnesses (recurrence evidence).
Docs Search:
docmancer_docs_searchqueries the separate documentation library.Memory File Management:
Read:
read_memoryretrieves individual files by stabledocmancer://address, relative path, or title.Write:
write_memorycreates/updates curated memory files with scope, tags, and provenance; requirescontent_hashto prevent overwrites.Edit:
edit_memoryreplaces body content atomically, also hash-guarded.Move, Duplicate, Trash, Restore:
move_memory,duplicate_memory,trash_memory,restore_memoryprovide safe modifications with stable addresses, hash checks, and reversible deletions.
Canonical Memory:
canonical_memory: Read the reconciled machine-wide memory (about, preferences, working principles, active projects).pin_memory/unpin_memory: Persist or remove durable facts from canonical sections so they survive automatic reconciliation.
Context & Diagnostics:
docmancer_memory_status: Report memory index health, source counts, and path.context_delivery: Show each agent's integration mode, hook status, and latest context revision.context_status: Inspect current consolidated context revision, freshness, exclusions.context_projection: Render a bounded, read-only preview of context for a specific agent within a token budget.decision_timeline: View the append-only audit trail of all memory file operations with diffs.
Integrates with GitHub Copilot by installing a skill file that allows it to query the shared memory for prior decisions and write deliberate memory on demand.
Docmancer
Your AI coding environment, restored on every machine.
Website · Documentation · Blog · Changelog · Discussions
Your coding agents remember what happened on one machine
Agent backup and restore are development-preview commands. Local encrypted archives are available now. Managed Cloud snapshots remain gated on migration and recovery acceptance.
Docmancer securely restores their sessions, memory, and setup, then makes the useful project context available to every agent you use.
Claude Code and Codex can search the files they already wrote on one machine. A normal dotfile tool can copy directories. Neither gives you an agent-aware, secret-stripped backup with structural verification, project mapping, conflict quarantine, and a reviewed path from raw history to shared project memory.
Start by seeing what Docmancer can protect:
docmancer backup --dry-runCreate a free passphrase-encrypted local archive:
docmancer backup --local --to ~/Backups/agents.dmbakOn a new machine, close Claude Code and Codex and preview the restore:
docmancer restore ~/Backups/agents.dmbak --dry-run
docmancer restore ~/Backups/agents.dmbakDocmancer restores missing history, skips identical files, merges only safe configuration, and quarantines divergent sessions. It never copies authentication stores, .env files, literal MCP environment values, caches, logs, telemetry, or machine keys.
After backup or restore, local consolidation finds durable decisions and constraints in the protected histories. Every proposal links to exact transcript evidence and waits for review:
docmancer consolidate
docmancer consolidate --review PROPOSAL_ID
docmancer consolidate --approve PROPOSAL_IDRelated MCP server: aide-memory
Your agents already learned this. They just cannot tell each other.
Claude Code knows why you moved off Railway. Codex learned your migration convention. Cursor is still following a rule you overruled two months ago. Each agent wrote something down, none of them agree, and none of it is anywhere you can read.
That knowledge is real, and it is already on your disk. It is sitting in CLAUDE.md files, AGENTS.md files, Cursor rules, agent memory directories, and session history, in a different place and a different format for every tool you use.
Docmancer is built around two questions, in this order:
I re-explain my project to every coding agent. How do I get them all working from the same context? Docmancer arranges the durable parts as plain local Markdown you can read and edit, then delivers the relevant files to every agent you connect, so a decision you record once reaches all of them.
What do my coding agents already know about me and my working style? Docmancer indexes the memory, instructions, and rules they wrote on this machine, and keeps the contributing source attached to every claim, so you can read the answer instead of guessing at it.
Nothing leaves your machine unless you ask it to. There is no telemetry, no account, and no API key needed for the core product.
Install
pipx install docmancer
pipx ensurepath
export PATH="$(pipx environment --value PIPX_BIN_DIR):$PATH"
docmancer setuppipx ensurepath makes the change persistent for future terminals. The export line makes Docmancer available in the current terminal immediately, which matters in an existing SSH session. If docmancer still reports command not found, reconnect over SSH and try again.
If you use uv, uv tool install docmancer installs it the same way.
setup finds every supported coding agent, shows you one complete plan and privacy warning, and waits for your confirmation before it changes anything. Then it indexes what it found, builds your canonical memory, installs the agent skills, and turns on automatic recall where the agent supports it.
Ask it something:
docmancer ask "Why did we choose Railway?"You get a bounded, cited answer built from your own agents' evidence. Then open the app for the current project:
cd /path/to/your-project
docmancer webThat is the whole first run. It takes about a minute, and setup does not modify the project you are standing in.
What you get
One memory instead of six. Every supported agent reads from the same canonical Markdown, so a decision recorded once is available to Claude Code, Codex, Cursor, Gemini, and the rest without you copying it around.
Answers with receipts. Recall returns the mandatory policy, the curated memory, and the supporting agent evidence with stable citations, so you can see which agent said what and when. The optional language model turns that evidence into prose but never chooses what goes into it.
Files you own, not a database. Shared Memory is ordinary Markdown in ordinary directories. You can open it in your editor, commit it, grep it, or delete it. Stable docmancer://memory/<id> addresses keep working even after you move a file.
Local and offline by default. The default profile uses SQLite FTS5, sqlite-vec, and a small vendored embedding model. No daemon, no model download, no network call, no key.
Edits that cannot clobber each other. Changing or moving an existing memory file requires the content hash you last read, so one agent cannot silently overwrite a newer decision made by another.
Approval before anything is written. When you ask Docmancer to remember or change something, it prepares one complete file proposal and shows you the diff. The default answer is no, and a later "yes" in conversation never applies a stored proposal.
Take the same memory to a VPS or another machine
The complete product above is free on one machine. Optional paid Personal Sync adds encrypted transport, managed revision history, devices, and recovery when you work across a laptop, VPS, or other machines.
On the machine that already has your memory, run:
docmancer cloud connectSign in through the browser. Docmancer creates and checks a recovery kit, shows it once for offline storage, and starts the first encrypted upload automatically. The account page then asks for a payment method to start the 30-day trial. There is no separate recovery verification or first-sync command.
On the VPS or second machine, install Docmancer and run:
docmancer setup
docmancer cloud connectThe new machine shows a four-word pairing code. Run docmancer cloud connect on an already connected machine, confirm the same four words, and approve it. Then run the command once more on the new machine. Docmancer downloads the machine-wide Shared Memory tree and any project trees mapped on that machine. If every connected machine is unavailable, use docmancer cloud connect --recover and enter the offline recovery kit.
The selected monthly or yearly subscription begins automatically after the trial unless you cancel. A failed renewal has a fixed 7-day upload grace period, followed by a 30-day read-only pull and export window before hosted ciphertext is scheduled for deletion. Local memory and every local feature keep working in every billing state. See the Personal Sync guide for the full journey.
See what each agent actually receives
Run docmancer web and open Shared Memory. The left pane is the real file tree on disk, the middle pane reads the selected file with its provenance, and the right pane lists your connected agents. Select an agent to inspect the exact bounded projection it will receive, before it receives it.
The scaffold is opinionated, but the files are yours:
~/.docmancer/tree/ # machine-wide, follows you between projects
├── profile/
│ ├── about.md
│ └── preferences.md
├── principles/
│ └── working-style.md
├── projects/
│ └── active.md
└── shared/
<project>/.docmancer/tree/ # per project
├── overview.md
├── decisions/
├── constraints/
├── workflows/
└── lessons/Connect your agents
docmancer setup installs everything it detects. To manage one integration on its own:
docmancer agent install claude-code --hooks
docmancer agent install codex --hooksAgent | Skill file | Automatic recall | Session capture | MCP |
Claude Code | Yes | Yes | Yes | Yes |
Codex (CLI, app, desktop) | Yes | Yes | Yes | Yes |
Cursor | Yes | |||
Cline | Yes | |||
Gemini CLI | Yes | |||
OpenCode | Yes | |||
GitHub Copilot | Yes | |||
Claude Desktop | Manual upload | Yes |
Installed skills teach an agent when to ask Docmancer for prior decisions and how to write deliberate memory when you explicitly request it, which is why every supported agent can use the same memory. Automatic recall and session capture need lifecycle hooks, and only Claude Code and Codex expose those today, so the other agents recall on demand through their skill file instead.
MCP is an alternative transport over the same local services, not a second memory store:
docmancer mcp install codex
docmancer mcp doctorRecord a decision on purpose
Discovery finds what your agents already wrote. When you want something recorded deliberately:
docmancer write $'# Deployment\n\nDeploy the API on Railway.' \
--path decisions/deployment.md \
--scope projectRead it back later, from any agent or from your shell:
docmancer read decisions/deployment.mdOr let Ask do it, with an approval step:
docmancer ask "Remember that production releases require a smoke test"
docmancer ask "Update decisions/release.md to require two reviewers" --applyEveryday commands
Command | Purpose |
| Discover agent memory and connect every supported agent. |
| Recall evidence, answer a question, or propose one memory change. |
| Open the local app for the current project. |
| Show what several agents recorded independently. |
| Show installed integrations, recall state, and recent use. |
| Show how curated memory changed over time. |
| Write one deliberate Markdown memory file. |
| Read one memory file with its provenance. |
| Safely edit a memory file. |
| Safely rename or move a memory file. |
| Copy arbitrary Markdown into the project inbox. |
| Search the separate documentation Library. |
| Show memory, source, security, integration, and Cloud health. |
| Diagnose installation and configuration problems. |
| Connect this machine, approve another machine by four-word code, and start encrypted sync. |
| Preview the next encrypted upload size, batching, and current plan limits without queueing or sending it. |
Run docmancer --help or docmancer <command> --help for exact arguments, and see the command reference for the full surface.
Documentation is a separate Library
Your decisions and a vendor's API reference answer different questions, so Docmancer keeps them apart. Library content is searchable but is never injected into your personal memory automatically.
docmancer docs add https://docs.pytest.org
docmancer docs query "How do I parametrize a fixture?"Use ask for your own decisions, preferences, and rules. Use docs query for libraries, APIs, and vendor documentation.
Choose a retrieval profile
The default needs no daemon and no large download:
docmancer setup --profile localIt runs SQLite FTS5, sqlite-vec, and the bundled Model2Vec model. For sustained ingestion and filtered vector search across roughly 50,000 to 100,000 documents, switch to the scale profile:
pipx install "docmancer[embeddings-heavy]"
docmancer qdrant up
docmancer setup --profile scaleIf you use uv, the first line becomes uv tool install "docmancer[embeddings-heavy]".
Scale uses Qdrant, FastEmbed dense embeddings, sparse SPLADE retrieval, and reciprocal-rank fusion. It helps with vector filtering, concurrent writes, and operational headroom. It will not fix poor source coverage or weak evaluation, and both profiles implement identical memory semantics: switching changes storage and capacity, never authority, provenance, or what counts as Shared Memory.
Privacy
Your memory, credentials, indexes, and the local app stay on your machine, and Docmancer has no telemetry. It reaches the network only when you explicitly fetch online documentation, use an external model, check a package registry, or enable Cloud.
Everything above is free and stays free. There are two problems the free single-machine product does not solve, and those are what the paid tiers exist for. The first is that your memory is built on one machine while you work on more than one, which optional paid Personal Sync answers by carrying the same canonical memory to every machine you approve, encrypted on the device before it leaves, with managed revision history and recovery. Its normal setup is one docmancer cloud connect command on each machine, followed by a four-word approval on a machine you already trust. The second is that the context your agents accumulated about a feature is stranded on one machine where the rest of your team cannot reach it, which is the problem Team Sync is being designed to solve. Team Sync is not available yet.
The hosted service receives ciphertext, and it cannot read your plaintext memory or run anything on your machine. The security architecture describes exactly what metadata remains visible rather than claiming the server knows nothing.
Where things live
Location | Contents |
| Machine-wide Markdown under |
| Project memory under |
| Markdown you imported, waiting for optional curation. |
| Recoverable deleted memory files. |
| Append-only history of curated files. |
| Rebuildable machine-wide index. |
| Local configuration. |
Requirements
Docmancer supports Python 3.11 and newer, including 3.14, so the install command does not need an interpreter pin. pipx install docmancer (or uv tool install docmancer) can use whichever recent Python your machine already provides. If pipx installs successfully but the shell cannot find docmancer, run pipx ensurepath, export the bin directory with export PATH="$(pipx environment --value PIPX_BIN_DIR):$PATH", and try again. For problems after the command starts, docmancer doctor will tell you why.
Contributing
Issues and pull requests are welcome. Start with CONTRIBUTING.md for project layout and extension points, and open a discussion if you want to talk through an idea first. Security reports have their own private channel, described in SECURITY.md.
For architecture, supported sources, Cloud boundaries, and troubleshooting, see the wiki or the full documentation.
License
MIT. See LICENSE.
Available Tools
20 toolsask_memoryARead-onlyIdempotent
READ-ONLY: recall one bounded bundle of everything local memory knows about a task, combining mandatory policy, curated memory, and supporting harvested agent evidence in priority order. This is the default recall tool and the right first call when you do not already know which store holds the answer; search_memory and search_evidence each cover only one store. Local and free by default. Returns an empty bundle rather than an error when nothing relevant exists, so an empty result means the memory is genuinely silent. Parameters: task is the natural-language task or question to recall for; answer defaults to false and returns the raw bundle, and setting it true spends a configured provider call, which may leave the machine, to produce a grounded cited answer; mode sets that answer's verbosity to concise, normal, or thorough and is ignored when answer is false; token_budget bounds the bundle size in approximate tokens (default 4000); limit caps how many supporting evidence items are considered (default 12); include_history adds superseded evidence; agent is the requesting agent identifier recorded for attribution (default mcp-client); project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the mandatory policy, curated memory, and evidence sections, each carrying source citations, plus the generated answer when answer is true.
Inputs: task (required), mode, agent, limit, +4 more.
canonical_memoryARead-onlyIdempotent
READ-ONLY: read the machine-wide canonical memory, which is what docmancer has reconciled about this user across every agent and project. Local disk read, machine-wide, so it takes no project_path. Call it before asking the user something they may already have told another agent. Not a search tool: it returns whole prepared sections rather than matches, so use search_memory or ask_memory to look something up. To change what it returns, use pin_memory rather than edit_memory. Parameters: section selects one of about (who the user is), preferences (how they want to work), working-principles (cross-project rules), active-projects (what they are working on), or canonical-memory (a description of the store itself); omit section entirely for a status summary of every section. Returns, with a section, that section split into its pinned zone (durable, survives reconciliation) and its generated zone (rewritten automatically), plus content_hash and revision id. Without a section, returns per-section presence and pinned-line counts.
Inputs: section.
common_memoryARead-onlyIdempotent
READ-ONLY: list the memories that recur across two or more independent agent harnesses. This is a local disk read over already-harvested evidence; docmancer's own generated integration copies are excluded so they cannot manufacture agreement. Recurrence is evidence of salience, not proof of correctness, so treat the result as a signal worth checking rather than settled truth. Takes no query: it returns the whole recurring set. Use search_evidence to look something specific up instead. Parameters: project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns a list of objects describing each recurring memory and the harnesses it was seen in. Returns [] when nothing recurs.
Inputs: project_path. Returns: result
context_deliveryARead-onlyIdempotent
READ-ONLY: show, per agent, whether context is actually reaching it, listing each supported agent's integration mode, hook installation status, and the revision and hash of the last context bundle it was observed to receive. Local disk read with no side effects. This is the delivery question, so use it to diagnose why one agent seems to be missing context that another has. It is one of three context tools: context_status answers what the current context revision contains and how fresh it is, and context_projection renders the actual text one agent would receive. Read-only across all three; installing hooks and refreshing context are deliberately human-only CLI or local-web operations. Parameters: project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns a list with one row per agent giving its integration mode, hook status, and last delivered revision and hash. A stale or absent revision on one row is the signal to look for.
Inputs: project_path. Returns: result
context_projectionARead-onlyIdempotent
READ-ONLY: render the actual bounded context text one named agent would receive, linked to the current revision. Local disk read that renders without writing, refreshing, or delivering anything, so it is safe to preview repeatedly. This is the show-me-the-content question, so use it to check what an agent will actually see before installing or debugging an integration. It is one of three context tools: context_status reports the revision and its freshness, and context_delivery reports whether each agent is receiving it. Refresh, rollback, adopt, and retire are human-only CLI or local-web operations. Parameters: agent is the required target agent identifier, and the projection is shaped for that agent's integration; token_budget bounds the rendered size in approximate tokens (default 2000), so raising it returns more content and lowering it truncates by priority; project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the rendered projection text and the revision it was built from.
Inputs: agent (required), project_path, token_budget.
context_statusARead-onlyIdempotent
READ-ONLY: inspect the consolidated Context itself, reporting its current revision id, how fresh it is, which sources are excluded, and its cluster metadata. Local disk read with no side effects. This is the what-and-how-fresh question, so use it to decide whether the context an agent is working from is stale or is missing something on purpose. It is one of three context tools: context_delivery answers whether each agent is actually receiving it, and context_projection renders the actual text one agent would receive. Refresh, rollback, adopt, and retire are deliberately human-only CLI or local-web operations, so no MCP tool can change what this reports. Parameters: project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the current revision, its scope and freshness, the active exclusions, and cluster metadata.
Inputs: project_path.
decision_timelineARead-onlyIdempotent
READ-ONLY: show the append-only history of how memory changed over time, with a human-readable diff per entry. Local disk read over a log that is only ever appended to, so nothing here can be rewritten and the record is trustworthy. Use it to answer when and how a memory changed, or to recover text that an edit replaced. Newest entries come first. This is history, not content: use search_memory or read_memory for what a file says now. Parameters: file_id restricts the timeline to one memory file's own history, which is the usual way to trace a single decision; operation restricts it to one kind of change, one of create, edit, move, duplicate, trash, restore, pin, or reconcile; limit caps how many entries come back (default 100); project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Omit every filter for the whole recent history. Returns a list of entries with the operation, timestamp, affected file, revision ids, and a readable diff.
Inputs: limit, file_id, operation, project_path. Returns: result
duplicate_memoryA
MUTATING: copy one curated memory file to a new path under a new stable identity. Writes to local disk and appends to the change timeline. The original is left untouched, and the copy gets its own docmancer://memory address and its own history, so the two diverge from here and editing one does not affect the other. Use it to fork an existing memory into a variant. Use move_memory instead when the original should not survive. Not idempotent: calling it twice with the same new_relative_path fails on the second call rather than creating a second copy. Parameters: address identifies the file to copy; new_relative_path is the copy's path in the tree, including the .md suffix, and must not already exist; expected_hash is the source file's current content_hash from read_memory, which guards against copying a revision you have not seen; project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the new copy's address, path, content_hash, and revision id.
Inputs: address (required), expected_hash (required), new_relative_path (required), project_path.
edit_memoryA
MUTATING: replace the body of one existing curated memory file while preserving its frontmatter, address, and history. Writes to local disk and appends to the change timeline. The write is guarded: a stale expected_hash fails without changing anything and returns a structured error naming the re-read-and-retry next action, so concurrent edits cannot be lost. Read the file first to obtain the hash. Not for canonical memory about the user, which reconciliation regenerates: use pin_memory there. Not for creating a new file: use write_memory. Parameters: address identifies the file to edit; text is the complete replacement Markdown body, which overwrites rather than appends; expected_hash is the content_hash from the read that produced text; project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the address and the new content_hash and revision id.
Inputs: text (required), address (required), expected_hash (required), project_path.
evidence_statusARead-onlyIdempotent
READ-ONLY: report whether the local evidence index that search_evidence queries is present and populated, including its on-disk path and its source and section counts. Local only, and takes no parameters. Call it first when search_evidence returns nothing, to tell an empty index apart from a genuine miss; an empty one means the user has not run docmancer setup yet. Not for curated memory health, which is context_status, nor for per-agent delivery, which is context_delivery. Returns an object with the index path and the number of indexed sources and sections.
Inputs: no named parameters.
move_memoryADestructive
MUTATING and DESTRUCTIVE at the old path: move or rename one curated memory file. Writes to local disk and appends to the change timeline. The file's stable docmancer://memory address survives the move, so existing references by address keep working, but the old relative path stops resolving and anything referring to it by path breaks. Guarded by expected_hash, so a stale hash fails without changing anything. The body is untouched: use edit_memory to change content, or duplicate_memory to copy rather than move. Parameters: address identifies the file to move; new_relative_path is its destination path in the tree, including the .md suffix, and renaming is just a move within the same directory; expected_hash is the file's current content_hash from read_memory; project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the unchanged address, the new path, and the new revision id.
Inputs: address (required), expected_hash (required), new_relative_path (required), project_path.
pin_memoryAIdempotent
MUTATING: pin one durable line into a canonical memory section. Writes to local disk, machine-wide, so it takes no project_path. The pinned zone is the ONLY part of a canonical section that survives automatic reconciliation, so use this, not edit_memory or write_memory, for any correction, standing preference, or fact the reconciler got wrong or left out. Idempotent: pinning the same line twice changes nothing. Use unpin_memory to reverse it, and canonical_memory to see the result. Parameters: section selects which canonical section to pin into, one of about, preferences, working-principles, or active-projects; text is the complete line to pin, which should read as a standalone statement because it is stored verbatim. Returns an object with the section, its path, and the updated pinned-line count.
Inputs: text (required), section (required).
read_memoryARead-onlyIdempotent
READ-ONLY: read one curated memory file in full, resolved by stable address, relative path, or exact title. Local disk read with no side effects. Ambiguous title or path matches return every candidate address rather than guessing, so a caller can retry with an exact address. This is also how you obtain the content_hash that edit_memory, move_memory, duplicate_memory, and trash_memory all require. Use search_memory first when you do not already know which file you want. Parameters: address is the docmancer://memory/ address, the relative path, or the exact title; project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the body, frontmatter, address, content_hash, and revision id, or a candidates list when the address was ambiguous.
Inputs: address (required), project_path.
restore_memoryA
MUTATING: undo a trash_memory call by restoring one curated memory file from its restore token. Writes to local disk and appends to the change timeline. The file returns to its original path with its address and history intact, so references by address resume working. A token is single-use and only valid for the tree it was issued against, so a spent or foreign token fails without changing anything. Restoring is only possible while the token is known: there is no way to browse trash from MCP. Parameters: restore_token is the exact token returned by the trash_memory call being undone; project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the restored address, path, and revision id.
Inputs: restore_token (required), project_path.
search_docsARead-onlyIdempotent
READ-ONLY: search the local documentation index built by docmancer docs add, covering library, API, and vendor documentation the user chose to ingest. Runs entirely locally; no network call, so it only ever returns docs already added on this machine and returns [] when none have been. Use it for version-specific library or vendor behaviour. Not for anything about this user or their projects: use search_memory, search_evidence, or ask_memory for that. Parameters: query is the natural-language text to match against the indexed documentation; limit caps the number of results (default 8). Returns a list of objects with the matching excerpt, its source document, and a relevance score.
Inputs: query (required), limit. Returns: result
search_evidenceARead-onlyIdempotent
READ-ONLY: semantic search over the raw evidence index, meaning the memory, instruction, and rule files that other coding agents already wrote on this machine and that docmancer harvested. Runs entirely locally against the embedding index; no network call, no cost. Use it to find what an agent originally recorded, with a relevance score and the file it came from. Not for curated memory you or an agent deliberately wrote: that lives in a separate tree, so use search_memory for it, or ask_memory to get both at once. Parameters: query is the natural-language text to match; limit caps the number of results (default 8); include_history adds superseded evidence to the active evidence; expand_relations adds items linked to a direct match. Returns a list of objects with score, excerpt, source_path, scope, kind, lifecycle_state, and a docmancer://record/ record_uri. Returns [] when nothing matches.
Inputs: query (required), limit, include_history, expand_relations. Returns: result
search_memoryARead-onlyIdempotent
READ-ONLY: lexical search over the curated memory tree, meaning the decisions, constraints, and conventions deliberately written by the user or an agent. Local disk read, no embedding call, no cost. Only active entries are searched; archived and trashed files are excluded. Returns [] rather than an error when nothing is relevant or the tree is empty, so an empty result is a real answer and not a failure. Not the same store as search_evidence, which searches raw harvested agent files instead; use ask_memory when you want both stores plus mandatory policy in one bundle. Parameters: query is the natural-language text to match; limit caps the number of results (default 8, capped at 50); project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns a list of objects with the docmancer://memory address, title, excerpt, authority, and source_type. Pass an address to read_memory for the full file.
Inputs: query (required), limit, project_path. Returns: result
trash_memoryADestructive
DESTRUCTIVE BUT REVERSIBLE: move one curated memory file to trash so it stops being read or recalled. Writes to local disk and appends to the change timeline. Nothing is erased: the call returns a restore_token that restore_memory consumes to bring the file back, so keep that token in your reply if the user might change their mind. Guarded by expected_hash, so a stale hash fails without trashing anything. Prefer setting status='archived' with write_memory when the file should stay readable but stop being recalled. Parameters: address identifies the file to trash; expected_hash is its current content_hash from read_memory, confirming you are discarding the revision you actually saw; project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the trashed address and the restore_token needed to undo it.
Inputs: address (required), expected_hash (required), project_path.
unpin_memoryADestructive
MUTATING and DESTRUCTIVE: permanently remove pinned lines from a canonical memory section by case-insensitive substring match, with no undo and no restore token. Writes to local disk, machine-wide, so it takes no project_path. A substring can match more lines than intended, so read the section with canonical_memory first and pass text specific enough to hit only what you mean. Fails without changing anything when nothing matches, which makes a dry run safe. Only pinned lines are removable; generated content is rewritten by reconciliation instead. Parameters: section selects which canonical section to modify, one of about, preferences, working-principles, or active-projects; text is the case-insensitive substring, not a whole line and not a pattern, identifying the pinned lines to delete. Returns an object with the section and how many lines were removed.
Inputs: text (required), section (required).
write_memoryA
MUTATING: create or update one curated memory file in the memory tree, addressed as docmancer://memory/. Writes to local disk and appends to the change timeline; never silently clobbers, because the expect guard decides whether an existing file may be replaced. Use it to record a durable decision, constraint, or convention. Not for correcting the reconciled canonical memory about the user, which is regenerated and would discard the edit: use pin_memory for that. To change only the body of an existing file, prefer edit_memory. Parameters: relative_path is the file's path in the tree and must include the Markdown suffix; text is the full Markdown body; expect is the write guard, 'absent' (default) to create only and fail if the path exists, or the current content_hash to permit a guarded overwrite; memory_type, scope, authority, status, and curation_origin are frontmatter labels described in the schema; project_id names the owning project; sources lists backing file paths or URLs; tags lists retrieval labels; project_path project root whose memory tree the operation applies to. Omit it to use the machine-wide tree, and always omit it when this server was started pinned to a project. Returns an object with the stable address, the new content_hash, and the revision id, all of which later guarded calls need.
Inputs: text (required), relative_path (required), tags, scope, +8 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool targets a distinct store, lifecycle stage, or diagnostic question (search vs evidence vs memory vs context vs timeline), and overlapping tools like search_memory, search_evidence, and ask_memory explicitly define their boundaries. No two tools are confusable in purpose.
Actions follow verb_noun (write_memory, search_docs, restore_memory), while inspection tools use noun-like names (evidence_status, context_delivery, canonical_memory), creating a mild but readable inconsistency. The family prefixes (search_, *_memory, context_) make the pattern predictable despite the mix.
20 tools is on the heavy side but justified by the server's broad scope: docs search, evidence search, memory CRUD, canonical memory pinning, context diagnostics, and a timeline. Each tool has a clear role, though some consolidation could reduce overlap.
The lifecycle for curated memory is comprehensive (create, read, edit, move, duplicate, trash, restore), plus search and combined recall. Evidence and context are read-only but deliberately so, and the missing operations (add docs, refresh context) are explicitly human-only. No obvious gaps.
Maintenance
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
Private memory for AI agents: save and recall facts across Claude Code, Codex, Cursor and ChatGPT.
Shared, scoped, reviewable team memory for AI coding agents.
Shared work memory for Claude Code, Codex, Cursor and chat, scoped to each repository.
Related MCP Servers
- AlicenseAqualityBmaintenanceLocal, searchable project memory for AI coding agents. Markdown source of truth, MCP interface, safe structured updates315Apache 2.0
- FlicenseNot gradedqualityDmaintenanceAuto-captured, auto-recalled, path-scoped memory for AI coding agents and teams.3-
- AlicenseNot gradedqualityDmaintenanceProvides persistent, local-first memory for coding agents with Markdown as the source of truth, exposed via CLI, loopback API, MCP, and Codex hooks for context retrieval and durable writes.MIT
- AlicenseNot gradedqualityAmaintenanceLocal-first memory for AI agents: one store shared by Claude Code, Codex CLI, Cursor, Pi, Hermes, OpenClaw, and any MCP client. Plain markdown with YAML frontmatter on your disk, hybrid BM25 + vector recall with per-result provenance (Recall X-ray), a correction contract, and the MemCorrect benchmark.235MIT