Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Persistent memory for AI coding tools via MCP. Remembers across sessions and machines.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"memoir": {
"command": "npx",
"args": [
"-y",
"memoir-cli"
]
}
}
}在终端中运行这条命令
claude mcp add memoir -- npx -y memoir-cli粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"memoir": {
"command": "npx",
"args": [
"-y",
"memoir-cli"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"memoir": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"memoir-cli"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 camgitt 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(3.17.6)于11天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Portable, project-scoped memory and session handoffs for coding agents.
Memoir keeps decisions, rationale, goals, and next actions in readable local files. An MCP server lets an agent save and retrieve that context. Optional local, Git, and cloud backups move it between machines.
The reliability changes are described in the remediation record. Review the upgrade and recovery guide before upgrading clients that share encrypted backups.
Memoir includes a separate, project-only handoff. It carries answered questions, decisions, next actions and receipts from checks actually run through Memoir. It does not import personal memory or transcripts.
The project handoff, browser view and recovery commands below require version 3.16.0 or later:
npm install -g memoir-cli@3.16.0
cd /path/to/your/project memoir work setup memoir work resume memoir work view
For source development, install dependencies and replace memoir with node bin/memoir.js from the Memoir checkout.
Open this same folder and branch in Codex or Cursor and say “Continue this project.” The managed instructions use the project MCP connection, or the included CLI fallback when the connection is unavailable. Existing settings and approval policies are preserved. Agent adherence is still required; ordinary terminal checks are not captured automatically.
The project view opens in your browser on this computer. Search saved answers, see why a check needs repeating, correct a decision, or remove it from the next handoff. Removed records can be restored; earlier versions stay in local history. Keep the view's terminal open while using it, and press Ctrl+C to stop. You can also ask your agent “Open my Memoir project view.” See the local view validation for actual browser tests and the limits of the fresh-session continuity results. Subsequent debugging fixes and recovery tests cover slow saves, interrupted responses and configuration preservation.
Checks run through memoir work check using the client's normal terminal permissions. The MCP memory connection deliberately cannot execute commands. See the adversarial audit and remaining trust limits.
The project ledger stays in ignored .memoir/ files. This workflow does not sync those files through GitHub or bridge different checkouts. See the setup and everyday guide for commands, corrections, privacy boundaries and when a check needs to run again. The feature runs locally even when installed from npm; publishing the package does not upload your project ledger.
Project handoffs now have automatic local recovery snapshots. Run memoir work doctor to check them, or memoir work backup --output /path/to/backup.memoir for an encrypted copy outside the project. Recovery previews changes before applying them and preserves the original file. See backup and recovery.
Node.js 18 or later can run the CLI. For production use, choose a maintained LTS release (Node 22 or 24); Node 18/20 remain compatibility-test targets. See the Node release policy.
npm install -g memoir-cli
cd /path/to/project memoir setup --tool claude,codex,cursor memoir goal "Finish the account recovery flow" memoir note "Use single-use recovery codes" --why "Prevent replay" memoir next "Test expired recovery codes" memoir recall "recovery codes" memoir resume
setup preserves existing settings, writes a project MCP entry, and starts the Memoir server to check its tools. Restart the client and accept its project trust/MCP prompt. Server startup does not prove that a particular client version has accepted its configuration.
For source development, use npm ci, then node bin/memoir.js setup. The generated entry uses absolute Node/server paths; review it after moving the installation. Existing different Memoir entries are preserved for review.
memoir activate adds managed usage instructions and sets up detected supported clients. memoir resume --inject --to codex adds a managed handoff to the project's AGENTS.md, preserving other content.
memoir_note records a scoped decision and rationale. Older decisions are archived when the working summary fills.memoir_remember writes a canonical Markdown record. Open its returned ID with memoir_read, tool: "memoir", filepath: " .md".memoir_recall searches the active project plus shared records and returns matching passages, paths, line evidence, and IDs where available.memoir_resume returns the goal, next actions, questions, and decisions, and compares the saved commit with the checkout. Old observations never imply current tests pass.memoir_forget accepts a decision match or canonical ID. Hidden records are excluded from recall/session views; purge: true also removes current canonical text and local revision history.Canonical memory lives in ~/.config/memoir/memories/ and session state in ~/.config/memoir/session.json. These source files are plaintext on the device. Backup encryption does not encrypt them.
New memories use MEMOIR_PROJECT_ROOT or the working directory. Use explicit scope: "shared" for general preferences. Git identity recognizes common SSH/HTTPS remote spellings; local identity is home-relative. Renames, unusual remote aliases, or different directory layouts may need explicit scope selection. Profiles select backup destinations; they are not independent security tenants.
Legacy records without scope metadata are shared, except recognized Claude project directories. Review and label imported history before relying on strict isolation. Scope is an organizational boundary, not authentication against an agent already permitted to read the filesystem.
First use creates a local configuration. It does not create a GitHub repository or upload automatically. Use memoir init to choose another destination and encryption.
memoir push
memoir restore memoir push --only claude,codex memoir restore --only codex
Filtered pushes preserve other tool/machine files. Session and canonical records accompany tool filters for cross-tool continuity.
For encrypted local/Git backups, supply MEMOIR_PASSPHRASE through your environment/password manager or enter it interactively. Legacy six-character secrets remain readable; use a long, unique secret for new backups. Headless writes do not silently choose plaintext when encryption is unconfigured.
Snapshots authenticate the manifest and every file. Missing blobs, corrupt contents, unsafe paths, symlinks, and oversized input fail recovery. Repeated encrypted pushes verify and merge the previous snapshot before replacement. Local encryption migration removes plaintext from the current destination after the switch; Git history and filesystem snapshots can retain older plaintext.
Local pushes lock the complete read/merge/write operation. Git rejects conflicting remote updates without force-pushing; retry to read and merge the new state. Use a dedicated backup directory.
New cloud writes require a user-held secret of at least 12 characters in MEMOIR_CLOUD_PASSPHRASE (or MEMOIR_PASSPHRASE). It is not derived from account identity or sent in metadata. Client-side encryption is available on every plan; it is not Pro-only.
memoir cloud push
memoir cloud restore memoir cloud restore --version 3 memoir cloud migrate memoir cloud migrate --apply
The writer requires the database migration in the rollout guide. Without it, version allocation fails before upload. The Memoir hosted service received this migration on September 6, 2026; see the deployment checks. Self-hosted services must apply it before enabling new writes.
cloud migrate displays a plan. --apply downloads each old backup, creates a user-passphrase replacement, downloads and byte-checks it, then removes the old object. Interrupted migration can reuse its replacement. Keep the secret available on every recovering device; there is no lost-passphrase recovery service.
Legacy account-ID-keyed and unencrypted cloud backups remain readable with warnings. Their protection changes only when replaced. Random vault-key wrapping, device enrollment, hardware-backed storage, and independently reviewed key rotation remain future work.
Latest cloud restore merges session/canonical state from retained versions, requiring additional downloads. Explicit version restore selects that snapshot. Cloud tests simulate the backend; production authorization and tenant isolation require separate validation.
memoir push --workspace captures eligible files from the active project, including non-ignored untracked Git files. It does not archive the whole home directory.
memoir restore --workspace verifies those files into a new folder under ~/memoir-restored/ for inspection. Existing checkouts are not patched. Commit information is recorded; this is a file snapshot, not a Git-history backup.
Common secret filenames and detected patterns are omitted and listed in the manifest. Detection is heuristic. Old tar-based workspace archives are retained but no longer extracted automatically.
| Surface | Capability | Verification boundary |
|---|---|---|
| Claude Code | Project MCP setup, Memoir tools, instruction import/export | JSON preservation and real server startup tested |
| Codex | Project TOML MCP setup, Memoir tools, AGENTS.md import/export, pinned session block in ~/.codex/AGENTS.md | TOML round trip and server startup tested |
| Cursor | Project MCP setup, Memoir tools, rule import/export | JSON preservation and server startup tested |
| Other existing adapters | Selected memory/config import/export | Adapter fixtures, not full native session continuity |
| Generic MCP client | Memoir tool contract | Real stdio tests |
Configuration references: Claude Code, Codex, Cursor.
Search is local Unicode-aware lexical retrieval with field/document-frequency weights, aliases, filtering, and a passage budget. It is not semantic search and has no demonstrated state-of-the-art result.
Memory is context, not permission to run commands or configure tools. Model-written records default to unverified. Automatic transcript capture is best effort and must not be treated as proof of successful work.
memoir consolidate reports duplicates/stale files. Similarity alone cannot remove distinct content. Confirmed removals keep recovery copies; the printed memoir consolidate --undo restores into an absent destination. --smart explicitly sends bounded excerpts to the Gemini API; choose its model with MEMOIR_CONSOLIDATE_MODEL.
memoir clean-decisions reports decisions that transcript capture minted from a regex match rather than a choice you made — rows that are the opening of a capture pattern, cut mid-clause. It reports only; --apply tombstones them with hidden: true and never deletes, so the text stays on disk and stays auditable. Detection is conservative and text-based: it can miss a leaked row, and it will not flag anything carrying a why or a rejected alternative.
With the SessionStart hook installed (`me
只显示了开头部分;其余内容请在仓库中阅读