Basic information

Version
0.7.4
License
MIT
Transports
stdio
Author
igorganapolsky
Submitted by
Community
Quality
15

About Mcp Memory Gateway Server

MCP Memory Gateway is a pre-action gate engine for AI coding agents. Unlike memory servers that store and retrieve context (Mem0, Zep), this server enforces behavior change: repeated failures are auto-promoted into prevention rules, and PreToolUse hooks physically block tool call

Mcp Memory Gateway is a MCP server in the Memory & Knowledge category listed in the AddMCP.net directory, published by IgorGanapolsky. It exposes 50 tools, including capture_feedback, feedback_summary, search_lessons, retrieve_lessons and more. Supported transport: stdio. License: MIT. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "mcp-memory-gateway": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-memory-gateway",
                "serve"
            ]
        }
    }
}

Mcp Memory Gateway config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mcp-memory-gateway": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-memory-gateway",
                "serve"
            ]
        }
    }
}

Mcp Memory Gateway tools

  • capture_feedback — Capture an up/down signal plus one line of why. Vague feedback is logged, then returned with a clarification prompt instead of memory promotion.
    signal:string*, failureType:string, context:string, relatedFeedbackId:string, whatWentWrong:string, whatToChange:string, whatWorked:string, chatHistory:array, tags:array, skill:string, conversationWindow:array, rubricScores:array, …
  • feedback_summary — Get summary of recent feedback
    recent:number
  • search_lessons — Search promoted lessons and show the corrective actions, lifecycle state, prevention rules, gates, and next harness fixes linked to each result.
    query:string, limit:number, category:string, tags:array
  • retrieve_lessons — Retrieve the most relevant lessons for a given tool/action context. Use in PreToolUse hooks for per-action guidance.
    toolName:string*, actionContext:string, maxResults:number
  • search_rlhf — Search raw ThumbGate state across feedback logs, ContextFS memory, and prevention rules.
    query:string*, limit:number, source:string, signal:string
  • feedback_stats — Get feedback stats and recommendations
    (no parameters)
  • diagnose_failure — Diagnose a failed or suspect workflow step using MCP schema, workflow, gate, and approval constraints.
    step:string, context:string, toolName:string, toolArgs:object, output:string, error:string, exitCode:number, intentId:string, approved:boolean, mcpProfile:string, verification:object, rubricScores:array, …
  • infer_lesson_from_history — Perform autonomous inference on chat history to identify why a failure occurred and what rule should be recorded.
    chatHistory:array*, lastAction:object
  • list_intents — List available intent plans and whether each requires human approval in the active profile
    mcpProfile:string, bundleId:string, partnerProfile:string
  • plan_intent — Generate an intent execution plan with policy checkpoints
    intentId:string*, context:string, mcpProfile:string, bundleId:string, partnerProfile:string, delegationMode:string, approved:boolean, repoPath:string
  • start_handoff — Start a sequential delegation handoff from a delegation-eligible intent plan
    intentId:string*, context:string, mcpProfile:string, bundleId:string, partnerProfile:string, approved:boolean, repoPath:string, delegateProfile:string, plannedChecks:array
  • complete_handoff — Complete a sequential delegation handoff and record verification outcomes
    handoffId:string*, outcome:string*, resultContext:string, attempts:number, violationCount:number, tokenEstimate:number, latencyMs:number, summary:string
  • describe_reliability_entity — Get the definition and state of a business entity (Customer, Revenue, Funnel). Aliased to describe_semantic_entity.
    type:string
  • get_reliability_rules — Retrieve active prevention rules and success patterns. Aliased to prevention_rules.
    (no parameters)
  • enforcement_matrix — Show the full Enforcement Matrix: feedback pipeline stats, active pre-action gates, and rejection ledger with revival conditions.
    (no parameters)
  • capture_memory_feedback — Capture success/failure feedback to harden future workflows. Aliased to capture_feedback.
    signal:string*, context:string*, tags:array
  • bootstrap_internal_agent — Normalize a GitHub/Slack/Linear trigger into startup context, construct a recall pack, prepare a git worktree sandbox, and emit an execution plus reviewer-lane plan.
    source:string*, repoPath:string, prepareSandbox:boolean, sandboxRoot:string, intentId:string, context:string, mcpProfile:string, partnerProfile:string, delegationMode:string, approved:boolean, trigger:object, thread:object, …
  • prevention_rules — Generate prevention rules from repeated mistake patterns
    minOccurrences:number, outputPath:string
  • export_dpo_pairs — Export DPO preference pairs from local memory log
    memoryLogPath:string
  • export_databricks_bundle — Export ThumbGate logs and proof artifacts as a Databricks-ready analytics bundle
    outputPath:string
  • construct_context_pack — Construct a bounded context pack from contextfs
    query:string, maxItems:number, maxChars:number, namespaces:array
  • evaluate_context_pack — Record evaluation outcome for a context pack
    packId:string*, outcome:string*, signal:string, notes:string, rubricScores:array, guardrails:object
  • context_provenance — Get recent context/provenance events
    limit:number
  • generate_skill — Auto-generate Claude skills from repeated feedback patterns. Clusters failure patterns by tags and produces SKILL.md files with DO/INSTEAD rules.
    minOccurrences:number, tags:array
  • recall — Recall relevant past feedback, memories, and prevention rules for the current task. Call this at the start of any task to inject past learnings into the conversation.
    query:string*, limit:number, repoPath:string
  • satisfy_gate — Satisfy a gate condition with optional structured reasoning. Evidence is stored with a 5-minute TTL. When structuredReasoning is provided, the premise/evidence/conclusion chain is stored in the audit trail.
    gate:string*, evidence:string, structuredReasoning:object
  • track_action — Record a verification action in the current session (for example figma_verified or tests_passed). Session actions expire after one hour.
    actionId:string*, metadata:object
  • verify_claim — Check whether a claim has enough tracked evidence before the agent asserts it.
    claim:string*
  • register_claim_gate — Register a custom claim verification rule in local runtime state without editing tracked repo config.
    claimPattern:string*, requiredActions:array*, message:string
  • gate_stats — Get gate enforcement statistics -- blocked count, warned count, top gates
    (no parameters)
  • dashboard — Get full ThumbGate dashboard -- Harness Score, gate stats, prevention impact, proof, and system health
    (no parameters)
  • org_dashboard — Org-wide multi-agent dashboard — shows all active agents, gate decisions, adherence rates, risk agents, and top blocked gates across the organization. Team rollout: full visibility. Free preview: limited to 3 agents.
    windowHours:number
  • settings_status — Resolve managed, user, project, and local ThumbGate settings with per-field origin metadata for policy visibility.
    (no parameters)
  • commerce_recall — Recall past feedback filtered by commerce categories (product_recommendation, brand_compliance, sizing, pricing, regulatory). Returns quality scores alongside memories for agentic commerce agents.
    query:string*, categories:array, limit:number
  • get_business_metrics — Retrieve high-level business metrics (Revenue, Conversion, Customers) from the Semantic Layer.
    window:string
  • describe_semantic_entity — Get the canonical definition and state of a business entity (Customer, Revenue, Funnel).
    type:string
  • estimate_uncertainty — Estimate Bayesian uncertainty for a set of tags based on past feedback.
    tags:array
  • session_handoff — Write a session handoff primer that auto-captures git state (branch, last 5 commits, modified files), last completed task, next step, and blockers. The next session reads this automatically for seamless context continuity.
    lastTask:string, nextStep:string, blockers:array, openFiles:array, project:string, customContext:string
  • session_primer — Read the most recent session handoff primer to restore context from the previous session. Call at session start.
    (no parameters)
  • list_harnesses — List natural-language harness specs for portable workflow control, proof-backed verification, and GTM execution.
    tag:string
  • run_harness — Execute a natural-language harness through the async job runner with checkpoints, verification, and proof-backed outcomes.
    harness:string*, inputs:object, jobId:string
  • schedule — Create, list, or delete scheduled tasks. Supports natural language scheduling like "daily 9:00", "weekly monday 8:30", "hourly". Installs as macOS LaunchAgent or Linux crontab.
    action:string*, name:string, schedule:string, command:string, description:string, workingDirectory:string
  • user_profile — Manage persistent user profile — preferences, style, domain knowledge that persists across sessions. Actions: add, remove, replace, view.
    action:string*, content:string, old_text:string
  • session_search — Search past session notes and conversations using full-text search. Returns relevant sessions from the SQLite FTS5 index for cross-session recall.
    query:string*, limit:number
  • open_feedback_session — Open a feedback session after thumbs up/down. Follow-up messages will be captured for 60s.
    feedbackEventId:string*, signal:string*, initialContext:string
  • append_feedback_context — Append a follow-up message to an open feedback session. Call this when the user types additional context after giving thumbs up/down.
    sessionId:string*, message:string*, role:string
  • finalize_feedback_session — Finalize a feedback session and re-infer the lesson with all follow-up context.
    sessionId:string*
  • webhook_deliver — Send a message to Teams, Slack, or Discord via webhook. Use for status reports, alerts, and notifications.
    platform:string*, webhook_url:string*, title:string*, message:string*
  • reflect_on_feedback — Run a post-mortem analysis on negative feedback. Returns a proposed rule and recurrence info.
    conversationWindow:array, context:string, whatWentWrong:string, feedbackEventId:string
  • report_product_issue — Report a bug, suggestion, or complaint about ThumbGate itself (not project feedback). Auto-files a GitHub issue with system context. Use when the user expresses frustration or requests a feature for the mcp-memory-gateway tool.
    title:string*, body:string*, category:string

Overview

What is Mcp Memory Gateway?

Mcp Memory Gateway is a pre-action gate engine for AI coding agents. Unlike memory servers that store and retrieve context, it enforces behavior change by auto-promoting repeated failures into prevention rules and physically blocking tool calls that match known failure patterns before they execute. It captures structured up/down feedback, validates against a rubric engine, promotes to searchable JSONL and LanceDB vector memory, and recalls relevant context at session start.

How to use Mcp Memory Gateway?

Install with npx mcp-memory-gateway init. It works with Claude Code, Codex, Gemini, Amp, Cursor, and any MCP-compatible agent. No further configuration or invocation details are provided in the README.

Key features of Mcp Memory Gateway

  • Pre-action gate engine blocks tool calls before they execute.
  • Repeated failures auto-promote into prevention rules.
  • Captures structured up/down feedback with rubric validation.
  • Promotes validated feedback to searchable JSONL and LanceDB vector memory.
  • Recalls relevant context at session start.
  • Works with Claude Code, Codex, Gemini, Amp, and Cursor.

Use cases of Mcp Memory Gateway

  • Preventing AI agents from repeating known mistakes during coding sessions.
  • Enforcing behavior change by physically blocking harmful tool calls.
  • Curating high-quality feedback signals through rubric validation.
  • Recalling past failure patterns at the start of a new session.

Frequently asked questions

1 What differentiates Mcp Memory Gateway from other memory servers like Mem0 or Zep?

Mcp Memory Gateway is a pre-action gate engine that enforces behavior change by blocking tool calls that match known failure patterns, rather than simply storing and retrieving context.

2 What runtime or dependencies does Mcp Memory Gateway require?

The README does not specify runtime or dependencies beyond being installable via npx mcp-memory-gateway init.

3 Where is memory data stored?

Memory is stored in searchable JSONL files and LanceDB vector memory.

4 What agents or clients are compatible with Mcp Memory Gateway?

It works with Claude Code, Codex, Gemini, Amp, Cursor, and any MCP-compatible agent.

5 Does Mcp Memory Gateway support feedback validation?

Yes, it captures structured up/down feedback and validates it against a rubric engine, rejecting vague signals.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬