
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 翻譯