Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

MCP: send `list_changed` when the library changes

Abierto
#33 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

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

enhancement

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 sends notifications/prompts/list_changed and notifications/resources/list_changed when it changes. It declares listChanged for both in its capabilities.
  • LibraryChangeMonitor lives in Prompuff.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_changed too.
  • 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 how LibraryWatcher in src/Prompuff.App/ViewModels/ShellServices.cs uses it
  • src/Prompuff.Cli/McpServerHost.cs: CreateOptions, ListPromptsHandler, ListResourcesHandler
  • tests/Prompuff.Infrastructure.Tests/LibraryChangeMonitorTests.cs

Done when

  • A test with an in-process client gets list_changed after 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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hazeliscoding/prompuff

Todos los issues de hazeliscoding/prompuff

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.