Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

MCP: send `list_changed` when the library changes

オープン
#33 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp, sqlite

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
C#
スター
0
フォーク
1
平均マージ
1時間 21分
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hazeliscoding/prompuff のほかの issue

hazeliscoding/prompuff の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。