Platform feature. Requires
WANIWANI_API_KEY. Works whether your MCP server is self-hosted or on Managed Hosting. About the Platform.Setup
The KB client is available on the Waniwani client instance:Ingest files
Load markdown content into your knowledge base. Ingestion is destructive and replaces all existing chunks.embed script:
Ingest script for self-hosted projects
If you’re running your own MCP server, create a simple script to read your docs and push them to Waniwani. This runs standalone and doesn’t need to be inside an MCP server.scripts/kb-ingest.ts
npx tsx scripts/kb-ingest.ts or bun scripts/kb-ingest.ts.
A built-in
waniwani embed CLI command is coming soon to @waniwani/cli, so you won’t need a custom script.Ingest input
Identifier for the source file.
Markdown content. Chunked server-side.
Arbitrary key-value pairs stored with each chunk. Can be used to filter search results.