Myelin
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MYELIN_DATA_DIR | No | Directory where all data lives. Default: ~/.myelin | |
| MYELIN_LATERAL_K | No | Max results per session/scope (0 = off). Default: 1 | |
| MYELIN_LOG_LEVEL | No | Logging verbosity (structured JSON to stderr). Default: INFO | |
| MYELIN_MULTIPROBE | No | 3-probe retrieval (original + keywords + entity-expanded). Default: true | |
| MYELIN_MAX_MEMORIES | No | Hard memory cap; 0 = unlimited. LRU eviction when exceeded. Default: 0 | |
| MYELIN_CHUNK_MAX_CHARS | No | Max characters per chunk. Default: 1000 | |
| MYELIN_EMBEDDING_MODEL | No | Bi-encoder model. Default: all-MiniLM-L6-v2 | |
| MYELIN_NECORTEX_RERANK | No | Cross-encoder re-ranking. Default: true | |
| MYELIN_NECORTEX_WEIGHT | No | CE/bi-encoder blend (0.0–1.0). Default: 0.6 | |
| MYELIN_DEFAULT_N_RESULTS | No | Results returned per recall. Default: 5 | |
| MYELIN_MIN_CONTENT_LENGTH | No | Minimum chars to pass the input gate. Default: 20 | |
| MYELIN_RECALL_OVER_FACTOR | No | Over-retrieval multiplier for re-ranking headroom. Default: 8 | |
| MYELIN_CHUNK_OVERLAP_CHARS | No | Overlap between text chunks. Default: 200 | |
| MYELIN_CROSS_ENCODER_MODEL | No | Cross-encoder model. Default: ms-marco-MiniLM-L-6-v2 | |
| MYELIN_CONSOLIDATION_INTERVAL | No | Auto-consolidate every N stores (0 = disabled). Default: 50 | |
| MYELIN_DEDUP_SIMILARITY_THRESHOLD | No | Above this = near-duplicate, rejected. Default: 0.95 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| storeA | Store a memory with optional context metadata. Args:
content: The information to remember.
project: Cortical region — project name for scoped retrieval.
language: Programming language context.
scope: Engram cluster — domain scope (e.g. "auth", "database").
memory_type: Memory system (episodic/semantic/procedural/prospective).
tags: Comma-separated tags for categorization.
source: Which tool stored this ("copilot", "cursor", etc.).
overwrite: If True and content is a near-duplicate of an existing
memory, replace the old memory instead of rejecting. The
response will include Returns:
JSON with memory ID on success, or rejection reason. Credentials in
the content (API keys, private keys, passwords in URLs) are replaced
with |
| recallA | Recall memories relevant to a query. Args: query: What to search for (semantic similarity). n_results: Maximum number of results to return. project: Filter to a specific cortical region (project). language: Filter to a specific language. scope: Filter to a specific engram cluster (domain scope). memory_type: Filter by memory system (episodic/semantic/procedural/prospective). reference_date: ISO-8601 date for temporal context (e.g. "2026-04-12"), in the server's local time. Defaults to now. agent_id: Namespace of the calling agent — returns that agent's memories plus shared ones. Without one, only shared memories are returned. Defaults to the server's MYELIN_AGENT_ID setting. Returns: JSON array of matching memories with scores. |
| forgetB | Remove a specific memory by ID. Args: memory_id: The ID of the memory to remove. Returns: JSON confirmation or error. |
| pin_memoryA | Pin a memory so it is always included in recall results. Pinned memories model the thalamic relay — sustained activation that keeps critical facts always available to the cortex. Args: memory_id: The ID of the memory to pin. priority: 0 = identity/system context, 1 = critical facts. label: Optional human-readable label for this pin. Returns: JSON confirmation. |
| unpin_memoryB | Remove a pinned memory from the thalamic buffer. Args: memory_id: The ID of the memory to unpin. Returns: JSON confirmation or not_found. |
| decay_sweepB | Prune stale memories that haven't been accessed recently. Removes memories exceeding the idle threshold with low access counts. Returns: JSON summary of pruned memories. |
| statusA | Show memory system status. Returns: JSON with memory count and configuration. |
| statsA | KPI dashboard for the memory database. Returns counts by memory type, project, scope, knowledge domain, access health (hot/warm/cold), age distribution, Hebbian link statistics, and a count of decay candidates. Optionally filter to a specific project or agent namespace. Args: project: Restrict results to this project name (empty = all projects). agent_id: Restrict results to this agent namespace (empty = all agents). Returns: JSON with total, entity_count, relationship_count, pinned_count, hebbian stats, by_type, by_project, by_scope, by_region, access, age, decay_candidates, and filter. |
| consolidateA | Replay episodic memories into the semantic network (offline consolidation). Extracts entities from stored memories and builds co-occurrence relationships in the neocortex — like hippocampal replay during sleep. Returns: JSON summary of memories replayed, entities found, and relationships created. |
| ingestA | Bulk-load memories from a file or directory. Supported formats:
Args: path: Absolute or relative path to a file or directory. project: Default project tag (overridden by per-file frontmatter). scope: Default scope tag (overridden by per-file frontmatter). source: Source label for all ingested memories. recursive: Descend into subdirectories (default: true). Returns: JSON summary with stored, skipped, and errors counts. |
| healthA | Lightweight health check — returns ok without initializing stores. Returns: JSON with status and version. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Most tools have clearly distinct purposes: store vs. ingest differ by single vs. bulk loading, recall is retrieval, forget is deletion, and pin/unpin are lifecycle controls. The main overlap is health vs. status, which both report system state, though their descriptions distinguish lightweight liveness from configuration and memory counts.
All names use snake_case, but the convention mixes single verbs (store, recall, forget), noun-like diagnostics (health, stats, status), and compound verbs (pin_memory, unpin_memory, decay_sweep). The pattern is readable but not a consistent verb_noun scheme throughout.
Eleven tools is well-scoped for a memory server, covering storage, retrieval, deletion, pinning, bulk ingest, maintenance, and diagnostics. Each tool appears to earn its place without excessive surface area.
The surface covers the core memory lifecycle: store, bulk ingest, recall, forget, pin/unpin, consolidation, decay, and status/stats. Minor gaps remain, notably no explicit update/edit-by-ID operation and no export tool despite ingest referencing myelin export output, but these are workaroundable.