MCP Server Policy
SANITY MCP POLICY
Enforce policies on every tool call to the Sanity MCP Server. 36 tools listed, categorised, and ready for rules.
GET STARTED
Download this policy scaffold and add your rules. Intercept enforces them on every tool call before it reaches Sanity.
# Download policy scaffold
curl -o sanity.yaml https://raw.githubusercontent.com/policylayer/intercept/main/policies/sanity.yaml
# Run with Intercept
intercept --policy sanity.yaml -- npx -y @@sanity/mcp-server Server documentation: https://www.npmjs.com/package/@sanity/mcp-server
READ TOOLS
11WRITE TOOLS
16DESTRUCTIVE TOOLS
5EXECUTE TOOLS
3OTHER TOOLS
1POLICY YAML
This scaffold lists every tool with empty rules. Add conditions — rate limits, argument validation, deny rules — then deploy with Intercept.
version: "1"
description: "Policy for @sanity/mcp-server"
default: "allow"
tools:
get_initial_context:
rules: []
get_sanity_config:
rules: []
query_documents:
rules: []
list_releases:
rules: []
list_datasets:
rules: []
get_schema:
rules: []
list_workspace_schemas:
rules: []
get_groq_specification:
rules: []
list_embeddings_indices:
rules: []
list_projects:
rules: []
get_project_studios:
rules: []
create_document:
rules: []
update_document:
rules: []
patch_document:
rules: []
transform_document:
rules: []
translate_document:
rules: []
unpublish_document:
rules: []
version_replace_document:
rules: []
version_unpublish_document:
rules: []
create_release:
rules: []
edit_release:
rules: []
unarchive_release:
rules: []
unschedule_release:
rules: []
create_version:
rules: []
mark_for_unpublish:
rules: []
create_dataset:
rules: []
update_dataset:
rules: []
version_discard_document:
rules: []
delete_document:
rules: []
archive_release:
rules: []
delete_release:
rules: []
discard_version:
rules: []
publish_document:
rules: []
schedule_release:
rules: []
publish_release:
rules: []
semantic_search:
rules: [] RELATED POLICIES
FREQUENTLY ASKED QUESTIONS
What tools does the Sanity MCP server expose?
The Sanity MCP Server exposes 36 tools across 5 categories: Read, Write, Destructive, Execute, Other. Each tool can be individually controlled with Intercept policies.
How do I enforce policies on Sanity?
Download the policy scaffold, add rules (rate limits, argument validation, deny rules), then run Intercept as a proxy in front of the Sanity MCP server. Every tool call is evaluated against your YAML policy before execution.
Is the Sanity policy free to use?
Yes. All Intercept policies are open source under the Apache 2.0 licence. Download, modify, and deploy without restrictions.
ENFORCE POLICIES ON SANITY
Open source. One binary. Zero dependencies.