MCP: send `list_changed` when the library changes
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- csharp, sqlite
- Área
- backend-api-design, databases
Línea de trabajo
Read src/Prompuff.Infrastructure/Persistence/LibraryChangeMonitor.cs and how LibraryWatcher in src/Prompuff.App/ViewModels/ShellServices.cs uses it, then inspect CreateOptions, ListPromptsHandler, and ListResourcesHandler in src/Prompuff.Cli/McpServerHost.cs. Run tests/Prompuff.Infrastructure.Tests/LibraryChangeMonitorTests.cs to understand the monitor behavior. Done means an in-process client receives the relevant list_changed notifications after library changes, burst saves are settled, and the MCP contract tests pass unchanged.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The MCP server never says the library changed, so a client's slash commands only catch up with favorites after the client restarts.
What to do
- The server watches the library's
PRAGMA data_version, as the app does, and sendsnotifications/prompts/list_changedandnotifications/resources/list_changedwhen it changes. It declareslistChangedfor both in its capabilities. LibraryChangeMonitorlives inPrompuff.Infrastructure, which the CLI already uses, so reuse it.- When the tools change, as when Let AI tools add prompts (#32) is switched, send
notifications/tools/list_changedtoo. - Settle a change once a burst of saves is over, so a bulk edit doesn't send a hundred notifications.
Where to look
src/Prompuff.Infrastructure/Persistence/LibraryChangeMonitor.cs, and howLibraryWatcherinsrc/Prompuff.App/ViewModels/ShellServices.csuses itsrc/Prompuff.Cli/McpServerHost.cs:CreateOptions,ListPromptsHandler,ListResourcesHandlertests/Prompuff.Infrastructure.Tests/LibraryChangeMonitorTests.cs
Done when
- A test with an in-process client gets
list_changedafter a favorite changes in another connection. - Checked by hand on Windows: a favorite added in the app shows up in Claude Code's slash commands without restarting Claude Code.
- The 1.0 MCP contract tests pass unchanged.
- Lenguaje dominante
- C#
- Estrellas
- 0
- Forks
- 1
- Merge medio
- 1 h 21 min
- PR fusionados (30 d)
- 22
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 hazeliscoding/prompuff
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hazeliscoding/prompuff#34 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
hazeliscoding/prompuff#22 ·
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
hazeliscoding/prompuff#14 ·
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
hazeliscoding/prompuff#13 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
hazeliscoding/prompuff#12 ·
Los mantenedores suelen responder en 1 día
Todos los issues de hazeliscoding/prompuff
Issues similares
-
area-multitenancy area-security p1-recommended priority-high technical-debt
Dificultad 2/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
help wanted needs-unity ready for a contributor
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eyalgolan/statecraft-israel#1542 ·
Los mantenedores suelen responder en 1 día
-
kind/enhancement Provider Upgrade pulumi/pulumi-azure R1 Task
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
pulumi/pulumi-azure#3669 ·
-
type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día