mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
* feat: Add delete_document and delete_collection MCP tools Adds MCP tools for deleting (or archiving) documents and collections. Refactors Document#delete into destroyWithCtx and extracts collection archive logic into Collection#archiveWithCtx so the same code paths can be shared between the REST API and MCP entry points. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * fix: Wrap MCP delete tools in DB transaction Ensures delete/archive of documents and collections via MCP is atomic and that row locks (transaction.LOCK.UPDATE) inside *WithCtx methods actually apply, matching the pattern used by move_document. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * docs: Clarify delete_collection MCP tool description Reflects that collection deletion only soft-deletes non-archived documents via the BeforeDestroy hook. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>