fix: Mark move_document MCP tool as destructive (#14320)

This commit is contained in:
Tom Moor authored and GitHub committed 2026-10-24 18:29:42 -04:00
1 parent c9d8306de6
commit 3571d59576
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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);
}
}