Knowledge and MCP tools for LLM agents

November 8, 2026 · release

An LLM voice agent is only as useful as what it knows and what it can do. Two additions cover both: a knowledge block that lets the agent search your documents, and MCP tool sources that give it tools from servers you run or someone else runs.

Search your own documents

Add a knowledge block to voicethere.llm.json and the agent gets one more tool, search_knowledge. The model calls it with a question, gets back the best-matching chunks with a title and a score each, and answers from them. In agent.ts you register the embeddings provider and, for the Redis store, pass your Markdown files to createLlmAgent as knowledge.documents.

{
  "knowledge": {
    "store": "redis",
    "topK": 4,
    "embeddings": {
      "provider": "openai",
      "dimensions": 512,
      "apiKeySecret": "AGENT_OPENAI_API_KEY"
    },
    "redis": { "namespace": "default" }
  }
}

store is redis, supabase or off, and topK is 1 to 10 chunks per search. Embeddings come from OpenAI, Gemini or OpenRouter. Anthropic has no embeddings API, so it cannot be the embeddings provider even when your chat model is Claude. apiKeySecret names the project secret that holds the embeddings key; you can leave it out only when the chat provider is the same.

Redis or Supabase

The Redis store indexes the Markdown files you pass as knowledge.documents in agent.ts into Project Redis. The agent splits them on headings into chunks of about 300 words and builds the index when it starts. It rebuilds only when the documents, the embeddings model or the dimensions change. This suits product docs, an FAQ or course material that changes when you deploy.

On Redis 8.10.3 with the Project Redis settings (256 MB, volatile-lru) we measured about 24,000 chunks at 512 dimensions and about 12,000 at 1536, under the 80 % guard the index keeps. Per-chunk overhead falls as the index grows, so those figures come from 5,000-chunk runs.

The Supabase store searches a pgvector table in your own Supabase project. VoiceThere never stores your vectors. Choose it when the data is larger than the Redis figures or changes outside deploys. Its key and function name are project secrets and settings, and with Project Redis on, identical questions are answered from a cache for cacheTtlSeconds.

All of these fields are also in the Knowledge (RAG) section of the project's LLM tab. Changes are saved to voicethere.llm.json; publish to apply them. Details are in the knowledge base docs.

Tools over MCP

MCP is how an agent finds out which tools exist and calls them. The agent connects when a session starts, lists the tools, hands them to the model and runs a call when the model asks. Sources go into toolSources:

allow exposes only the tools you list and deny removes tools. After a test chat, the LLM tab lists what each source offered, with a switch per tool.

The VoiceThere MCP server

We run one too. It returns public data only, the same plans and prices as the pricing page, through two tools: list_plans and get_plan_price. Store an API key as AGENT_VOICETHERE_API_KEY and add the server as a bearer source to let a website assistant answer questions about plans. It allows 60 requests per minute for each API key.

The config, the limits and the project service template are in the MCP docs.

Similar posts

← All posts