You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support async updates for MCP prompts in V2 #34541
MCP prompt support in V2 currently treats prompt discovery as static. Add async update support so servers that emit notifications/prompts/list_changed can refresh prompt-derived state without requiring restart/reload.
Context
PR #34531 adds MCP prompt listing/get support but intentionally does not subscribe to prompt list-change notifications yet. Resource list-change plumbing can be handled separately with the resource work.
Scope
Subscribe to MCP prompts/list_changed for servers advertising prompts.listChanged.
Refresh any prompt-derived V2 state asynchronously.
Avoid blocking unrelated plugin/startup paths on slow MCP startup.
Add tests or a small MCP lifecycle fixture for prompt list changes.
The issue appears to be a feature request but does not use the Feature Request template. The title should start with [FEATURE]: and include the required verification checkbox confirming the feature hasn't been suggested before.
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
[FEATURE]: Full MCP client capabilities #28567: This comprehensive MCP client capabilities issue explicitly lists prompts/list_changed notification support as a missing capability (under the tool list-change notification section).
If you believe this was flagged incorrectly, please let a maintainer know.
Suggested tracker state: keep this blocked on #34531 plus #34685/#34429. Async prompt list refresh should update prompt-derived command state after the V2 command path exists.
After #34849 lands, async MCP prompt updates should be re-evaluated against the command-shaped MCP prompt entries. Also see #34860 for MCP prompt optimistic UI.
Tracker update from V2 TODO LIST (2026-07-02): Related command work is now open: #34849 — feat(core): port v2 command invocation. After #34849 lands, async MCP prompt updates should be re-evaluated against the command-shaped MCP prompt entries. Also see #34860 for MCP prompt optimistic UI.
Aiden says V2 command support and V2 MCP prompt support should both be fully supported now; #34849 merged and covers MCP prompts as command-shaped entries plus invocation-time prompt resolution.
Leaving this open unless/until someone confirms prompts/list_changed async refresh specifically is covered too, since this issue is narrower than basic MCP prompt execution.
Activity
github-actions commentedon Jun 30, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:and include the required verification checkbox confirming the feature hasn't been suggested before.Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
prompts/list_changednotification support as a missing capability (under the tool list-change notification section).If you believe this was flagged incorrectly, please let a maintainer know.
opencode-agent commentedon Jun 30, 2026
Removed
needs:compliance: this author is exempt under the team/opencode-agent automation guard.opencode-agent commentedon Jul 2, 2026
Tracker update from V2 TODO LIST audit (2026-07-02):
Current blockers/related work:
Suggested tracker state: keep this blocked on #34531 plus #34685/#34429. Async prompt list refresh should update prompt-derived command state after the V2 command path exists.
opencode-agent commentedon Jul 2, 2026
Tracker update from V2 TODO LIST (2026-07-02):
Related command work is now open:
After #34849 lands, async MCP prompt updates should be re-evaluated against the command-shaped MCP prompt entries. Also see #34860 for MCP prompt optimistic UI.
opencode-agent commentedon Jul 2, 2026
Tracker update from V2 TODO LIST (2026-07-02): Related command work is now open: #34849 — feat(core): port v2 command invocation. After #34849 lands, async MCP prompt updates should be re-evaluated against the command-shaped MCP prompt entries. Also see #34860 for MCP prompt optimistic UI.
opencode-agent commentedon Jul 2, 2026
Aiden says V2 command support and V2 MCP prompt support should both be fully supported now; #34849 merged and covers MCP prompts as command-shaped entries plus invocation-time prompt resolution.
Leaving this open unless/until someone confirms
prompts/list_changedasync refresh specifically is covered too, since this issue is narrower than basic MCP prompt execution.Source: https://discord.com/channels/1391832426048651334/1520962938733723720/1522286030844199043
opencode-agent commentedon Jul 2, 2026
Confirmed on latest
v2: this is handled now.Evidence:
packages/core/src/mcp/index.tshasrefreshPrompts(...)updatingentry.promptsand publishingCommand.Event.Updated.watch(...)subscribesconnection.onPromptsChanged(() => fork(refreshPrompts(...))), which covers prompt list-change notifications.packages/core/src/command.tsderives MCP prompt commands frommcp.prompts()and evaluates viamcp.prompt(...)at invocation time.command.updated.Source confirmation from Aiden: https://discord.com/channels/1391832426048651334/1520962938733723720/1522286269093249217