memory: README does not say that unreadable lines are skipped, kept on every write, and fixable only by hand
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 90/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- documentation
Línea de trabajo
Lee src/memory/README.md junto con loadGraphWithUnreadable y saveGraph en src/memory/index.ts para confirmar el comportamiento documentado. Añade un breve pasaje cerca de la sección sobre almacenamiento o resolución de problemas que cubra las líneas omitidas y registradas, la conservación al escribir y los límites de bytes, las limitaciones de la herramienta y la reparación manual. Se considera terminado cuando el README explica el comportamiento indicado y los pasos de recuperación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Which server?
memory (@modelcontextprotocol/server-memory), src/memory/README.md.
The problem
The README does not say what the server does with a line of the memory file it cannot read, or how to fix one. The only mention is in passing, under the write limits ("MEMORY_MAX_FILE_BYTES counts the bytes of the file as it would be saved, unreadable lines included").
What the server does today (loadGraphWithUnreadable and saveGraph in src/memory/index.ts, from #4885):
- A line that is not JSON, is not an object, has an unknown
type, or fails the entity or relation schema (an entity with noentityType, an observation that is not a string, a relation with norelationType) is left out of the graph. Each skipped line is logged to stderr ("Skipping invalid entity in memory file: …"). - Every save writes those lines back unchanged, after the graph's own lines, so a write never drops data it could not read.
- No tool can then remove or repair such a line.
read_graph,search_nodesandopen_nodesdo not show it;delete_entitiesanddelete_observationsreport its name as not found;add_observationsandcreate_relationsfail with "Entity with name … not found";create_entitiesunder the same name stores a second record beside the invalid line; an invalid relation matches nodelete_relationscall and stays after the entities it names are deleted. #5541 pins this insrc/memory/__tests__/invalid-record-removal.test.ts.
So the only remedy is to edit the file by hand, and a user who sees the stderr line, or a Not found for an entity they can see in the file, has nowhere to read that.
Expected
A short passage in the README (near the storage or troubleshooting sections) stating: which lines are skipped, that they are logged to stderr, that they are kept in the file on every write and count toward MEMORY_MAX_FILE_BYTES, that no tool reaches them, and that the fix is to stop the clients using the file and correct or delete the line in a text editor.
Scope
Documentation only. Whether a remediation tool should exist is a separate question this issue does not ask.
Found while verifying #5541.
- Lenguaje dominante
- TypeScript
- Estrellas
- 92k
- Forks
- 12k
- Merge medio
- 3 h 46 min
- PR fusionados (30 d)
- 206
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
-
`interface-diff` discards the git error when resolving its default base and reports the wrong causeAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
modelcontextprotocol/servers#5636 ·
Los mantenedores suelen responder en 1 día
-
chore server-memory v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
modelcontextprotocol/servers#5634 ·
Los mantenedores suelen responder en 1 día
-
bug server-memory v2
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
modelcontextprotocol/servers#5635 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug server-memory v2
Dificultad 5/5 Más de una semana Aptitud para principiantes 42/100
modelcontextprotocol/servers#5624 ·
Los mantenedores suelen responder en 1 día
-
enhancement v2
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
modelcontextprotocol/servers#5611 ·
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 79/100
hurttlocker/o8#6535 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
area: backend bug priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
snapotter-hq/SnapOtter#4856 ·
Los mantenedores suelen responder en 1 día
-
bug follow-up
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
spellshift/realm#2509 ·
Los mantenedores suelen responder en 1 día