Skip to content

Consume backend notifications in vMCP and propagate list_changed #5748

Description

@JAORMX

Part of #5743 (Workstream B: 2025-11-25 compliance).

Gap

vMCP registers no notification handler on its backend clients: backend */list_changed, notifications/message, and progress notifications are neither consumed nor propagated (pkg/vmcp/client/client.go). Aggregated views go stale until the short-TTL cache happens to expire, and vMCP advertises listChanged: false toward clients, so nothing is pushed even then.

Proposed work

  • Register backend notification handlers (the mcpcompat shim wires list_changed handlers; progress/logging handlers are being added in Close mcpcompat functional gaps vs mcp-go for a loss-free migration toolhive-core#156).
  • On backend list_changed: invalidate the aggregation cache and re-sync affected sessions' tool sets (the per-session go-sdk server then auto-emits list_changed to clients).
  • Flip the advertised listChanged capability to true once propagation works.
  • Forward or log backend notifications/message per a defined policy.

Depends on: stacklok/toolhive-core#156. Priority: Medium-High.

Activity

  1. added
    needs-triage
    on Jul 8, 2026
  2. removed
    needs-triage
    on Jul 13, 2026
  3. self-assigned this
    on Jul 24, 2026
  4. added a commit that references this issue on Jul 24, 2026
    d884415
  5. added a commit that references this issue on Jul 25, 2026
    96eec94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions