GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Local-first project memory and mistake-prevention guardrails for AI coding agents.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"memini": {
"command": "npx",
"args": [
"-y",
"memini",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add memini -- npx -y memini mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"memini": {
"command": "npx",
"args": [
"-y",
"memini",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"memini": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"memini",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 lumayapartners 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.4.0)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Never the same mistake twice. Mistake-prevention guardrails and persistent project memory for AI coding agents.
AI coding agents are stateless: every session starts with amnesia. The agent that broke your build editing vercel.json on Monday will happily try the exact same edit on Thursday. memini gives each repo a persistent memory of failed attempts, fragile files, decisions, and deployment rules — and *force-feeds* the relevant warning to the agent at the moment it's about to repeat history.
Not a notebook the agent may choose to read. A guardrail it can't skip.
.memini/ folder with a local SQLite index and human-readable, PR-reviewable markdown views. Local-first: nothing leaves your machine.
[WARNING] Editing vercel.json broke the build (recorded 2026-07-03)— Tried changing buildCommand; deploy failed. Actual fix: move checkout server-side and setVITE_STRIPE_USE_SERVER=true.
warn severity: the agent is warned once per session, then may proceed.block severity: the edit is always denied until a human archives the memory.remember_failed_attempt, remember_fragile_file, remember_decision, end_session_summary, plus recall_project_context and check_before_editing.pm stale flags memories whose evidence has changed, and stale memories stop firing guardrails until re-verified.cd your-repo
npx -y memini init # creates .memini/ + installs Claude Code hooks
npx -y memini remember failed_attempt \ "Editing vercel.json broke the build" \ -b "Tried changing buildCommand; deploy failed. Fix: move checkout server-side." \ --file vercel.json --severity warn
That's it. Next time any Claude Code session in this repo tries to edit vercel.json, it gets the warning first.
Cursor, Windsurf, and other MCP clients:
claude mcp add memini -- npx -y memini mcp # Claude Code MCP
npx -y memini install-mcp --write cursor # Cursor: MCP + rule + enforced preToolUse hook npx -y memini install-copilot # GitHub Copilot: enforced preToolUse hook (.github/hooks) npx -y memini install-mcp # print generic MCP config
Enforcement is a chain of gates, and memini covers several:
block → denied, warn → the user is prompted with the recorded history. Supported on:pm init installs itpm install-mcp --write cursorpm install-copilotblock-severity file, no matter which IDE or agent made the edit (Windsurf, Cline, a human…). Installed by pm init (or pm install-hooks --git). Fails open; overridable with git commit --no-verify.check_before_editing / recall_project_context tools, plus an always-applied Cursor rule steering the agent to use them.A memory tool is only as good as what's in it, and it rots if left alone. memini keeps it healthy:
pm remember. It stays silent on idle sessions.pm stats shows which memories are pulling their weight and which have never fired.pm stale / pm verify).| Command | What it does | |
|---|---|---|
pm init | Set up .memini/, gitignore, and hooks | |
| `pm remember [-b body] [--file f...] [--severity warn\ | block]` | Record a memory |
pm recall [query] [--file f] [--digest] | Search memories / preview the agent digest | |
pm check | Guardrail check (exit 1 if risks recorded) — usable in CI | |
pm list / show / archive / approve | Manage memories | |
pm stats | What your memory is doing — guardrail fires, coverage, staleness | |
pm review | Surface quality issues: duplicates, contradictions, dormant guardrails | |
pm stale / pm verify | Detect and re-verify outdated memories | |
pm mcp | Run the MCP server (stdio) | |
pm doctor | Diagnose setup |
Memory types: decision, failed_attempt, fragile_file, architecture, deployment, client_preference, session_summary.
Some lessons are project-specific; some apply to every repo on your machine that belongs to the same org or client. memini has three scopes:
| Scope | Where it lives | Use it for |
|---|---|---|
project (default) | /.memini/ | this repo's failed fixes, fragile files, decisions |
workspace | .memini/ in a parent folder of your repos | org/client conventions shared by every repo under that folder |
user | ~/.memini/ | personal rules that follow you everywhere |
cd ~/work/acme && pm init --workspace # one-time: workspace store covering ~/work/acme/*
pm remember deployment "DB connections must use org OAuth, never PATs" \ --file "databricks.yml" --severity warn --scope workspace
pm promote --workspace # lift a project lesson that turned out to be org-wide
Every repo under the workspace folder — including ones you create later — gets those guardrails automatically. Resolution walks up the directory tree, like .gitconfig or ESLint configs. Workspace/user file guardrails match by glob (vercel.json matches any repo's vercel.json; config/**/*.yml works too), and wider-scope memories only fire when human-verified — agents can propose memories to project scope only, so a prompt-injected agent can't plant rules that spread across repos. pm doctor shows which scopes are active.
.memini/ that your team reviews like any other change.Local-first by design: no server, no account, no telemetry. Secrets are auto-redacted before storage, file references are contained to the repo, and injected memory text is size-capped and framed as data. See SECURITY.md for the full threat model — including the honest limitations (guardrails intercept edit tools, not arbitrary shell; warn is advisory, block is not).
Early (v0.1). Team sync — shared memory across your whole team, with a review workflow — is on the roadmap. Feedback and issues welcome.
MIT