Skip to main content
Glama
FocalMem MCP Server

FocalMem MCP Server

by kannazuki114

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GEMINI_API_KEYNoAPI key for the Google Gemini REST endpoint (used when FOCAL_LLM_PROVIDER=gemini).
FOCAL_LLM_MODELNoModel name for LLM semantic distillation, e.g. gpt-4o-mini for OpenAI-compatible or gemini-2.5-flash for Gemini.
FOCAL_LLM_API_KEYNoAPI key for the OpenAI-compatible endpoint (used when FOCAL_LLM_PROVIDER=openai).
FOCAL_LLM_BASE_URLNoBase URL for the OpenAI-compatible endpoint, e.g. https://api.openai.com/v1 (used when FOCAL_LLM_PROVIDER=openai).
FOCAL_LLM_PROVIDERNoLLM provider for Dreamer semantic distillation. Use "openai" for an OpenAI-compatible endpoint or "gemini" for the native Google Gemini REST API.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

开局优先调用 memory_bootstrap 获取 L1 铁律与冲突告警;需要回忆详情先调用 graph_query 拿指针,再按需调用 pointer_hydrate 拉回原文。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
memory_bootstrapB

开局对焦:获取 L1 核心铁律、未解决冲突警报、相关 L2 摘要卡及已废止禁区列表。

graph_queryB

因果图谱检索:仅返回节点精简摘要与原文指针,默认隔离已被废止的旧方案。

pointer_hydrateC

按原文指针拉回高清片段(支持行号漂移自愈),并刷新对应记忆的活跃热度。

memory_commitC

写入新记忆节点(支持挂接原文指针与因果边,并自动检测与 L1 铁律的潜在冲突)。

memory_supersedeB

主动遗忘阀:废止过时/错误的旧方案并建立因果替代链,立即将其踢出默认检索。

memory_resolve_conflictC

处理或关闭一条核心铁律冲突告警(action: resolved | dismissed)。

dream_consolidateC

执行微睡眠整理周期:消化队列、合并重复记忆、衰减降级冷门节点并修复漂移指针。

memory_export_snapshotC

导出一份纯净的跨会话交接快照 Markdown,方便粘贴至任意 AI 界面继续工作。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
get_l1_pinned_resource暴露默认项目工作区的 L1 核心铁律与交接快照。

TDQS

B3.3/5.0

Scored across 8 tools

Disambiguation4/5

Each tool maps to a distinct operation in the memory lifecycle: write (memory_commit), forget (memory_supersede), conflict resolution, consolidation, retrieval (graph_query), raw fragment hydration (pointer_hydrate), session bootstrap, and export. The only mild overlap is between memory_bootstrap and graph_query, since both surface memory context, but their descriptions clarify that bootstrap is startup triage of laws/conflicts and graph_query is targeted causal search.

Naming Consistency4/5

All names follow a consistent noun_verb structure (memory_commit, pointer_hydrate, dream_consolidate, graph_query). The noun prefix varies by subsystem (memory, pointer, dream, graph), which is slightly less uniform than a single namespace but remains predictable and readable.

Tool Count5/5

Eight tools is well scoped for a memory server: enough to cover write, retrieval, conflict handling, consolidation, forgetting, and export without redundancy. Every tool appears to earn its place in the workflow.

Completeness4/5

The surface covers the core lifecycle: commit, supersede/forget, resolve conflicts, bootstrap context, query the graph, hydrate raw text, consolidate, and export a handoff snapshot. Minor gaps exist, such as direct memory editing or explicit tagging/listing operations, but these can be worked around via supersede and graph_query.

Maintenance

ActivityMaintained
ResponsivenessOutdated data