
MCP Memory Gateway
io.github.IgorGanapolsky由 GitHub 账号 IgorGanapolsky 发布v0.7.4更新于 Oct 24, 2026
Pre-action gates that block AI agents from repeating known mistakes.
发布方自己的服务:Memory.fit
概览
ThumbGate 是一个本地预操作闸门,在 AI 编码代理执行工具调用前进行检查,可警告、记录或阻止高风险操作。
- 可以做什么
- 它以本地 stdio MCP 服务器和 PreToolUse 钩子运行,在工具调用执行前进行评估。其 MCP 接口包括 gate_check(读取/评估拟议的工具调用)、反馈采集与会话工具(写入)以及仪表盘/统计(读取)。被接受的点赞/点踩反馈会存为本地经验教训,并可提升为预防规则;默认情况下,密钥泄露和两类自我禁用命令会被硬阻止,而 rm -rf、强制推送、拉取即运行以及护栏编辑默认只警告并记录,除非启用严格模式。
- 适用场景
- 当 AI 编码代理可能执行破坏性命令或泄露密钥,而你希望在工具执行前设置运行时允许/警告/拒绝边界时,值得添加。它面向使用 Claude Code、Cursor、Codex、Gemini CLI 及其他 MCP 代理、希望把重复错误转化为预防规则的操作者。
- 运行要求
- 需要 Node.js 18 或更高版本,通过 npx 运行该 npm 包(例如以 npx -y thumbgate serve 启动 stdio MCP)。清单中未声明认证、环境变量或请求头。本地存储使用 SQLite、LanceDB 向量和 JSONL 日志;执行路径被描述为本地优先,无需云端。README 提到付费 Pro 层级可解锁无限规则和经验教训搜索。
安装
在 SourceWeft 中
- 打开 控制台中的 MCP Memory Gateway,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ThumbGate 👍 👎
[ThumbGate Infrastructure Firewall with Thumbs Up and Thumbs Down]
ThumbGate is the self-improving pre-action firewall for AI coding agents
AI coding agents repeat mistakes — and one wrong tool call can wipe a directory, leak a key, or push broken code.
[MCP Toplist] [CI] [npm version] [npm weekly downloads] [GitHub stars] [GitHub Marketplace: ThumbGate Agent Governance] [License: MIT]
[Quick Start] [Watch Demo] [Try GPT] [Pro Tier]
What it does
ThumbGate is the local-first Pre-Action Checks engine for AI coding agents. It runs in the PreToolUse hook to evaluate the proposed tool call before execution — so costly mistakes can be caught before they happen.
ThumbGate GitHub star growth is measured with GitHub's privacy-safe GET /repos/{owner}/{repo}/stargazers/history endpoint (weekly counts, no stargazer identities). Run npm run stars:history -- --fixture tests/fixtures/github-star-history.json --json for the local proof. Stars are not npm installs and not revenue. The live GitHub Marketplace Action is ThumbGate Agent Governance (uses: IgorGanapolsky/ThumbGate@v1).
Usage over star count. Evaluate ThumbGate from the install path and live usage badges above (npx thumbgate init, Marketplace uses:, npm weekly downloads, GitHub clones), not from whether the repo has twenty stars or twenty thousand. No pitch deck is required. We do not farm GitHub profile badges (no YOLO-merge of protected main, no 5-minute Issue close theater, no fake Co-authored-by). Galaxy Brain needs real accepted answers in Discussions Q&A. npm run github:achievements -- --fixture tests/fixtures/github-achievements.json --json inventories what is already earned vs what we refuse to farm.
Who it's for
ThumbGate is for operators whose AI coding agents can leak a secret or destroy a checkout before a human sees the tool call (Claude Code, Cursor, Codex, Gemini CLI, MCP). Discovery should reach those operators — not a star campaign.
ThumbGate is not a GitHub star package, not fake engagement, and not a substitute for npm installs or merged PRs. Real engagement is npx thumbgate init and a PreToolUse hook that actually fires.
Tech memes (shareable)
Lightweight visuals for how agents fail without a pre-action gate:
It hard-blocks detected secret leaks and two direct self-disable command classes by default — commands that terminate the ThumbGate gate process or enable its bypass environment override. Other high-risk classes (rm -rf, force-push, fetch-and-run, direct guardrail edits) warn and log by default. Set THUMBGATE_STRICT_ENFORCEMENT=1 for strict enforcement (warnings become hard denies).
Accepted feedback is stored as local lessons. Repeated concrete failures can become prevention rules that promote from warnings to blocking gates. The firewall improves from operations without retraining the model. Prompt evaluation (npx thumbgate eval) turns accepted feedback into reusable eval cases and local proof reports.
Honest disclaimer: ThumbGate does not update model weights. It intercepts tool calls at runtime. Local-first — no cloud required for the enforcement path.
Works with Claude Code, Cursor, Codex, Gemini CLI, Amp, Cline, OpenCode, and other MCP agents.
[AI Agent without ThumbGate vs Agent guarded by ThumbGate]
Agentic development cycle fit
Agentic development is becoming a loop: Guide → Generate → Verify → Solve. ThumbGate is the pre-action gate / pre-action boundary between generated intent and executed action.
Quick Start
Want a phased walkthrough with a verify step at every stage? Follow the Progressive Setup Guide.
Progressive wiring — prove the pipe before you turn matching on. Empty dashboard is success.
Later DROP attempts in the same scope surface the check:
Numbered configs: config/progressive/. Guide: progressive wiring.
MCP / Glama / registry install (stdio)
Directories and clients that install ThumbGate as an MCP server must start stdio MCP, not the HTTP API:
- Equivalent:
npx -y thumbgate mcp - Do not use
npm startfor MCP — that launches the hosted HTTP API (src/api/server.js), not the agent-facing stdio server.
▶ 90-second demo · GIF walkthrough
Install for your agent
Per-agent guides: Claude/Codex bridge · Codex profile · Cursor · MCP setup
Install scope: machine-wide vs per-project
Both scopes write mcpServers.thumbgate plus PreToolUse / UserPromptSubmit / PostToolUse / SessionStart hooks. Machine-wide is the right default for most developers. Cross-repo blocking is not automatic: a lesson learned in one project only applies elsewhere when you share the store (machine-wide) or export/import lessons.
MCP tools (surface): gate_check (read/evaluate proposed tool call), feedback capture + session tools (write), dashboard/stats (read). Destructive agent actions stay blocked/warned by PreToolUse — ThumbGate does not execute user shell commands for you.
Discoverable slash-commands — the guardrail layer for spec-driven agents
Spec-driven agent frameworks like GSD (get-shit-done) and GitHub Spec Kit plan and generate work. ThumbGate is the guardrail layer for spec-driven agents: it sits after the plan, on the boundary between a generated tool call and its execution — alongside GSD / Spec-Kit, not instead of them.
npx thumbgate init installs these into your agent palette:
Pricing & buyer paths
Free tier: 2 feedback captures/day (10 total) and up to 3 active auto-promoted prevention rules. Pro ($19/mo or $149/yr) is the individual tier for unlimited rules, history-aware lessons, linked feedback session flow, personal dashboard, and DPO export. Enterprise is custom and scoped after intake; hosted team lesson sync and a hosted org dashboard are not general availability.
Enterprise intake path: the Workflow Hardening Sprint scopes one repeated failure before any broader rollout commitment. Start intake →
Local technical path: install the CLI and use init plus the documented setup so Pre-Action Checks evaluate tool calls where the agent actually runs.
First-dollar activation path: open the ThumbGate GPT, paste the risky action, capture typed feedback (thumbs down: / thumbs up:). Native ChatGPT rating buttons are not the ThumbGate capture path. Ask: what repeated AI mistake would be worth catching before the tool executes?
Paid path for individual operators: ThumbGate Pro is the self-serve side lane for a personal dashboard and export-ready evidence.
Start free · Pro $19/mo · Live Dashboard · Team Sprint intake · Workflow Hardening Sprint · First Dollar Playbook
Popular buyer questions: AI search topical presence · Relational knowledge and AI recommendations · AI Mode ads for agent governance · MCP tool governance · AI agent pre-action approval gates · Background agent governance · GPT-5.5 model evaluation · Stop repeated AI agent mistakes · Browser automation safety · Native messaging host security · Autoresearch agent safety · Cursor guardrails · Codex CLI guardrails · Gemini CLI memory + enforcement · Google Cloud MCP guardrails · Roo Code alternative: migrate to Cline
How it works (short)
- Capture 👍/👎 feedback (CLI, MCP, linked feedback session flow /
open_feedback_session, or ThumbGate GPT) - Promote concrete lessons via history-aware lesson distillation into prevention rules
- Evaluate the next proposed tool call against active rules (literal/AST + local vectors)
- Allow / warn / deny before the tool runs
Pro operators can invoke search_lessons through MCP and use npx thumbgate lessons from the CLI. History-aware feedback sessions and lesson search are Pro capabilities; Free does not include recall or search.
Architecture diagram & stack
Built-in checks
CLI cheatsheet
Pro: lesson + DPO export
Tech Stack
Every Changeset is tied to the exact main merge commit and generates Verification Evidence for Release Confidence.
Cloud & model infrastructure
- Local Pre-Action Firewall & MCP Runtime: Sub-
0.5mslocalPreToolUseenforcement (npx thumbgate init) across Claude Code, Cursor, Codex, and Gemini CLI;TencentDB Agent Memoryrecord normalization into blocking SQL safety candidates is covered intests/memory-provider-enforcement-bridge.test.js, and outer-harness context-budget checks inspired by Tencent HunyuanHy-Memory-30B-A3Bresearch are validated inscripts/rrsi-doctor.js. - Companion Benchmark & Technical Case Study: External evaluation of Tencent Cloud Lighthouse / CVM (
SA5/SA9AMD Turin-Dense3.4 GHzall-core turbo inap-hongkong&ap-singapore) and theHy-Memory-30B-A3Bsurgical state-patching pattern is published in our companionhermes-evalbenchmark repository (docs/TENCENT-CLOUD-SA9-HUNYUAN-CASE-STUDY.mdandscripts/tencent_sa9_hunyuan_benchmark.py).
Integrations (compact)
Docs
Full index: docs/INDEX.md
FAQ (one-liners): Not a fine-tuner (runtime intercept only). Different from CLAUDE.md / .cursorrules (those are context; ThumbGate is an external allow/warn/deny before tools run).
Who builds this
Igor Ganapolsky — payments (Stripe/Connect), AI agent guardrails/MCP, Android + backends. Small number of contract slots: $120–150/hr, 1099, remote US. LinkedIn · thumbgate.ai
License
MIT — see LICENSE. Project policy: SECURITY.md · THREAT_MODEL.md.
来源:README.md,提交 1a189d9
工具
0版本历史
1- v0.7.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Memory 集成

Memory.fit
fit.memory官方发布者
托管式 Memory.fit 服务器,让 AI 读取你的训练、睡眠、恢复与饮食数据,并写回每周计划、每日目标和饮食计划。
pg.ddx.io: the PostgreSQL community's memory
io.ddx.pg官方发布者
pg.ddx.io: the PostgreSQL community's memory 的托管 MCP 服务,由 pg.ddx.io 发布;无需登录;Streamable HTTP;29 个工具。
var.gg Naming Memory
gg.var官方发布者
远程 MCP 服务器,可根据领域概念推荐并检索韩、日、中、越、英多语言的代码标识符名称,并提供 ERD 结构查询。

Counterparts
ai.counterparts
面向 Claude Code 与 Claude Desktop 的本地优先长期记忆:助手自行写下关于你和项目的笔记,并在之后的会话中回忆起来。

LAHZE - Persian AI Memory Platform
由 GitHub 账号 pedramgholizadeh 发布
以波斯语为先的地理记忆平台:发现地点,起草并发布仅限波斯语的记忆。AI 翻译