Context Engine

v0.1.4
io.github.shamsundarsk/mcp-server Checked 19 hours ago Published 1 month ago

Local-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.

ParameterTypeDescription
session_idstringOptional 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.

ParameterTypeDescription
session_idstringOptional 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.

ParameterTypeDescription
commit_id *stringThe exact commit ID in the memory graph to overwrite
new_summary *stringNew summary text replacing the original reason log
kept_chunksarrayOptional list of verified permanent facts to retain
new_topicstringOptional new topic title
prune_transientbooleanIf true, automatically deletes all transient logs and discarded chunks for this node (default: true)
session_idstringOptional session ID

observe_turn

Autonomous background observer: Records conversation turn history, runs dual-tier triage, and auto-commits compressed state every 5-10 turns.

ParameterTypeDescription
content *stringTurn message text to observe and buffer
rolestringRole of the message sender
session_idstringOptional session ID
workspace_pathstringOptional workspace path to trigger auto-branching on directory shifts

recall

Recall previous commits and context facts for a given query

ParameterTypeDescription
query *stringKeyword or topic query to search context history
scopestringSearch active branch or all branches
session_idstringOptional session ID

commit

Record key architectural decision, bug fix, or findings into context graph

ParameterTypeDescription
kept_refs *arrayCritical code snippets or facts to keep verbatim
summary *stringPlain language explanation of the decision or finding
topic *stringBrief topic label
session_idstringOptional 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.

ParameterTypeDescription
name *stringName of the branch to create or switch to
from_commitstringOptional starting commit ID for new branches only
session_idstringOptional session ID

merge

Merge a feature context branch into target branch (defaults to main)

ParameterTypeDescription
source_branch *stringSource branch name to merge from
session_idstringOptional session ID
target_branchstringTarget branch name to merge into (defaults to main)

checkout

Roll back context memory to a previous commit ID

ParameterTypeDescription
commit_id *stringTarget commit ID to checkout
session_idstringOptional session ID