Sanity Context
Quick start: connect an agent to Sanity Context
How to deploy your Studio, serve a dataset from an MCP endpoint, and ask it a question with a script. Start here.
Quick start: build a Knowledge Base and ask it a question
How to build a Knowledge Base from a website or files and ask it a question. No Studio or dataset required.
Introduction to Sanity Context
What Sanity Context provides, what you bring, and what you need to set it up.
Context MCP source types
How the dataset and Knowledge Base source types differ, when each one fits, and where dataset embeddings bridge the two.
Knowledge Bases
What a Knowledge Base is for, and how its outline, entries, issues, and instructions fit together.
Sources, documents, and source chunks in Knowledge Bases
How the material you add to a Knowledge Base becomes documents and then source chunks, the units a build reads and your plan counts.
Context plans and limits
What your plan limits in Sanity Context, how source chunks are counted across your organization's Knowledge Bases, and what happens when you reach a limit.
Content access and security
How the organization token, the MCP endpoint's sources, and a GROQ filter decide what an agent can read.
Keep a Knowledge Base current
Set refresh schedules for dataset and website sources, respond to change detection, and decide when to rebuild.
Resolve Knowledge Base issues
Work through conflicts a build detected and turn your decisions into instructions that carry across future builds.
Add insights to Sanity Context
Sanity Context insights tracks and analyzes your agent conversations
Sanity Context patterns and best practices
Scope, route, and instruct agents once the basics work.