这是给AI编程助手用的Sanity资源包,支持Cursor、Claude Code、Codex等主流工具。核心是MCP服务器加Agent技能,能直接访问你的Sanity项目内容、数据集和schema,还内置了21个集成指南和26条最佳实践规则,覆盖内容建模、SEO这些方面。Claude Code和Cursor都有现成插件,装完就能用斜杠命令操作。适合用AI辅助开发Sanity项目的团队,能少踩很多坑。
查看英文原文
Sanity Agent Toolkit Collection of resources to help AI agents build better with Sanity. Supports Cursor, Claude Code, Codex, VS Code, Lovable, v0, Replit, OpenCode, and any other editor/agent compatible with MCP or Agent Skills. Features MCP server: Direct access to your Sanity projects (content, datasets, releases, schemas) and agent rules. Agent skills: Comprehensive best practices skills for Sanity development, content modeling, SEO/AEO, and experimentation. Includes 21 integration/topic guides and 26 focused best practice rules. Claude Code plugin: MCP server, agent skills, and slash commands for Claude Code users. Available on the official Anthropic plugin marketplace. Cursor plugin: MCP server, agent skills, and commands on the Cursor Marketplace. Codex plugin: MCP server and agent skills for OpenAI Codex users. Get started Choose your path based on how you want agents to work with Sanity: 1. MCP server — Give your agent always up to date rules and full access to your Sanity projects. No local files to maintain. Works with Cursor, VS Code, Claude Code, Lovable, v0, Replit, OpenCode, and other MCP compatible clients. 2. Agent skills — Install best practices skills for Sanity, content modeling, SEO/AEO, and experimentation. Works with Cursor, Claude Code, and any Agent Skills compatible agent. 3. Plugin — Install the Sanity plugin for Cursor or Claude Code. Bundles MCP server, agent skills, and commands. 4. Manual installation — Copy the skill references locally for offline use. You'll need to update them yourself. Option 1: Install MCP server (recommended) Give agents direct access to Sanity projects and always up to date agent rules via the MCP server. Quick install via Sanity CLI Run in terminal to detect and configure MCP for Cursor, Claude Code and VS Code automatically: [安装/使用命令见下方] Uses your logged in CLI user for authentication — no manual tokens or OAuth needed. Client specific instructions Cursor One click install: Or manually: Open Command Palette (