Batch document operations, enhanced patching, and Claude Desktop support

Published: December 19, 2025

v2.8.0

New Features

  • Batch document operations. New publish_documents, unpublish_documents, and discard_drafts tools enable publishing, unpublishing, or discarding multiple documents in a single operation.

Improvements

  • Enhanced patch_document. Improved handling of document references, including automatic draft reference normalization and better support for image arrays.
  • Cleaner API token names in create_project. API tokens generated during project creation no longer include timestamps for better readability.

Fixes

  • Claude Desktop and web support. Fixed an issue where users were unable to connect the MCP server to Claude Desktop and Claude.ai on the web.

Removals

  • Batch-only document operations. Removed singular publish_document and unpublish_document tools in favor of publish_documents and unpublish_documents which handle both single and multiple documents.
  • Two-step document deletion. Removed delete_document tool. Documents are now deleted using a two-step workflow: first unpublish_documents (for published docs), then discard_drafts to permanently delete. This prevents accidental deletion of published content.
Loading...
Batch document operations, enhanced patching, and Claude Desktop support | Sanity Docs