Filesystem MCP: move_file tool returns array instead of string (Error -32602)
Los mantenedores suelen responder en 1 día
@haroldfabla2-hue ya está trabajando en esto.
Desde el 1/4/2026.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 64/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Tranquilo
- Stack tecnológico
- typescript
- Área
- tooling
Línea de trabajo
Reproduce la llamada move_file proporcionada, luego localiza la implementación de move_file y su esquema de salida en el paquete server-filesystem. Confirma que el resultado exitoso es un string y vuelve a ejecutar la misma solicitud MCP para verificar que la validación de la salida se complete sin errores.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Filesystem MCP: move_file tool returns array instead of string (Error -32602)
Summary
When executing the move_file tool from @modelcontextprotocol/server-filesystem, error code -32602 (Invalid params) occurs.
Root Cause: The tool returns an array instead of a string, causing MCP protocol validation to fail.
Error Details
Error Code: -32602 (JSON-RPC Invalid params)
Error Message:
Output validation error: Invalid structured content for tool move_file: [
{
"expected": "string",
"code": "invalid_type",
"path": ["content"],
"message": "Invalid input: expected string, received array"
}
]
Problem Location: The content field is an array (should be a string)
Steps to Reproduce
- Configure @modelcontextprotocol/server-filesystem as an MCP server
- Call the move_file tool with:
- source: Source file path
- destination: Destination file path
- Error occurs
Example:
{
"source": "C:\path\to\file.txt",
"destination": "C:\path\to\new\file.txt"
}
Expected Behavior
The move_file tool should return a string message when file movement succeeds.
Example:
"Successfully moved file from source to destination"
Actual Behavior
The move_file tool returns an array, causing MCP protocol validation to fail.
Environment
OS: Windows 10 (build 26100)
Node.js: 22.21.1 (Built-in Claude Desktop)
Package: @modelcontextprotocol/server-filesystem@latest
MCP Client: Claude Desktop 1.0.1307
Log Excerpts
Request:
2025-11-30T09:57:51.155Z [filesystem] [info] Message from client:
{
"method": "tools/call",
"params": {
"name": "move_file",
"arguments": {
"source": "C:\Users\skiku\Documents\MCP_Learning\chapter01\test1.txt",
"destination": "C:\Users\skiku\Documents\MCP_Learning\chapter01\テストファイル\test1.txt"
}
},
"jsonrpc": "2.0",
"id": 26
}
Response (Error):
2025-11-30T09:57:51.174Z [filesystem] [info] Message from server:
{
"jsonrpc": "2.0",
"id": 26,
"result": {
"content": [{
"type": "text",
"text": "MCP error -32602: Output validation error: Invalid structured content for tool move_file: ..."
}],
"isError": true
}
}
Additional Information
- Other file operation tools (read_file, write_file, create_directory, etc.) work correctly
- The move_file tool appears in the available tools list but fails at runtime
- This issue prevents file movement functionality from being used
Related Issues
I checked GitHub Issues but found no known problems related to the move_file tool. This appears to be an unreported bug.
Suggested Labels
- bug
- server-filesystem
- schema-validation
- Lenguaje dominante
- JavaScript
- Estrellas
- 91.2k
- Forks
- 11.8k
- Merge medio
- 6 h 52 min
- PR fusionados (30 d)
- 107
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de modelcontextprotocol/servers
-
documentation v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
modelcontextprotocol/servers#5133 ·
Los mantenedores suelen responder en 1 día
-
sequentialthinking: the thought box's header row is 2 columns narrower than its borderPosiblemente ocupada @nightcityblade la tomó hace 1 día. Abiertobug server-sequentialthinking v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
modelcontextprotocol/servers#5108 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug server-git v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
modelcontextprotocol/servers#5107 ·
Los mantenedores suelen responder en 1 día
-
chore v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
modelcontextprotocol/servers#5091 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
modelcontextprotocol/servers#5071 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de modelcontextprotocol/servers
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
swc-project/swc#12516 ·
Los mantenedores suelen responder en 1 día
-
feature-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
omegaup/omegaup#10323 · 1 comentario ·
Los mantenedores suelen responder en 5 días
-
area/frontend good first issue kind/cooldown
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
kestra-io/kestra#20702 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Form-data fields are not parsed when importing a cURL requestPosiblemente ocupada @aayushbaluni la tomó hoy. Abiertobug status-new
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 1 día
-
bug MVP
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
saayam-for-all/webapp#1911 ·
Los mantenedores suelen responder en 1 día