File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ The mapping for filesystem tools is:
200200| ` create_directory ` | ` false ` | ` true ` | ` false ` | Re‑creating the same dir is a no‑op |
201201| ` write_file ` | ` false ` | ` true ` | ` true ` | Overwrites existing files |
202202| ` edit_file ` | ` false ` | ` false ` | ` true ` | Re‑applying edits can fail or double‑apply |
203- | ` move_file ` | ` false ` | ` false ` | ` false ` | Move/rename only; repeat usually errors |
203+ | ` move_file ` | ` false ` | ` false ` | ` true ` | Deletes source file |
204204
205205> Note: ` idempotentHint ` and ` destructiveHint ` are meaningful only when ` readOnlyHint ` is ` false ` , as defined by the MCP spec.
206206
Original file line number Diff line number Diff line change @@ -608,7 +608,7 @@ server.registerTool(
608608 destination : z . string ( )
609609 } ,
610610 outputSchema : { content : z . string ( ) } ,
611- annotations : { readOnlyHint : false , idempotentHint : false , destructiveHint : false }
611+ annotations : { readOnlyHint : false , idempotentHint : false , destructiveHint : true }
612612 } ,
613613 async ( args : z . infer < typeof MoveFileArgsSchema > ) => {
614614 const validSourcePath = await validatePath ( args . source ) ;
You can’t perform that action at this time.
0 commit comments