Merge pull request #3230 from nulone/fix/filesystem-move-file-destructive-hint

fix(filesystem): mark move_file as destructive operation
This commit is contained in:
Ola Hungerford 2026-02-28 14:17:21 -07:00 • committed by GitHub
commit 72efc42976
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -608,7 +608,7 @@ server.registerTool(
destination: z.string()
},
outputSchema: { content: z.string() },
annotations: { readOnlyHint: false, idempotentHint: false, destructiveHint: false }
annotations: { readOnlyHint: false, idempotentHint: false, destructiveHint: true }
},
async (args: z.infer<typeof MoveFileArgsSchema>) => {
const validSourcePath = await validatePath(args.source);