MCP: send `list_changed` when the library changes
メンテナーはふだん 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 の本文から書いたものです。
説明
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.
- 主要言語
- C#
- スター
- 0
- フォーク
- 1
- 平均マージ
- 1時間 21分
- マージ済み PR(30日)
- 22
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hazeliscoding/prompuff のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
hazeliscoding/prompuff#34 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hazeliscoding/prompuff#22 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
hazeliscoding/prompuff#14 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
hazeliscoding/prompuff#13 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
hazeliscoding/prompuff#12 ·
メンテナーはふだん 1 日以内に返信
hazeliscoding/prompuff の issue をすべて見る
似ている issue
-
area-multitenancy area-security p1-recommended priority-high technical-debt
難易度 2/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
help wanted needs-unity ready for a contributor
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eyalgolan/statecraft-israel#1542 ·
メンテナーはふだん 1 日以内に返信
-
kind/enhancement Provider Upgrade pulumi/pulumi-azure R1 Task
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
pulumi/pulumi-azure#3669 ·
-
[BUG] FromCString causes 1 byte OOB read in native code対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンtype/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信