The knowledge graph is a semantic layer over wiki content that enables AI agents to discover relationships, traverse connections, and propose new knowledge — all grounded in human-authored content.
Four PostgreSQL tables form the graph:
| Table | Purpose |
|---|---|
kg_nodes | Entities (wiki pages, concepts, stubs) with JSONB properties |
kg_edges | Typed relationships between nodes with provenance tracking |
kg_proposals | Pending AI-suggested enrichments awaiting human review |
kg_rejections | Negative knowledge preventing re-proposals |
Two separate MCP endpoints serve different use cases:
/mcp (authoring) — 3 knowledge tools: propose_knowledge, list_proposals, list_rejections/knowledge-mcp (consumption) — 5 read-only tools: discover_schema, query_nodes, traverse, get_node, search_knowledge