feat: kiwi MCP for corpus DB access #124
Labels
No labels
accessibility
backlog
beta-feedback
bug
duplicate
enhancement
feature-request
help wanted
invalid
needs-design
needs-triage
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/kiwi#124
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Debugging browse/tag issues requires
docker exec python3 -c "..."one-liners against the SQLite corpus. This is slow, error-prone, and the output disappears.Proposed solution
Build a kiwi MCP server (similar to the existing Snipe MCP pattern) that exposes:
kiwi_query_corpus— run a read-only SQL query against the corpus DB, return results as JSONkiwi_count_fts— run an FTS5 MATCH expression and return the row countkiwi_sample_tags— return tag frequency distribution forinferred_tags,cuisine:X,meal:X,dietary:Xetc.kiwi_browse_preview— call the browse endpoint with given domain/category and return first-page resultsDB path (inside container):
/app/kiwi/data/kiwi.dbBrowse counts cache:
/app/kiwi/data/browse_counts.dbBenefits
Related
Notes