mirror of
https://github.com/outline/outline.git
synced 2026-11-26 23:50:14 +03:00
fix: Mark move_document MCP tool as destructive (#14320)
This commit is contained in:
1 parent
c9d8306de6
commit
3571d59576
2 files changed
+2
-2
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user