Skip to main content
Glama

Memory-Facade

모든 코딩 에이전트(Claude Code, Codex, OpenCode, Hermes)에게 하나의 큐레이팅된 공유 메모리 진입점(자동 뱅크/태그 라우팅, URL 수집 → 연결된 문서, 세션 → 문서화 세트, 일관성 도구(중복 제거/재라우팅))을 제공하는 얇고 상태 비저장 MCP 서버입니다.

Hindsight(사실)와 LightRAG(코퍼스)를 조율합니다. 스토리지를 재구현하지 않으며 뱅크를 절대 생성하지 않습니다.

설계 및 2026-08-18 콘텐츠 기준선은 ~/Projects/common-memory/docs/memory-facade-architecture.md를 참조하세요.

실행 (stdio MCP 서버)

uv run python -m mf.server

msm-ai-gateway LiteLLM MCP 런타임에 MCP 서버로 배포되며, /memory-facade/mcp로 라우팅됩니다(config/litellm.yaml의 lightrag와 동일한 패턴).

Related MCP server: memex

테스트

env -u PYTHONPATH uv run --extra dev pytest -q

참고: Sergey의 호스트에서는 셸이 Hermes venv를 가리키는 PYTHONPATH를 내보냅니다. 여기서 실행하기 전에 해제하세요(env -u PYTHONPATH …). 그렇지 않으면 잘못된 pydantic/pydantic_core가 임포트되어 오류가 발생합니다.

Available Tools

6 tools
memory_dedupeA

Find duplicate / over-fragmented memories in a bank and propose merging.

Detects exact chunk_id collisions and normalized-text duplicates, returns the proposed groups. With commit=True runs consolidation (destructive); read-only by default.

Inputs: bank, commit, sample_limit. Returns: object

memory_ingest_urlB

Analyze a URL and produce a compact, cross-linked article card.

Fetches the URL, auto-routes bank/tags, builds an article, auto-links to related existing cards, and (with commit=True) persists card facts. Read-only by default.

Inputs: url (required), commit, explicit_bank. Returns: object

memory_recallA

Curated semantic recall across Hindsight banks.

Queries the given banks (default ["global-user"]), merges results with [[bank:id]] provenance, de-duplicates rows sharing a chunk, and returns a synthesis with citations. Read-only; never mutates memory.

Inputs: query (required), banks, budget, max_items. Returns: object

memory_rerouteA

Find memories misrouted to the wrong bank and propose relocating them.

Detects rows in source_bank that deterministically belong in another bank (e.g. infra content in global-user) and returns the move proposals. With commit=True relocates (destructive); read-only by default.

Inputs: commit, source_bank, sample_limit. Returns: object

memory_session_to_docsA

Turn a session's durable facts into a linked documentation set.

Groups the facts into topic clusters, builds one Article per cluster, and cross-links them into a doc set. With commit=True the cards are persisted. Read-only by default.

Inputs: facts (required), commit. Returns: object

pingA

Report Hindsight connectivity/health from the facade.

Inputs: no named parameters. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: health check (ping), querying (recall), URL ingestion (ingest_url), session-to-doc conversion (session_to_docs), bank misrouting detection (reroute), and deduplication (dedupe). No two tools could be easily confused.

    Naming Consistency4/5

    All tools share the consistent prefix 'memory_', but the verb parts vary: single verbs (reroute, ping, recall, dedupe) mix with verb_noun (ingest_url) and prepositional (session_to_docs). The pattern is mostly consistent but has minor deviations.

    Tool Count5/5

    With 6 tools, the server is well-scoped for a memory management facade. Each tool addresses a distinct operation without overwhelming the agent. The count feels appropriate for the domain.

    Completeness3/5

    The tool set covers core operations like ingestion, retrieval, reorganization, and deduplication, but lacks explicit create/edit/delete for individual memories, and there is no simple list-all tool. Some gaps exist, but the domain is partially covered.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Centralized agentic memory and MCP gateway for LLMs, enabling persistent memory recall, validation, and integration with upstream MCP servers.
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A self-hosted server providing shared memory, RAG document search, project maps, and role-based prompts for all AI agents via MCP and REST, enabling persistent context across devices and tools.
      3
      MIT