senkani_knowledge
Live
Query and update the project knowledge graph — entities, links, decisions, FTS5 search.
Signature
senkani_mcp.call(tool="senkani_knowledge", args={...})
Behavior
Seven actions: `upsert_entity`, `get_entity`, `list_entities`, `upsert_link`, `search_knowledge` (FTS5), `list_decisions`, `graph`. The knowledge base is stored at `.senkani/knowledge/*.md` with a rebuilt SQLite index.
Inputs
Name
Type
Default
Description
action
string
—
One of the seven actions.
full
boolean
false
Return complete entity detail instead of summary.
query
string
—
For `search_knowledge`.
Output
Entity or link records; search returns BM25-ranked hits.
Example
{"tool":"senkani_knowledge","args":{"action":"search_knowledge","query":"auth middleware"}}
Details
SQLite index is rebuilt if corrupt (`KBLayer1Coordinator`). Markdown at `.senkani/knowledge/` is the source of truth — hand-edits are safe.
See also
Knowledge base concept— How it's built + maintained.senkani kb CLI— CLI version.Compound learning— KB ↔ learning bridge.
Source:
Sources/MCPServer/Tools/KnowledgeTool.swift + Sources/KB/