post-graph-rag-mcp

v0.1.0
post-graph-rag-mcp Checked 3 hours ago Published 12 days ago

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

ParameterTypeDescription
text *string
category
document
entities
sourcestring
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.

ParameterTypeDescription
question *string
entity_keywords
max_hops
modestring
space
subqueries
synthesizeboolean
theme_keywords
top_kinteger

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.

ParameterTypeDescription
question *string
as_believed_at
as_of
entity_keywords
space
theme_keywords
top_kinteger

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.

ParameterTypeDescription
question *string
entity_keywords
space
top_kinteger

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.

ParameterTypeDescription
paths *array
build_communitiesboolean
collection
globstring
order_bystring
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.

ParameterTypeDescription
limitinteger
since
space
summary_onlyboolean

configure_memory_rules

Inspect or extend active supersession presets, functional predicates, and diagnostics.

ParameterTypeDescription
add_exclusive_groups
add_functional_predicates
include_diagnosticsboolean
preset
space