Cortex-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| STORAGE | No | Path to the JSON snapshot storage file, provided via the `--storage` CLI flag. Defaults to `~/.cortex-mcp/memory.json`. |
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 |
|---|---|
| memory_record_episodeB | Record an immutable engineering episode (ADR, bug_root_cause, invariant, session_note, migration, incident) with associated files and mentioned entities. |
| memory_upsert_factB | Record a structured entity-relationship fact (subject_id, predicate, object) with automatic bi-temporal conflict detection and supersession of stale facts. |
| memory_compile_contextA | Compile a token-budgeted, provenance-cited context bundle for a coding query, automatically suppressing superseded/stale facts. |
| memory_query_entityA | Inspect an entity's active facts, superseded historical facts, related episodes, and K-hop ego-graph neighborhood. |
| memory_time_travelA | Query the knowledge graph as of a specific ISO-8601 timestamp to inspect historical architecture state. |
| memory_verify_integrityA | Verify cryptographic SHA-256 hashes of all episodes and facts and compute the graph Merkle digest. |
| cortex_audit_contradictionsA | Scan active facts in the bi-temporal graph to detect unresolved logical contradictions (negation polarity inversions, antonym objects, predicate alias collisions, or unsuperseded multi-value drift) and recommend or apply supersession resolutions. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| architecture-briefing | Compile a token-budgeted architectural context briefing for a module or service. |
| bug-investigation-context | Retrieve invariants, past bug root causes, and active dependencies for debugging. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Bi-Temporal Knowledge Graph Summary | Overview of entities, active vs superseded facts, and episodes. |
| Cryptographic Integrity Report | SHA-256 verification status and Merkle digest of the memory graph. |
| Recent Engineering Episodes | Most recent ADRs, bug root causes, and invariants recorded. |
TDQS
Scored across 7 tools
The write/read/verify tools are clearly split by resource and action: episode recording, fact upsert, entity inspection, context compilation, and time travel are distinguishable. Minor overlap exists between memory_query_entity and memory_compile_context (both retrieve graph data) and between memory_verify_integrity and cortex_audit_contradictions (both are 'check' operations), though descriptions clarify hash integrity vs. logical contradiction.
Six tools follow a clean memory_<verb>_<noun> snake_case pattern with consistent imperative verbs. The single cortex_audit_contradictions breaks both the prefix and the verb_noun ordering, but it is still readable and semantically clear.
Seven tools is a well-scoped surface for a bi-temporal engineering memory graph, with each tool covering a distinct phase of the lifecycle (write, read, compile, historical query, integrity, audit). No tool appears redundant or filler.
The surface covers the core lifecycle: recording episodes, upserting facts with supersession, querying entities, compiling context, time travel, integrity verification, and contradiction auditing. Gaps remain around explicit retraction/deletion of facts or episodes and full-text/episode search, forcing agents to rely on the audit tool or supersession to fix bad data.