> For AI agents: the complete Sanity documentation index is available at [https://www.sanity.io/docs/llms.txt](https://www.sanity.io/docs/llms.txt).

# Sanity Context

#### Get started

[Quick start: connect an agent to Sanity Context](https://www.sanity.io/docs/context/quickstart)
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](https://www.sanity.io/docs/context/quickstart-knowledge-base)
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](https://www.sanity.io/docs/context/introduction)
What Sanity Context provides, what you bring, and what you need to set it up.

[Context MCP source types](https://www.sanity.io/docs/context/source-types)
How the dataset and Knowledge Base source types differ, when each one fits, and where dataset embeddings bridge the two.

#### Concepts

[Knowledge Bases](https://www.sanity.io/docs/context/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](https://www.sanity.io/docs/context/sources-documents-chunks)
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](https://www.sanity.io/docs/context/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](https://www.sanity.io/docs/context/content-access)
How the organization token, the MCP endpoint's sources, and a GROQ filter decide what an agent can read.

#### Connect your agent

[Configure a Context MCP endpoint](https://www.sanity.io/docs/context/configure-mcp)
Create a Context MCP endpoint in the Context app, scope what it serves, and connect an agent to it.

#### Go further

[Keep a Knowledge Base current](https://www.sanity.io/docs/context/maintain-knowledge-base)
Set refresh schedules for dataset and website sources, respond to change detection, and decide when to rebuild.

[Resolve Knowledge Base issues](https://www.sanity.io/docs/context/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](https://www.sanity.io/docs/context/insights)
Sanity Context insights tracks and analyzes your agent conversations

[Sanity Context patterns and best practices](https://www.sanity.io/docs/context/best-practices)
Scope, route, and instruct agents once the basics work.

