Skip to main content
Reference · Information

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

Source: Sources/MCPServer/Tools/KnowledgeTool.swift + Sources/KB/