Context Engine
v0.1.4Local-first persistent context memory MCP server for AI coding agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
gather_context
MANDATORY ON NEW CHAT OR CONTEXT RESET: Reconstructs and retrieves bounded context memory (rolling summary and all preserved architectural facts) from previous sessions.
| Parameter | Type | Description |
|---|---|---|
session_id | string | Optional session ID to gather context from. Defaults to active project session. |
get_context_tree
Outputs a highly structured, clean markdown visual text graph tree of all active branches, commits, and memory states straight to the chat view.
| Parameter | Type | Description |
|---|---|---|
session_id | string | Optional session ID to inspect memory tree for. |
override_memory_node
Power user tool to target an exact node in the SQLite history graph and forcibly overwrite its text content, completely pruning out incorrect details or debug junk.
| Parameter | Type | Description |
|---|---|---|
commit_id * | string | The exact commit ID in the memory graph to overwrite |
new_summary * | string | New summary text replacing the original reason log |
kept_chunks | array | Optional list of verified permanent facts to retain |
new_topic | string | Optional new topic title |
prune_transient | boolean | If true, automatically deletes all transient logs and discarded chunks for this node (default: true) |
session_id | string | Optional session ID |
observe_turn
Autonomous background observer: Records conversation turn history, runs dual-tier triage, and auto-commits compressed state every 5-10 turns.
| Parameter | Type | Description |
|---|---|---|
content * | string | Turn message text to observe and buffer |
role | string | Role of the message sender |
session_id | string | Optional session ID |
workspace_path | string | Optional workspace path to trigger auto-branching on directory shifts |
recall
Recall previous commits and context facts for a given query
| Parameter | Type | Description |
|---|---|---|
query * | string | Keyword or topic query to search context history |
scope | string | Search active branch or all branches |
session_id | string | Optional session ID |
commit
Record key architectural decision, bug fix, or findings into context graph
| Parameter | Type | Description |
|---|---|---|
kept_refs * | array | Critical code snippets or facts to keep verbatim |
summary * | string | Plain language explanation of the decision or finding |
topic * | string | Brief topic label |
session_id | string | Optional session ID |
branch
Create a new branch or switch to an existing branch by name. If the branch already exists, it switches to it cleanly without modifying history.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the branch to create or switch to |
from_commit | string | Optional starting commit ID for new branches only |
session_id | string | Optional session ID |
merge
Merge a feature context branch into target branch (defaults to main)
| Parameter | Type | Description |
|---|---|---|
source_branch * | string | Source branch name to merge from |
session_id | string | Optional session ID |
target_branch | string | Target branch name to merge into (defaults to main) |
checkout
Roll back context memory to a previous commit ID
| Parameter | Type | Description |
|---|---|---|
commit_id * | string | Target commit ID to checkout |
session_id | string | Optional session ID |