Skip to content

Commit 3e38351

Browse files
authored
Merge branch 'main' into feat/security-hardening
2 parents e2b8185 + 72efc42 commit 3e38351

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/filesystem/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/filesystem/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)