Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-move-file-output-schema.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@modelcontextprotocol/server-filesystem": patch
---

Fix move_file outputSchema to return array of content objects instead of string. Closes #3093
2 changes: 1 addition & 1 deletion src/filesystem/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ server.registerTool(
source: z.string(),
destination: z.string()
},
outputSchema: { content: z.string() },
outputSchema: { content: z.array(z.object({ type: z.enum(["text"]), text: z.string() })) },
annotations: { readOnlyHint: false, idempotentHint: false, destructiveHint: true }
},
async (args: z.infer<typeof MoveFileArgsSchema>) => {
Expand Down
Loading