post-graph-rag-mcp
v0.1.0Bi-temporal knowledge graph memory MCP server powered by post-graph-rag and PostgreSQL + pgvector.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
remember
Store an auditable statement, architectural decision, or preference with supersession. Always supply structured ``triples`` when recording concrete facts so extraction runs in zero sidecar LLM calls. Set ``functional=True`` on single-valued predicates (e.g. ``uses_auth``, ``uses_database``, ``deployed_on``) so older objects are automatically retired. Inspect ``active_relations_on_subjects`` in the returned payload and pass ``supersedes_edge_ids`` on a follow-up call if an older synonymous edge stayed active.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
category | ||
document | ||
entities | ||
source | string | |
space | ||
supersedes_edge_ids | ||
triples |
recall
Retrieve current truth from the knowledge graph (superseded relations excluded). Fuses multi-hop graph traversal, relation HNSW vector similarity, and PostgreSQL full-text search via Reciprocal Rank Fusion (RRF). Pass concrete ``entity_keywords`` (service, component, or person names) to sharpen entity seeding without extra LLM calls.
| Parameter | Type | Description |
|---|---|---|
question * | string | |
entity_keywords | ||
max_hops | ||
mode | string | |
space | ||
subqueries | ||
synthesize | boolean | |
theme_keywords | ||
top_k | integer |
recall_as_of
Bi-temporal time-travel & audit query over valid time and/or belief time. Supply ``as_of`` (e.g. ``'2024-06-01'``) to query facts valid in the world on that date, and/or ``as_believed_at`` (an ISO-8601 ``recorded_at_watermark``) to audit what this memory store believed at that transaction instant prior to later restatements.
| Parameter | Type | Description |
|---|---|---|
question * | string | |
as_believed_at | ||
as_of | ||
entity_keywords | ||
space | ||
theme_keywords | ||
top_k | integer |
trace_history
Trace full chronological evolution and supersession lineage (outbound and inbound). Returns both active ``current_relations`` and retired ``superseded_relations`` sorted chronologically by ``(valid_from, t_created)``, walking edges in both directions so object-side questions (e.g. 'Where was Clerk used?') surface retired dependencies.
| Parameter | Type | Description |
|---|---|---|
question * | string | |
entity_keywords | ||
space | ||
top_k | integer |
ingest_documents
Idempotently sync Markdown / ADR files from allowed workspace paths into memory. Deterministically orders files by ``filename`` (default, e.g. ``0001-clerk.md`` before ``0002-betterauth.md``), ``mtime``, or ``git_first_commit`` so newer decisions supersede older ones, and skips unchanged files via SHA-256 content hashes.
| Parameter | Type | Description |
|---|---|---|
paths * | array | |
build_communities | boolean | |
collection | ||
glob | string | |
order_by | string | |
space |
changes_since
Poll database-clock belief deltas since an ISO-8601 watermark. Call with ``since=None`` to obtain the initial database ``watermark``, then pass that watermark as ``since`` on subsequent calls to inspect newly added or superseded facts.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
since | ||
space | ||
summary_only | boolean |
configure_memory_rules
Inspect or extend active supersession presets, functional predicates, and diagnostics.
| Parameter | Type | Description |
|---|---|---|
add_exclusive_groups | ||
add_functional_predicates | ||
include_diagnostics | boolean | |
preset | ||
space |