·create-agent-with-sanity-context
</>

create-agent-with-sanity-context

sanity-io/agent-context

Build AI agents with structured access to Sanity content via Context MCP. Covers Studio setup, agent implementation, and advanced patterns like client-side tools and custom rendering.

30Installs·1Trend·@sanity-io

Installation

$npx skills add https://github.com/sanity-io/agent-context --skill create-agent-with-sanity-context

SKILL.md

Give AI agents intelligent access to your Sanity content. Unlike embedding-only approaches, Context MCP is schema-aware—agents can reason over your content structure, query with real field values, follow references, and combine structural filters with semantic search.

Note: Context MCP understands your schema structure but not your domain. You'll provide domain context (what your content is for, how to use it) through the agent's system prompt.

| Sanity Project ID | Your sanity.config.ts or sanity.io/manage | | Dataset name | Usually production — check your sanity.config.ts | | Sanity API read token | Create at sanity.io/manage → Project → API → Tokens. See HTTP Auth docs | | LLM API key | From your LLM provider (Anthropic, OpenAI, etc.) — any provider works |

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/sanity-io/agent-context --skill create-agent-with-sanity-context
Category
</>Dev Tools
Verified
First Seen
2026-02-05
Updated
2026-02-18

Quick answers

What is create-agent-with-sanity-context?

Build AI agents with structured access to Sanity content via Context MCP. Covers Studio setup, agent implementation, and advanced patterns like client-side tools and custom rendering. Source: sanity-io/agent-context.

How do I install create-agent-with-sanity-context?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/sanity-io/agent-context --skill create-agent-with-sanity-context Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/sanity-io/agent-context

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-05

Related Skills

None