diff --git a/server/mcp/tools/documents.ts b/server/mcp/tools/documents.ts index 48b9a6f76f..d969041ff4 100644 --- a/server/mcp/tools/documents.ts +++ b/server/mcp/tools/documents.ts @@ -520,7 +520,7 @@ export function documentTools(server: McpServer, scopes: string[]) { description: "Moves a document to a different location or reorders it within its current parent. Provide a collectionId to move to the root of a collection, a parentDocumentId to nest under another document, and/or an index to control position among siblings.", annotations: { - destructiveHint: false, + destructiveHint: true, idempotentHint: false, openWorldHint: false, readOnlyHint: false, diff --git a/server/routes/mcp/index.test.ts b/server/routes/mcp/index.test.ts index 89e165971c..d2bcaed52e 100644 --- a/server/routes/mcp/index.test.ts +++ b/server/routes/mcp/index.test.ts @@ -363,7 +363,7 @@ describe("POST /mcp/", () => { if (tool.annotations?.readOnlyHint) { expect(tool.annotations.destructiveHint, tool.name).toBe(false); } - if (/^(delete|update)_/.test(tool.name)) { + if (/^(delete|update|move)_/.test(tool.name)) { expect(tool.annotations?.destructiveHint, tool.name).toBe(true); } }